Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.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.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p|medium2.T|medium2.X.1.|medium2.X.2.|medium2.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir") translateModel(Modelica.Media.Examples.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p|medium2.T|medium2.X.1.|medium2.X.2.|medium2.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir") [: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.001374/0.001375, allocations: 168.9 kB / 8.47 MB, free: 1.852 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.779/1.779, allocations: 205.2 MB / 214.1 MB, free: 5.066 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.00127/0.00127, allocations: 83.27 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.026e-05/1.03e-05, allocations: 0 / 315 MB, free: 41.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 47.57 MB / 362.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.898/2.03, allocations: 0.7285 GB / 1.083 GB, free: 121.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/2.03, allocations: 77.91 kB / 1.083 GB, free: 121.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.09785/2.128, allocations: 39.3 MB / 1.121 GB, free: 105.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.991e-05/2.128, allocations: 4 kB / 1.121 GB, free: 105.9 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009473/2.129, allocations: 0.5095 MB / 1.121 GB, free: 105.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/2.129, allocations: 8.031 kB / 1.122 GB, free: 105.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003178/2.132, allocations: 436.6 kB / 1.122 GB, free: 105 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/2.133, allocations: 256.3 kB / 1.122 GB, free: 104.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/2.133, allocations: 8 kB / 1.122 GB, free: 104.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.921e-05/2.133, allocations: 8 kB / 1.122 GB, free: 104.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007815/2.134, allocations: 485.8 kB / 1.123 GB, free: 104.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004542/2.134, allocations: 321.4 kB / 1.123 GB, free: 104.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/2.134, allocations: 0 / 1.123 GB, free: 104.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/2.134, allocations: 11.84 kB / 1.123 GB, free: 104.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/2.134, allocations: 7.938 kB / 1.123 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002056/2.136, allocations: 0.9405 MB / 1.124 GB, free: 103.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/2.137, allocations: 226.8 kB / 1.124 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/2.137, allocations: 135.9 kB / 1.124 GB, free: 103.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001156/2.138, allocations: 0.6608 MB / 1.125 GB, free: 102.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/2.138, allocations: 42.19 kB / 1.125 GB, free: 102.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.435e-06/2.138, allocations: 0 / 1.125 GB, free: 102.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006168/2.139, allocations: 261.3 kB / 1.125 GB, free: 102.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/2.139, allocations: 77.11 kB / 1.125 GB, free: 102 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.635e-05/2.139, allocations: 108.4 kB / 1.125 GB, free: 101.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/2.139, allocations: 25.7 kB / 1.125 GB, free: 101.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.99e-05/2.139, allocations: 119.4 kB / 1.125 GB, free: 101.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.954e-05/2.139, allocations: 100.4 kB / 1.126 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.035e-05/2.139, allocations: 0 / 1.126 GB, free: 101.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.54e-05/2.139, allocations: 330.4 kB / 1.126 GB, free: 101.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/2.139, allocations: 99.7 kB / 1.126 GB, free: 101.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/2.139, allocations: 183.6 kB / 1.126 GB, free: 101.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/2.14, allocations: 128 kB / 1.126 GB, free: 101 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/2.14, allocations: 0 / 1.126 GB, free: 101 MB / 426.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005666/2.14, allocations: 328.5 kB / 1.127 GB, free: 100.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/2.14, allocations: 7.906 kB / 1.127 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/2.14, allocations: 0 / 1.127 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/2.14, allocations: 8 kB / 1.127 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/2.141, allocations: 75.58 kB / 1.127 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/2.141, allocations: 8.25 kB / 1.127 GB, free: 100.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/2.141, allocations: 35.67 kB / 1.127 GB, free: 100.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.265e-05/2.141, allocations: 15.75 kB / 1.127 GB, free: 100.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 39 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001126/2.141, allocations: 108.9 kB / 1.127 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/2.141, allocations: 19.8 kB / 1.127 GB, free: 100.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007561/2.142, allocations: 363.1 kB / 1.127 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/2.142, allocations: 4 kB / 1.127 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/2.142, allocations: 0 / 1.127 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/2.142, allocations: 0 / 1.127 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005107/2.143, allocations: 325 kB / 1.128 GB, free: 99.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/2.143, allocations: 0 / 1.128 GB, free: 99.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003778/2.143, allocations: 63.59 kB / 1.128 GB, free: 99.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/2.143, allocations: 0 / 1.128 GB, free: 99.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/2.143, allocations: 11.92 kB / 1.128 GB, free: 99.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/2.143, allocations: 4 kB / 1.128 GB, free: 99.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/2.143, allocations: 0 / 1.128 GB, free: 99.82 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006665/2.144, allocations: 0.5226 MB / 1.128 GB, free: 99.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.591e-05/2.144, allocations: 89.08 kB / 1.128 GB, free: 99.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.318e-05/2.144, allocations: 11.98 kB / 1.128 GB, free: 99.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003685/2.144, allocations: 11.91 kB / 1.128 GB, free: 99.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.557e-05/2.144, allocations: 19.95 kB / 1.128 GB, free: 99.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.287e-05/2.144, allocations: 19.67 kB / 1.128 GB, free: 99.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.508e-05/2.144, allocations: 90.64 kB / 1.128 GB, free: 99.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001187/2.146, allocations: 251.6 kB / 1.129 GB, free: 98.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium.p,medium.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001617/2.147, allocations: 0.868 MB / 1.129 GB, free: 98.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000438/2.148, allocations: 269.9 kB / 1.13 GB, free: 97.87 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/2.148, allocations: 0 / 1.13 GB, free: 97.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/2.148, allocations: 134.6 kB / 1.13 GB, free: 97.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000573/2.148, allocations: 71 kB / 1.13 GB, free: 97.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/2.149, allocations: 0.5823 MB / 1.13 GB, free: 97.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004093/2.15, allocations: 0.7823 MB / 1.131 GB, free: 96.33 MB / 426.7 MB Notification: Performance of SimCode: time 8.31e-07/2.15, allocations: 0 / 1.131 GB, free: 96.33 MB / 426.7 MB Notification: Performance of Templates: time 0.01717/2.167, allocations: 11.9 MB / 1.143 GB, free: 84.43 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches