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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 174.9 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009019/0.000902, allocations: 91.5 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.339e-05/2.342e-05, allocations: 4 kB / 343.8 MB, free: 4.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3034/0.4057, allocations: 82.91 MB / 477.1 MB, free: 4.641 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.406, allocations: 79.78 kB / 477.2 MB, free: 4.566 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02126/0.4272, allocations: 8.343 MB / 485.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.4273, allocations: 0 / 485.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.509e-05/0.4273, allocations: 8 kB / 485.6 MB, free: 12.18 MB / 362.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.000753/0.4281, allocations: 0.592 MB / 486.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.4281, allocations: 8.031 kB / 486.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.265e-05/0.4282, allocations: 43.53 kB / 486.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004605/0.4287, allocations: 332.1 kB / 486.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/0.4287, allocations: 12.44 kB / 486.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.4288, allocations: 20.69 kB / 486.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004245/0.4292, allocations: 285.5 kB / 486.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.4292, allocations: 3.953 kB / 486.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.4293, allocations: 8 kB / 486.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.4293, allocations: 11.98 kB / 486.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002553/0.4295, allocations: 145.7 kB / 487 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001277/0.4308, allocations: 0.7979 MB / 487.8 MB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.4313, allocations: 207.3 kB / 488 MB, free: 9.551 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.4314, allocations: 76.81 kB / 488.1 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.4314, allocations: 8 kB / 488.1 MB, free: 9.465 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002463/0.4317, allocations: 139.5 kB / 488.2 MB, free: 9.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 3.196e-06/0.4317, allocations: 0 / 488.2 MB, free: 9.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005695/0.4323, allocations: 265.8 kB / 488.5 MB, free: 9.051 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.4324, allocations: 316.4 kB / 488.8 MB, free: 8.668 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004394/0.4329, allocations: 382.9 kB / 489.2 MB, free: 8.285 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.888e-05/0.4329, allocations: 33.7 kB / 489.2 MB, free: 8.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.4331, allocations: 200.2 kB / 489.4 MB, free: 8.043 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.137e-05/0.4332, allocations: 86.73 kB / 489.5 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/0.4332, allocations: 8 kB / 489.5 MB, free: 7.949 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4333, allocations: 350.8 kB / 489.8 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.4335, allocations: 63.98 kB / 489.9 MB, free: 7.535 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.4337, allocations: 176.2 kB / 490.1 MB, free: 7.316 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.4338, allocations: 89.08 kB / 490.2 MB, free: 7.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4338, allocations: 0 / 490.2 MB, free: 7.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004614/0.4343, allocations: 284.5 kB / 490.4 MB, free: 6.945 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4343, allocations: 8 kB / 490.5 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4343, allocations: 7.938 kB / 490.5 MB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001835/0.4345, allocations: 40.78 kB / 490.5 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.4347, allocations: 47.97 kB / 490.5 MB, free: 6.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.436, allocations: 1.453 MB / 492 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.4362, allocations: 23.78 kB / 492 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.4363, allocations: 20 kB / 492 MB, free: 5.211 MB / 362.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 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.4364, allocations: 120.9 kB / 492.2 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.683e-05/0.4364, allocations: 39.53 kB / 492.2 MB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005351/0.437, allocations: 290.1 kB / 492.5 MB, free: 4.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.437, allocations: 4 kB / 492.5 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.437, allocations: 0 / 492.5 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000525/0.4375, allocations: 0.5906 MB / 493.1 MB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000919/0.4385, allocations: 0.7352 MB / 493.8 MB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4385, allocations: 0 / 493.8 MB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/0.4387, allocations: 51.91 kB / 493.9 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.01e-06/0.4387, allocations: 4 kB / 493.9 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.4387, allocations: 4 kB / 493.9 MB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4387, allocations: 3.984 kB / 493.9 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.4387, allocations: 0 / 493.9 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004835/0.4392, allocations: 427.4 kB / 494.3 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.4394, allocations: 148.6 kB / 494.4 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.4395, allocations: 11.94 kB / 494.4 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.4396, allocations: 12 kB / 494.5 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.4397, allocations: 15.97 kB / 494.5 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/0.4397, allocations: 8 kB / 494.5 MB, free: 2.543 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003066/0.44, allocations: 305.2 kB / 494.8 MB, free: 2.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.44, allocations: 4.062 kB / 494.8 MB, free: 2.242 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003801/0.4404, allocations: 119.8 kB / 494.9 MB, free: 2.125 MB / 362.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008741/0.4413, allocations: 391.9 kB / 495.3 MB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000535/0.4419, allocations: 302.6 kB / 495.6 MB, free: 1.543 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4419, allocations: 4.062 kB / 495.6 MB, free: 1.539 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.442, allocations: 91.88 kB / 495.7 MB, free: 1.449 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004511/0.4425, allocations: 100.7 kB / 495.8 MB, free: 1.355 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009274/0.4434, allocations: 0.5501 MB / 496.3 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003892/0.4438, allocations: 0.8117 MB / 497.1 MB, free: 15.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001538/0.444, allocations: 46.95 kB / 497.2 MB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.241e-05/0.4441, allocations: 39.36 kB / 497.2 MB, free: 15.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4441, allocations: 0 / 497.2 MB, free: 15.86 MB / 378.7 MB Notification: Performance of Templates: time 0.01025/0.4543, allocations: 5.761 MB / 0.4912 GB, free: 10.18 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches