Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001356/0.001356, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008807/0.0008807, allocations: 82.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.651e-05/1.654e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08304/0.08307, allocations: 47.58 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3042/0.3873, allocations: 81.88 MB / 444.9 MB, free: 13.79 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.3876, allocations: 73.02 kB / 445 MB, free: 13.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0415/0.4291, allocations: 16.25 MB / 461.3 MB, free: 408 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4292, allocations: 0 / 461.3 MB, free: 408 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.405e-05/0.4292, allocations: 20 kB / 461.3 MB, free: 388 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001831/0.4311, allocations: 1.063 MB / 462.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.4311, allocations: 8.031 kB / 462.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.4313, allocations: 118.7 kB / 462.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008333/0.4322, allocations: 0.5304 MB / 463 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.4324, allocations: 130.2 kB / 463.1 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.839e-05/0.4325, allocations: 36 kB / 463.2 MB, free: 14.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007613/0.4332, allocations: 478.1 kB / 463.6 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009158/0.4341, allocations: 0.6934 MB / 464.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.4342, allocations: 3.984 kB / 464.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.123e-05/0.4342, allocations: 4 kB / 464.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.4342, allocations: 12 kB / 464.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002997/0.4372, allocations: 1.982 MB / 466.3 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009321/0.4382, allocations: 0.8763 MB / 467.2 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003954/0.4386, allocations: 314.1 kB / 467.5 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.089e-05/0.4387, allocations: 12.73 kB / 467.5 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.4387, allocations: 47.47 kB / 467.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=74): time 2.475e-06/0.4387, allocations: 0 / 467.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.001914/0.4406, allocations: 0.8494 MB / 468.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003335/0.441, allocations: 0.8222 MB / 469.2 MB, free: 9.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.4415, allocations: 0.4884 MB / 469.7 MB, free: 8.973 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.4416, allocations: 29.7 kB / 469.8 MB, free: 8.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.4418, allocations: 333.4 kB / 470.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/0.442, allocations: 249.2 kB / 470.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.21e-05/0.4421, allocations: 0 / 470.3 MB, free: 8.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.4422, allocations: 383.3 kB / 470.7 MB, free: 8.168 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.4425, allocations: 211.3 kB / 470.9 MB, free: 8.047 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004841/0.443, allocations: 469.5 kB / 471.4 MB, free: 7.617 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000398/0.4434, allocations: 251.3 kB / 471.6 MB, free: 7.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4434, allocations: 0 / 471.6 MB, free: 7.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001873/0.4453, allocations: 0.8979 MB / 472.5 MB, free: 6.746 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.35e-05/0.4454, allocations: 85.11 kB / 472.6 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4454, allocations: 0 / 472.6 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005658/0.446, allocations: 220.8 kB / 472.8 MB, free: 6.469 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006298/0.4466, allocations: 143.1 kB / 472.9 MB, free: 6.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005635/0.4523, allocations: 6.031 MB / 479 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007706/0.4531, allocations: 87.59 kB / 479.1 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/0.4531, allocations: 26.73 kB / 479.1 MB, free: 308 kB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002455/0.4534, allocations: 129.5 kB / 479.2 MB, free: 172 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.4535, allocations: 87.25 kB / 479.3 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002067/0.4537, allocations: 86.47 kB / 479.4 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.4538, allocations: 8 kB / 479.4 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4538, allocations: 3.984 kB / 479.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001809/0.4556, allocations: 1.123 MB / 480.5 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002941/0.4585, allocations: 1.734 MB / 482.3 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4586, allocations: 7.938 kB / 482.3 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006653/0.4592, allocations: 151.8 kB / 482.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004012/0.4596, allocations: 158.5 kB / 482.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.4597, allocations: 8 kB / 482.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004725/0.4644, allocations: 4.655 MB / 487.2 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4645, allocations: 0 / 487.2 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.4668, allocations: 1.227 MB / 488.5 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003733/0.4672, allocations: 235.9 kB / 488.7 MB, free: 6.152 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.64e-05/0.4673, allocations: 4 kB / 488.7 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005109/0.4678, allocations: 51.91 kB / 488.7 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.468, allocations: 60.69 kB / 488.8 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/0.468, allocations: 19.98 kB / 488.8 MB, free: 6.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005003/0.4685, allocations: 395.2 kB / 489.2 MB, free: 5.641 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4686, allocations: 7.938 kB / 489.2 MB, free: 5.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000884/0.4694, allocations: 259.7 kB / 489.5 MB, free: 5.379 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000211/0.4697, allocations: 119.1 kB / 489.6 MB, free: 5.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.4712, allocations: 1.174 MB / 490.8 MB, free: 4 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4712, allocations: 0 / 490.8 MB, free: 4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.4722, allocations: 0.6954 MB / 491.5 MB, free: 3.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008552/0.4731, allocations: 185 kB / 491.6 MB, free: 3.098 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.4752, allocations: 1.19 MB / 492.8 MB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/0.4758, allocations: 0.9598 MB / 493.8 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004083/0.4762, allocations: 94 kB / 493.9 MB, free: 0.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.4764, allocations: 63.42 kB / 493.9 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4764, allocations: 0 / 493.9 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of Templates: time 0.02284/0.4992, allocations: 14.51 MB / 0.4965 GB, free: 2.195 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches