Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 176.4 kB / 8.347 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0009301/0.0009301, allocations: 91.61 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.626e-05/1.629e-05, allocations: 0 / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.4304, allocations: 80.91 MB / 468.4 MB, free: 13.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4307, allocations: 67.95 kB / 468.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0409/0.4716, allocations: 15.95 MB / 484.4 MB, free: 13.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4716, allocations: 4 kB / 484.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.535e-05/0.4717, allocations: 15.98 kB / 484.4 MB, free: 13.78 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001798/0.4735, allocations: 1.069 MB / 485.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.4736, allocations: 12.03 kB / 485.5 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.4737, allocations: 106.9 kB / 485.6 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008297/0.4746, allocations: 0.5396 MB / 486.1 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000183/0.4748, allocations: 126.4 kB / 486.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.698e-05/0.4749, allocations: 32 kB / 486.3 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008542/0.4757, allocations: 482.5 kB / 486.8 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.4768, allocations: 0.7063 MB / 487.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.4768, allocations: 4 kB / 487.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/0.4768, allocations: 0 / 487.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.4769, allocations: 16 kB / 487.5 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003273/0.4802, allocations: 1.969 MB / 489.5 MB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.4812, allocations: 0.8815 MB / 490.3 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004294/0.4817, allocations: 311 kB / 490.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.303e-05/0.4817, allocations: 12.77 kB / 490.7 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.586e-05/0.4818, allocations: 55.34 kB / 490.7 MB, free: 7.066 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.926e-06/0.4818, allocations: 0 / 490.7 MB, free: 7.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002023/0.4838, allocations: 0.846 MB / 491.6 MB, free: 6.203 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004728/0.4843, allocations: 0.8235 MB / 492.4 MB, free: 5.184 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006524/0.485, allocations: 499.5 kB / 492.9 MB, free: 4.691 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.485, allocations: 29.7 kB / 492.9 MB, free: 4.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.4853, allocations: 342.7 kB / 493.2 MB, free: 4.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.4855, allocations: 244.2 kB / 493.5 MB, free: 4.078 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.4855, allocations: 8 kB / 493.5 MB, free: 4.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.4857, allocations: 386.7 kB / 493.9 MB, free: 3.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000348/0.486, allocations: 201.6 kB / 494 MB, free: 3.484 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00058/0.4866, allocations: 472.1 kB / 494.5 MB, free: 2.922 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.4871, allocations: 241 kB / 494.7 MB, free: 2.688 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4871, allocations: 3.938 kB / 494.7 MB, free: 2.684 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001958/0.489, allocations: 0.9007 MB / 495.6 MB, free: 1.766 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.265e-05/0.4891, allocations: 86.2 kB / 495.7 MB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.4891, allocations: 4 kB / 495.7 MB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005868/0.4897, allocations: 195.3 kB / 495.9 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006551/0.4904, allocations: 143.8 kB / 496.1 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005906/0.4963, allocations: 6.052 MB / 0.4904 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007478/0.4971, allocations: 87.53 kB / 0.4904 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.056e-05/0.4971, allocations: 31.98 kB / 0.4905 GB, free: 10.68 MB / 378.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.0002443/0.4974, allocations: 126.4 kB / 0.4906 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.4975, allocations: 83.06 kB / 0.4907 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.4977, allocations: 83.97 kB / 0.4907 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.4978, allocations: 8 kB / 0.4908 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.006e-06/0.4978, allocations: 7.953 kB / 0.4908 GB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001813/0.4996, allocations: 1.123 MB / 0.4919 GB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002984/0.5026, allocations: 1.738 MB / 0.4936 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5026, allocations: 0 / 0.4936 GB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007133/0.5033, allocations: 147.8 kB / 0.4937 GB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003912/0.5037, allocations: 170.5 kB / 0.4939 GB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.5038, allocations: 7.953 kB / 0.4939 GB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005096/0.5089, allocations: 4.656 MB / 0.4984 GB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5089, allocations: 0 / 0.4984 GB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.5116, allocations: 1.219 MB / 0.4996 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004858/0.5121, allocations: 232 kB / 0.4998 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.5122, allocations: 4 kB / 0.4998 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005923/0.5128, allocations: 43.95 kB / 0.4999 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.513, allocations: 68.62 kB / 0.4999 GB, free: 408 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.571e-05/0.5131, allocations: 23.98 kB / 0.5 GB, free: 384 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005874/0.5136, allocations: 391.2 kB / 0.5003 GB, free: 0 / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5137, allocations: 0 / 0.5003 GB, free: 0 / 378.7 MB Notification: Performance of remove unused functions: time 0.001035/0.5147, allocations: 263.6 kB / 0.5006 GB, free: 15.74 MB / 394.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.0002912/0.515, allocations: 127.2 kB / 0.5007 GB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001799/0.5168, allocations: 1.182 MB / 0.5019 GB, free: 14.35 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.5168, allocations: 0 / 0.5019 GB, free: 14.35 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.5179, allocations: 0.6837 MB / 0.5025 GB, free: 13.64 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008726/0.5188, allocations: 196.3 kB / 0.5027 GB, free: 13.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.5211, allocations: 1.19 MB / 0.5039 GB, free: 12.22 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.5216, allocations: 0.956 MB / 0.5048 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003776/0.522, allocations: 90.02 kB / 0.5049 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.5221, allocations: 59.42 kB / 0.505 GB, free: 11.09 MB / 394.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5221, allocations: 0 / 0.505 GB, free: 11.09 MB / 394.7 MB Notification: Performance of Templates: time 0.02245/0.5446, allocations: 14.52 MB / 0.5191 GB, free: 12.75 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches