Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 141.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9107/0.9107, allocations: 173.3 MB / 201.1 MB, free: 8.996 MB / 186.7 MB " [Timeout remaining time 179] 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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 268 MB, free: 6.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.938e-05/2.072e-05, allocations: 6.312 kB / 268 MB, free: 6.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.005589/0.00561, allocations: 2.865 MB / 270.8 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005089/0.0107, allocations: 1.246 MB / 272.1 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.01092, allocations: 11.94 kB / 272.1 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004874/0.0114, allocations: 179.1 kB / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004565/0.01186, allocations: 214.7 kB / 272.5 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003392/0.01525, allocations: 171.4 kB / 272.7 MB, free: 1.605 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000553/0.01581, allocations: 477.6 kB / 273.1 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.01597, allocations: 59.95 kB / 273.2 MB, free: 1.078 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/0.01626, allocations: 267.3 kB / 273.4 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.01649, allocations: 163.6 kB / 273.6 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.892e-05/0.01654, allocations: 35.92 kB / 273.6 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.01667, allocations: 67.92 kB / 273.7 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.637e-05/0.01676, allocations: 87.69 kB / 273.8 MB, free: 480 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.01689, allocations: 135.7 kB / 273.9 MB, free: 344 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.01729, allocations: 334.7 kB / 274.2 MB, free: 8 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.0173, allocations: 0 / 274.2 MB, free: 8 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.0173, allocations: 0 / 274.2 MB, free: 8 kB / 250.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.0173, allocations: 0 / 274.2 MB, free: 8 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008278/0.01813, allocations: 0.7367 MB / 275 MB, free: 15.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.003041/0.02117, allocations: 8.922 kB / 275 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.02129, allocations: 64.66 kB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.02163, allocations: 278.8 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.02166, allocations: 12.88 kB / 275.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.275e-05/0.0217, allocations: 28.38 kB / 275.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004624/0.02216, allocations: 0.5813 MB / 275.9 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.02217, allocations: 3.938 kB / 276 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.0222, allocations: 8 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.02221, allocations: 7.938 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.02238, allocations: 90.92 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000976/0.02335, allocations: 0.6917 MB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.0236, allocations: 134.6 kB / 276.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.179e-05/0.02368, allocations: 47.67 kB / 276.9 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.0237, allocations: 4 kB / 276.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.02389, allocations: 166 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.02389, allocations: 0 / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.004602/0.02849, allocations: 279.8 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.0286, allocations: 316.4 kB / 277.7 MB, free: 12.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/0.02894, allocations: 426.6 kB / 278.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.02896, allocations: 29.7 kB / 278.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.02911, allocations: 259.2 kB / 278.4 MB, free: 11.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/0.02917, allocations: 79.33 kB / 278.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.182e-05/0.02925, allocations: 67.34 kB / 278.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003644/0.02961, allocations: 0.5235 MB / 279 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.266e-05/0.02969, allocations: 31.98 kB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.02991, allocations: 436.6 kB / 279.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.03009, allocations: 130.7 kB / 279.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.0301, allocations: 4 kB / 279.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003256/0.03042, allocations: 229.5 kB / 279.9 MB, free: 9.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.03044, allocations: 11.94 kB / 279.9 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.03044, allocations: 4.078 kB / 279.9 MB, free: 9.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001061/0.03055, allocations: 35.66 kB / 279.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.03071, allocations: 47.92 kB / 279.9 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.03481, allocations: 1.853 MB / 281.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.03494, allocations: 19.89 kB / 281.8 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.03496, allocations: 16 kB / 281.8 MB, free: 7.73 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.03508, allocations: 183.5 kB / 282 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.641e-05/0.03514, allocations: 51.77 kB / 282.1 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003145/0.03545, allocations: 208.7 kB / 282.3 MB, free: 7.273 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.03546, allocations: 7.984 kB / 282.3 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.03546, allocations: 0 / 282.3 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003255/0.03579, allocations: 0.5499 MB / 282.8 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006424/0.03643, allocations: 0.629 MB / 283.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.03643, allocations: 0 / 283.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.03659, allocations: 47.91 kB / 283.5 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.03659, allocations: 0 / 283.5 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.03661, allocations: 8 kB / 283.5 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.03661, allocations: 3.938 kB / 283.5 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.03661, allocations: 0 / 283.5 MB, free: 5.879 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003383/0.03999, allocations: 390.3 kB / 283.9 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.631e-05/0.04009, allocations: 63.66 kB / 284 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.04013, allocations: 8.031 kB / 284 MB, free: 5.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.04027, allocations: 15.94 kB / 284 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.04031, allocations: 15.97 kB / 284 MB, free: 5.379 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.043e-05/0.04033, allocations: 8 kB / 284 MB, free: 5.371 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002169/0.04055, allocations: 283.1 kB / 284.3 MB, free: 5.094 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04055, allocations: 0 / 284.3 MB, free: 5.094 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003523/0.0409, allocations: 95.89 kB / 284.4 MB, free: 5 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009799/0.04188, allocations: 400.5 kB / 284.8 MB, free: 4.746 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004586/0.04234, allocations: 337 kB / 285.1 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.04235, allocations: 0 / 285.1 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.04245, allocations: 71.78 kB / 285.2 MB, free: 4.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003461/0.04591, allocations: 104.4 kB / 285.3 MB, free: 4.219 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.0474, allocations: 0.7094 MB / 286 MB, free: 3.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.04772, allocations: 100.6 kB / 286.1 MB, free: 3.363 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.04785, allocations: 42.95 kB / 286.1 MB, free: 3.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.735e-05/0.04792, allocations: 32.48 kB / 286.1 MB, free: 3.289 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.04792, allocations: 0 / 286.1 MB, free: 3.289 MB / 266.7 MB Notification: Performance of Templates: time 0.09598/0.1439, allocations: 6.823 MB / 293 MB, free: 29.39 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8798148008063436]