Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.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.Media.Examples.ReferenceAir.DryAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1") [: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.001608/0.001608, allocations: 181.2 kB / 8.132 MB, free: 2.215 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.473/1.473, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.001142/0.001142, allocations: 97.06 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.452e-06/6.483e-06, allocations: 0 / 336.5 MB, free: 9.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.303, allocations: 50.4 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.157/1.46, allocations: 0.536 GB / 0.9138 GB, free: 87.31 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/1.461, allocations: 79.89 kB / 0.9139 GB, free: 87.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.389/2.85, allocations: 460 MB / 1.363 GB, free: 112 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.834e-05/2.85, allocations: 5.562 kB / 1.363 GB, free: 112 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001316/2.851, allocations: 0.7102 MB / 1.364 GB, free: 111.6 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/2.851, allocations: 7.344 kB / 1.364 GB, free: 111.6 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005662/2.852, allocations: 56.67 kB / 1.364 GB, free: 111.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/2.852, allocations: 287.1 kB / 1.364 GB, free: 111.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/2.853, allocations: 10.53 kB / 1.364 GB, free: 111.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.844e-05/2.853, allocations: 15.72 kB / 1.364 GB, free: 111.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003061/2.853, allocations: 185.8 kB / 1.364 GB, free: 111.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003732/2.853, allocations: 280.7 kB / 1.365 GB, free: 111.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/2.853, allocations: 8.062 kB / 1.365 GB, free: 111.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.803e-05/2.853, allocations: 4 kB / 1.365 GB, free: 111.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/2.853, allocations: 7.75 kB / 1.365 GB, free: 111.2 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00966/2.863, allocations: 5.48 MB / 1.37 GB, free: 107.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/2.863, allocations: 113.4 kB / 1.37 GB, free: 107.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/2.863, allocations: 83.16 kB / 1.37 GB, free: 107.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00795/2.871, allocations: 3.527 MB / 1.374 GB, free: 106.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/2.871, allocations: 45.53 kB / 1.374 GB, free: 106.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=21): time 3.146e-06/2.871, allocations: 0 / 1.374 GB, free: 106.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=26): time 0.002629/2.874, allocations: 0.8861 MB / 1.374 GB, free: 105.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.078e-05/2.874, allocations: 55.28 kB / 1.375 GB, free: 105.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/2.874, allocations: 190 kB / 1.375 GB, free: 105.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/2.874, allocations: 25.7 kB / 1.375 GB, free: 105.7 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.705e-05/2.874, allocations: 182 kB / 1.375 GB, free: 105.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.768e-05/2.874, allocations: 86.88 kB / 1.375 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-05/2.874, allocations: 0 / 1.375 GB, free: 105.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.361e-05/2.874, allocations: 335.8 kB / 1.375 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/2.875, allocations: 82.12 kB / 1.375 GB, free: 105.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/2.875, allocations: 170 kB / 1.376 GB, free: 105.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/2.875, allocations: 158.5 kB / 1.376 GB, free: 105.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/2.875, allocations: 3.969 kB / 1.376 GB, free: 105.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008759/2.876, allocations: 402.4 kB / 1.376 GB, free: 105 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/2.876, allocations: 3.969 kB / 1.376 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/2.876, allocations: 3.969 kB / 1.376 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002552/2.876, allocations: 63.81 kB / 1.376 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/2.877, allocations: 73 kB / 1.376 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/2.878, allocations: 1.846 MB / 1.378 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/2.878, allocations: 25.23 kB / 1.378 GB, free: 103.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/2.878, allocations: 20.45 kB / 1.378 GB, free: 103.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 8.543e-05/2.878, allocations: 108.7 kB / 1.378 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/2.878, allocations: 23.41 kB / 1.378 GB, free: 103.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008775/2.879, allocations: 496.8 kB / 1.379 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/2.879, allocations: 12.98 kB / 1.379 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/2.879, allocations: 0 / 1.379 GB, free: 103.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007232/2.88, allocations: 0.6985 MB / 1.379 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/2.881, allocations: 0.884 MB / 1.38 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/2.881, allocations: 0 / 1.38 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000192/2.882, allocations: 43.03 kB / 1.38 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002511/2.882, allocations: 91.09 kB / 1.38 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/2.882, allocations: 9.359 kB / 1.38 GB, free: 102.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005236/2.882, allocations: 0.6944 MB / 1.381 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/2.882, allocations: 0 / 1.381 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009818/2.883, allocations: 0.7069 MB / 1.382 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.527e-05/2.883, allocations: 102.5 kB / 1.382 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/2.884, allocations: 3.969 kB / 1.382 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/2.884, allocations: 13.73 kB / 1.382 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/2.884, allocations: 23.47 kB / 1.382 GB, free: 101.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.2e-05/2.884, allocations: 11.56 kB / 1.382 GB, free: 101.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0001197/2.884, allocations: 152.9 kB / 1.382 GB, free: 101.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001051/2.885, allocations: 195.4 kB / 1.382 GB, free: 101.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001349/2.886, allocations: 0.5629 MB / 1.383 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006606/2.887, allocations: 421.2 kB / 1.383 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/2.887, allocations: 0.75 kB / 1.383 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002968/2.887, allocations: 201.8 kB / 1.383 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007103/2.888, allocations: 122.6 kB / 1.383 GB, free: 101.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009744/2.889, allocations: 0.5559 MB / 1.384 GB, free: 100.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/2.889, allocations: 0.8194 MB / 1.385 GB, free: 100.1 MB / 442.7 MB Notification: Performance of SimCode: time 2.8e-07/2.889, allocations: 0 / 1.385 GB, free: 100.1 MB / 442.7 MB Notification: Performance of Templates: time 0.01505/2.904, allocations: 9.373 MB / 1.394 GB, free: 99.56 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches