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") [: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.001452/0.001452, allocations: 183.6 kB / 8.478 MB, free: 1.859 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.171/1.171, allocations: 205.2 MB / 214.1 MB, free: 5.086 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.0008178/0.0008178, allocations: 93.92 kB / 262.1 MB, free: 5.125 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.834e-06/8.245e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06709/0.06711, allocations: 47.58 MB / 362.5 MB, free: 9.945 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2212/0.2884, allocations: 81.56 MB / 444.1 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.2886, allocations: 68.72 kB / 444.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03904/0.3277, allocations: 16.14 MB / 460.3 MB, free: 5.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.338e-05/0.3278, allocations: 19.03 kB / 460.3 MB, free: 5.516 MB / 314.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.001756/0.3295, allocations: 1.086 MB / 461.4 MB, free: 4.734 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3296, allocations: 9.5 kB / 461.4 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.3298, allocations: 108.8 kB / 461.5 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.3309, allocations: 0.5475 MB / 462.1 MB, free: 4.336 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.3311, allocations: 129 kB / 462.2 MB, free: 4.234 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.3312, allocations: 37.16 kB / 462.2 MB, free: 4.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008533/0.332, allocations: 476.1 kB / 462.7 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008817/0.3329, allocations: 0.6971 MB / 463.4 MB, free: 3.812 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.333, allocations: 0 / 463.4 MB, free: 3.812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.251e-05/0.333, allocations: 2.312 kB / 463.4 MB, free: 3.812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.3331, allocations: 17.66 kB / 463.4 MB, free: 3.809 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003388/0.3364, allocations: 2 MB / 465.4 MB, free: 2.832 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007202/0.3372, allocations: 446.5 kB / 465.9 MB, free: 2.777 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006965/0.3379, allocations: 348.4 kB / 466.2 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.726e-05/0.338, allocations: 17.47 kB / 466.2 MB, free: 2.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.338, allocations: 48 kB / 466.3 MB, free: 2.711 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 2.224e-06/0.338, allocations: 0.9688 kB / 466.3 MB, free: 2.711 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.00237/0.3404, allocations: 0.8478 MB / 467.1 MB, free: 2.477 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001927/0.3406, allocations: 0.8226 MB / 467.9 MB, free: 1.473 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006728/0.3413, allocations: 497.9 kB / 468.4 MB, free: 1.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.189e-05/0.3414, allocations: 33.34 kB / 468.4 MB, free: 1.285 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3415, allocations: 225.9 kB / 468.7 MB, free: 1.125 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.3417, allocations: 250.1 kB / 468.9 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.3417, allocations: 1.531 kB / 468.9 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3419, allocations: 386.7 kB / 469.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004035/0.3423, allocations: 205 kB / 469.5 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006452/0.3429, allocations: 475.6 kB / 470 MB, free: 312 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004961/0.3434, allocations: 244.4 kB / 470.2 MB, free: 272 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.3434, allocations: 4 kB / 470.2 MB, free: 268 kB / 314.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002088/0.3455, allocations: 0.9074 MB / 471.1 MB, free: 24 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3456, allocations: 7.156 kB / 471.1 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.3456, allocations: 1.5 kB / 471.1 MB, free: 24 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00074/0.3463, allocations: 208.1 kB / 471.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000715/0.3471, allocations: 149.8 kB / 471.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006866/0.3539, allocations: 6.06 MB / 477.5 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.3551, allocations: 102.3 kB / 477.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.768e-05/0.3552, allocations: 24.84 kB / 477.6 MB, free: 10.66 MB / 330.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.0003007/0.3555, allocations: 132.4 kB / 477.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.3557, allocations: 86.7 kB / 477.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002107/0.3559, allocations: 83.17 kB / 477.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.3559, allocations: 7.406 kB / 477.9 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.356, allocations: 5.062 kB / 478 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001983/0.358, allocations: 1.144 MB / 479.1 MB, free: 9.766 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.3611, allocations: 1.741 MB / 480.8 MB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3611, allocations: 96 / 480.8 MB, free: 8.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007983/0.3619, allocations: 158.3 kB / 481 MB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004257/0.3624, allocations: 164.9 kB / 481.2 MB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-05/0.3625, allocations: 7.047 kB / 481.2 MB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005291/0.3677, allocations: 4.635 MB / 485.8 MB, free: 3.645 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.3678, allocations: 3.906 kB / 485.8 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002593/0.3704, allocations: 1.245 MB / 487 MB, free: 2.715 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005541/0.371, allocations: 236.6 kB / 487.3 MB, free: 2.512 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.3711, allocations: 4 kB / 487.3 MB, free: 2.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005571/0.3717, allocations: 51.89 kB / 487.3 MB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.3718, allocations: 48.77 kB / 487.4 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.391e-05/0.3719, allocations: 22.5 kB / 487.4 MB, free: 2.402 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0005439/0.3724, allocations: 387.4 kB / 487.8 MB, free: 2.133 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001027/0.3734, allocations: 263.6 kB / 488 MB, free: 1.875 MB / 330.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.000192/0.3736, allocations: 111.3 kB / 488.1 MB, free: 1.758 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001755/0.3754, allocations: 1.128 MB / 489.3 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3754, allocations: 0 / 489.3 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.3765, allocations: 0.6733 MB / 489.9 MB, free: 184 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008301/0.3773, allocations: 186.9 kB / 490.1 MB, free: 40 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.3799, allocations: 1.225 MB / 491.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006302/0.3805, allocations: 1.025 MB / 492.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of SimCode: time 4.7e-07/0.3805, allocations: 4 kB / 492.4 MB, free: 13.86 MB / 346.7 MB Notification: Performance of Templates: time 0.02413/0.4046, allocations: 14.89 MB / 0.4954 GB, free: 15.01 MB / 362.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