Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") [: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 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 184.2 kB / 8.136 MB, free: 2.207 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.318/1.318, allocations: 221.4 MB / 229.9 MB, free: 3.031 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.000897/0.0008971, allocations: 105.5 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.12e-06/5.14e-06, allocations: 0 / 336.5 MB, free: 9.531 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1962, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08838/0.2846, allocations: 82.24 MB / 469.1 MB, free: 4.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.2849, allocations: 76.55 kB / 469.2 MB, free: 4.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.0258/0.3107, allocations: 9.148 MB / 478.4 MB, free: 11.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.661e-05/0.3107, allocations: 12 kB / 478.4 MB, free: 11.34 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0008536/0.3116, allocations: 0.582 MB / 479 MB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.3116, allocations: 8.031 kB / 479 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.041e-05/0.3117, allocations: 48.09 kB / 479 MB, free: 10.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.3122, allocations: 311.6 kB / 479.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.3123, allocations: 8 kB / 479.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.3123, allocations: 23.84 kB / 479.4 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003183/0.3127, allocations: 160.9 kB / 479.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003975/0.3131, allocations: 250.3 kB / 479.8 MB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3131, allocations: 4.75 kB / 479.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.3131, allocations: 0 / 479.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.3131, allocations: 4 kB / 479.8 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.3145, allocations: 0.8046 MB / 480.6 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/0.3149, allocations: 195.9 kB / 480.8 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.3151, allocations: 89.41 kB / 480.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.3151, allocations: 8.266 kB / 480.9 MB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.3154, allocations: 145.6 kB / 481 MB, free: 8.539 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.853e-06/0.3154, allocations: 0.9375 kB / 481 MB, free: 8.539 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001955/0.3173, allocations: 1.036 MB / 482 MB, free: 7.406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.3175, allocations: 183.9 kB / 482.2 MB, free: 7.184 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.3178, allocations: 275.5 kB / 482.5 MB, free: 6.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.3179, allocations: 25.7 kB / 482.5 MB, free: 6.879 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.318, allocations: 144.6 kB / 482.6 MB, free: 6.734 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3181, allocations: 138 kB / 482.8 MB, free: 6.598 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.284e-05/0.3181, allocations: 0 / 482.8 MB, free: 6.598 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3183, allocations: 346.8 kB / 483.1 MB, free: 6.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.3184, allocations: 80.81 kB / 483.2 MB, free: 6.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.3186, allocations: 168.4 kB / 483.4 MB, free: 5.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.3188, allocations: 101.6 kB / 483.5 MB, free: 5.875 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.3188, allocations: 7.984 kB / 483.5 MB, free: 5.867 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005135/0.3194, allocations: 326.9 kB / 483.8 MB, free: 5.539 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.3194, allocations: 7.906 kB / 483.8 MB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3194, allocations: 0 / 483.8 MB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001083/0.3195, allocations: 20.86 kB / 483.8 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.3199, allocations: 91.89 kB / 483.9 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001079/0.321, allocations: 1.228 MB / 485.1 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/0.3212, allocations: 8 kB / 485.1 MB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.3212, allocations: 15.98 kB / 485.2 MB, free: 4.059 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cylinder1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * Single equations (assignments): 48 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001516/0.3214, allocations: 119.9 kB / 485.3 MB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.802e-05/0.3214, allocations: 39.53 kB / 485.3 MB, free: 3.898 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005194/0.322, allocations: 298.8 kB / 485.6 MB, free: 3.598 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.322, allocations: 7.938 kB / 485.6 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.322, allocations: 7.984 kB / 485.6 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005512/0.3225, allocations: 0.618 MB / 486.2 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.3236, allocations: 0.7709 MB / 487 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3237, allocations: 7.984 kB / 487 MB, free: 2.023 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.324, allocations: 79.89 kB / 487.1 MB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.3241, allocations: 7.906 kB / 487.1 MB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.3241, allocations: 8.125 kB / 487.1 MB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3241, allocations: 0 / 487.1 MB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.3241, allocations: 7.938 kB / 487.1 MB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006654/0.3248, allocations: 0.5476 MB / 487.7 MB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.325, allocations: 144.6 kB / 487.8 MB, free: 1.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.569e-05/0.325, allocations: 4 kB / 487.8 MB, free: 1.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.3253, allocations: 11.98 kB / 487.8 MB, free: 1.145 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.3253, allocations: 23.97 kB / 487.8 MB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.3254, allocations: 12 kB / 487.9 MB, free: 1.109 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002134/0.3256, allocations: 215.1 kB / 488.1 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003975/0.326, allocations: 92.56 kB / 488.2 MB, free: 0.8086 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * 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 (41): * Single equations (assignments): 39 * 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.0006775/0.3267, allocations: 325.8 kB / 488.5 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005609/0.3272, allocations: 341.7 kB / 488.8 MB, free: 228 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3273, allocations: 0 / 488.8 MB, free: 228 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001935/0.3275, allocations: 135.6 kB / 488.9 MB, free: 92 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004644/0.3279, allocations: 78.56 kB / 489 MB, free: 16 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.3293, allocations: 0.7587 MB / 489.8 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005034/0.3299, allocations: 0.8465 MB / 490.6 MB, free: 14.35 MB / 378.7 MB Notification: Performance of SimCode: time 3.296e-06/0.3299, allocations: 0 / 490.6 MB, free: 14.35 MB / 378.7 MB Notification: Performance of Templates: time 0.009286/0.3392, allocations: 4.825 MB / 495.5 MB, free: 9.586 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches