Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo", uses=false) Using package ClaRa with version 1.8.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package TILMedia with version 1.8.1 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo) Using package SMArtIInt with version 0.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|T.k1|T.k2|T.u1|T.u2|T.y|Time|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|T.k1|T.k2|T.u1|T.u2|T.y|Time|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo): time 0.01238/0.01238, allocations: 1.438 MB / 17.74 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1096/0.1096, allocations: 22.38 MB / 41.16 MB, free: 7.758 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 108 kB / 48.66 MB, free: 240 kB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 194.4 kB / 56.26 MB, free: 9.445 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 286.6 MB, free: 13.91 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8401/0.8401, allocations: 127.8 MB / 471.3 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 124.1 kB / 0.636 GB, free: 13.17 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4162/0.4185, allocations: 82.35 MB / 0.7164 GB, free: 9.727 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.TestMinMax): time 0.003414/0.4219, allocations: 2.289 MB / 0.7186 GB, free: 7.965 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.0008532/0.4228, allocations: 473.2 kB / 0.7191 GB, free: 7.598 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.159e-05/0.4228, allocations: 1.25 kB / 0.7191 GB, free: 7.598 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 5.362e-05/0.4229, allocations: 7.875 kB / 0.7191 GB, free: 7.59 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 6.7e-05/0.423, allocations: 10.47 kB / 0.7191 GB, free: 7.582 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.4232, allocations: 42.31 kB / 0.7191 GB, free: 7.547 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.0001486/0.4234, allocations: 78.67 kB / 0.7192 GB, free: 7.5 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.4235, allocations: 19.52 kB / 0.7192 GB, free: 7.492 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 9.593e-05/0.4236, allocations: 41.33 kB / 0.7193 GB, free: 7.465 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 7.072e-05/0.4237, allocations: 38.5 kB / 0.7193 GB, free: 7.438 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.4237, allocations: 6.094 kB / 0.7193 GB, free: 7.438 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 1.528e-05/0.4237, allocations: 7.625 kB / 0.7193 GB, free: 7.438 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 5.565e-05/0.4238, allocations: 19.02 kB / 0.7193 GB, free: 7.422 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 4.698e-05/0.4238, allocations: 31.36 kB / 0.7193 GB, free: 7.398 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.424, allocations: 79.06 kB / 0.7194 GB, free: 7.34 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.424, allocations: 0 / 0.7194 GB, free: 7.34 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.843e-06/0.424, allocations: 0 / 0.7194 GB, free: 7.34 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.424, allocations: 0 / 0.7194 GB, free: 7.34 MB / 0.5138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006449/0.4247, allocations: 410.3 kB / 0.7198 GB, free: 6.934 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.4247, allocations: 8.188 kB / 0.7198 GB, free: 6.934 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.111e-05/0.4248, allocations: 18.19 kB / 0.7198 GB, free: 6.922 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.4249, allocations: 198.6 kB / 0.72 GB, free: 6.699 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.425, allocations: 2.094 kB / 0.72 GB, free: 6.699 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.425, allocations: 10.89 kB / 0.72 GB, free: 6.691 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.4253, allocations: 100.2 kB / 0.7201 GB, free: 6.621 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.4253, allocations: 0 / 0.7201 GB, free: 6.621 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.4253, allocations: 0 / 0.7201 GB, free: 6.621 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.4253, allocations: 1.469 kB / 0.7201 GB, free: 6.621 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/0.4256, allocations: 78.47 kB / 0.7202 GB, free: 6.586 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.4261, allocations: 320.6 kB / 0.7205 GB, free: 6.254 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006157/0.4267, allocations: 148 kB / 0.7207 GB, free: 6.176 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000186/0.4269, allocations: 51.69 kB / 0.7207 GB, free: 6.148 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.4269, allocations: 13.17 kB / 0.7207 GB, free: 6.137 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.427, allocations: 35.47 kB / 0.7208 GB, free: 6.094 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=5): time 1.203e-06/0.427, allocations: 0 / 0.7208 GB, free: 6.094 MB / 0.5138 GB Notification: Performance of matching and sorting (n=5): time 0.0006385/0.4276, allocations: 173.4 kB / 0.7209 GB, free: 6 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.4277, allocations: 51.41 kB / 0.721 GB, free: 5.938 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.897e-05/0.4278, allocations: 131.1 kB / 0.7211 GB, free: 5.816 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.4278, allocations: 25.7 kB / 0.7211 GB, free: 5.785 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 6.082e-05/0.4278, allocations: 103.1 kB / 0.7212 GB, free: 5.684 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.4279, allocations: 18.88 kB / 0.7212 GB, free: 5.668 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.492e-05/0.4279, allocations: 22.48 kB / 0.7213 GB, free: 5.645 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.428, allocations: 324.5 kB / 0.7216 GB, free: 5.32 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001869/0.4282, allocations: 47.14 kB / 0.7216 GB, free: 5.301 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.4284, allocations: 47.11 kB / 0.7217 GB, free: 5.281 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.4288, allocations: 101.6 kB / 0.7218 GB, free: 5.23 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4288, allocations: 0 / 0.7218 GB, free: 5.23 MB / 0.5138 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004073/0.4292, allocations: 140.8 kB / 0.7219 GB, free: 5.148 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.4292, allocations: 5.5 kB / 0.7219 GB, free: 5.148 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.4292, allocations: 3.984 kB / 0.7219 GB, free: 5.145 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.4293, allocations: 5.375 kB / 0.7219 GB, free: 5.141 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.4294, allocations: 24.42 kB / 0.7219 GB, free: 5.133 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.4294, allocations: 1.375 kB / 0.7219 GB, free: 5.133 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.779e-05/0.4295, allocations: 20.17 kB / 0.7219 GB, free: 5.121 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.131e-05/0.4295, allocations: 2.75 kB / 0.7219 GB, free: 5.121 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.466e-05/0.4296, allocations: 116.5 kB / 0.7221 GB, free: 5 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.033e-05/0.4297, allocations: 8.078 kB / 0.7221 GB, free: 4.996 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.177e-05/0.4297, allocations: 17.67 kB / 0.7221 GB, free: 4.973 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.4297, allocations: 1.375 kB / 0.7221 GB, free: 4.973 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.4297, allocations: 0 / 0.7221 GB, free: 4.973 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 3.598e-05/0.4298, allocations: 78.48 kB / 0.7222 GB, free: 4.879 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.4298, allocations: 9.312 kB / 0.7222 GB, free: 4.871 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001318/0.4299, allocations: 12.48 kB / 0.7222 GB, free: 4.867 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.52e-05/0.43, allocations: 6.734 kB / 0.7222 GB, free: 4.863 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007676/0.4307, allocations: 287.7 kB / 0.7225 GB, free: 4.672 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006569/0.4314, allocations: 360.9 kB / 0.7228 GB, free: 4.391 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001858/0.4316, allocations: 54.91 kB / 0.7229 GB, free: 4.363 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 6.58e-05/0.4317, allocations: 100.5 kB / 0.723 GB, free: 4.277 MB / 0.5138 GB Notification: Performance of Backend: time 4.91e-07/0.4317, allocations: 0 / 0.723 GB, free: 4.277 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0005088/0.4322, allocations: 134.6 kB / 0.7231 GB, free: 4.188 MB / 0.5138 GB Notification: Performance of SimCode: time 0.0006229/0.4328, allocations: 0.6543 MB / 0.7237 GB, free: 3.535 MB / 0.5138 GB Notification: Performance of Templates: time 0.003333/0.4362, allocations: 1.115 MB / 0.7248 GB, free: 2.973 MB / 0.5138 GB make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.makefile (rm -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; mkfifo ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe >> ../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.sim & ./ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestMinMax.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable CPUtime in file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat. Warning: Get data of variable CPUtime from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat failed! Error: Could not read variable EventCounter in file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat. Warning: Get data of variable EventCounter from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat failed! " Variables in the reference:CPUtime,EventCounter,T.k1,T.k2,T.u1,T.u2,T.y,Time,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2] Variables in the result:T.k1,T.k2,T.u1,T.u2,T.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2],timeExtrema.ymax,timeExtrema.ymin