Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00248/0.002479, allocations: 185.2 kB / 8.154 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.744/1.744, allocations: 205.2 MB / 213.8 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001741/0.001741, allocations: 87.03 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.864e-05/1.883e-05, allocations: 4 kB / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3319, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.4629, allocations: 81.57 MB / 443.4 MB, free: 4.473 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.4633, allocations: 78.02 kB / 443.5 MB, free: 4.398 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.07081/0.5341, allocations: 16.14 MB / 459.6 MB, free: 4.215 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.481e-05/0.5342, allocations: 20 kB / 459.6 MB, free: 4.195 MB / 346.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.003242/0.5375, allocations: 1.083 MB / 460.7 MB, free: 3.051 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.5375, allocations: 16.02 kB / 460.7 MB, free: 3.035 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004143/0.538, allocations: 110.8 kB / 460.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.5395, allocations: 0.5319 MB / 461.4 MB, free: 2.348 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000314/0.5398, allocations: 138.4 kB / 461.5 MB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.54, allocations: 35.91 kB / 461.5 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001605/0.5416, allocations: 474.5 kB / 462 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.5433, allocations: 0.7001 MB / 462.7 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.5433, allocations: 0 / 462.7 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.5434, allocations: 0 / 462.7 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.5435, allocations: 16 kB / 462.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006125/0.5496, allocations: 1.996 MB / 464.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/0.551, allocations: 445.1 kB / 465.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.5521, allocations: 349 kB / 465.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.782e-05/0.5522, allocations: 24.62 kB / 465.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.864e-05/0.5522, allocations: 43.22 kB / 465.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.906e-06/0.5522, allocations: 0 / 465.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.003939/0.5562, allocations: 0.8535 MB / 466.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004241/0.5567, allocations: 0.8234 MB / 467.2 MB, free: 12.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/0.5578, allocations: 495.6 kB / 467.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002173/0.558, allocations: 29.7 kB / 467.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.5582, allocations: 249.2 kB / 468 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003361/0.5586, allocations: 244.3 kB / 468.2 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.865e-05/0.5586, allocations: 4 kB / 468.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5588, allocations: 342.7 kB / 468.6 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006805/0.5595, allocations: 205.5 kB / 468.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009959/0.5605, allocations: 469 kB / 469.2 MB, free: 9.922 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007656/0.5613, allocations: 250 kB / 469.5 MB, free: 9.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.5613, allocations: 0 / 469.5 MB, free: 9.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003895/0.5652, allocations: 0.8569 MB / 470.3 MB, free: 8.805 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.5653, allocations: 4.656 kB / 470.3 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.5653, allocations: 4 kB / 470.3 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.5664, allocations: 207.2 kB / 470.5 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/0.5678, allocations: 151.8 kB / 470.7 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/0.579, allocations: 6.051 MB / 476.7 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.5802, allocations: 103.4 kB / 476.8 MB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.115e-05/0.5804, allocations: 20.06 kB / 476.9 MB, free: 1.801 MB / 362.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.0003342/0.5807, allocations: 61.69 kB / 476.9 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003093/0.581, allocations: 83.06 kB / 477 MB, free: 1.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003085/0.5813, allocations: 87.67 kB / 477.1 MB, free: 1.559 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.5814, allocations: 4 kB / 477.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/0.5814, allocations: 7.906 kB / 477.1 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003575/0.585, allocations: 1.138 MB / 478.2 MB, free: 300 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006093/0.5911, allocations: 1.745 MB / 480 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.5912, allocations: 3.984 kB / 480 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.5928, allocations: 152.6 kB / 480.1 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008344/0.5937, allocations: 162.4 kB / 480.3 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.5938, allocations: 3.984 kB / 480.3 MB, free: 14.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009578/0.6034, allocations: 4.645 MB / 484.9 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.6035, allocations: 0 / 484.9 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004823/0.6083, allocations: 1.245 MB / 486.2 MB, free: 7.906 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007634/0.6091, allocations: 239.9 kB / 486.4 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.6093, allocations: 8 kB / 486.4 MB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.6104, allocations: 54.11 kB / 486.5 MB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.6106, allocations: 48.48 kB / 486.5 MB, free: 7.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.446e-05/0.6107, allocations: 16 kB / 486.6 MB, free: 7.531 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008569/0.6116, allocations: 395.2 kB / 486.9 MB, free: 7.152 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001355/0.6129, allocations: 255.7 kB / 487.2 MB, free: 6.902 MB / 378.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.0003053/0.6133, allocations: 115.1 kB / 487.3 MB, free: 6.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00341/0.6167, allocations: 1.121 MB / 488.4 MB, free: 5.602 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.395e-06/0.6167, allocations: 4 kB / 488.4 MB, free: 5.598 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002095/0.6188, allocations: 0.6678 MB / 489.1 MB, free: 4.898 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/0.6205, allocations: 183.6 kB / 489.3 MB, free: 4.723 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00478/0.6253, allocations: 1.26 MB / 490.5 MB, free: 3.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00117/0.6265, allocations: 1.043 MB / 491.6 MB, free: 2.363 MB / 378.7 MB Notification: Performance of SimCode: time 1.392e-06/0.6266, allocations: 0 / 491.6 MB, free: 2.363 MB / 378.7 MB Notification: Performance of Templates: time 0.1616/0.7882, allocations: 21.23 MB / 0.5008 GB, free: 161 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches