Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.004481/0.004481, allocations: 175.5 kB / 8.149 MB, free: 2.207 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.979/1.979, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.00134/0.00134, allocations: 95.45 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.616e-06/8.646e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2755, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.79/2.066, allocations: 0.7285 GB / 1.082 GB, free: 62.51 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/2.066, allocations: 80.45 kB / 1.082 GB, free: 62.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1416/2.208, allocations: 39.31 MB / 1.12 GB, free: 29.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.766e-05/2.208, allocations: 4 kB / 1.12 GB, free: 29.82 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.001038/2.209, allocations: 0.5027 MB / 1.121 GB, free: 29.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/2.209, allocations: 8.031 kB / 1.121 GB, free: 29.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005519/2.215, allocations: 431.1 kB / 1.121 GB, free: 28.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/2.215, allocations: 270.7 kB / 1.121 GB, free: 28.53 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/2.215, allocations: 4 kB / 1.122 GB, free: 28.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/2.215, allocations: 12 kB / 1.122 GB, free: 28.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001372/2.217, allocations: 480.5 kB / 1.122 GB, free: 28.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007252/2.217, allocations: 313.5 kB / 1.122 GB, free: 27.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/2.218, allocations: 0 / 1.122 GB, free: 27.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.389e-05/2.218, allocations: 11.84 kB / 1.122 GB, free: 27.72 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/2.218, allocations: 4 kB / 1.122 GB, free: 27.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/2.221, allocations: 0.9427 MB / 1.123 GB, free: 26.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005105/2.222, allocations: 228.2 kB / 1.123 GB, free: 26.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/2.222, allocations: 137.7 kB / 1.124 GB, free: 26.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001775/2.224, allocations: 0.6554 MB / 1.124 GB, free: 25.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/2.224, allocations: 42.56 kB / 1.124 GB, free: 25.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 3.016e-06/2.224, allocations: 0 / 1.124 GB, free: 25.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=29): time 0.001027/2.225, allocations: 261.6 kB / 1.124 GB, free: 25.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.167e-05/2.225, allocations: 81.11 kB / 1.125 GB, free: 25.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.706e-05/2.225, allocations: 101.8 kB / 1.125 GB, free: 25.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/2.225, allocations: 25.7 kB / 1.125 GB, free: 25.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/2.225, allocations: 187 kB / 1.125 GB, free: 24.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.039e-05/2.225, allocations: 98.55 kB / 1.125 GB, free: 24.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/2.225, allocations: 0 / 1.125 GB, free: 24.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.198e-05/2.225, allocations: 338.7 kB / 1.125 GB, free: 24.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/2.226, allocations: 100.6 kB / 1.125 GB, free: 24.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/2.226, allocations: 175.2 kB / 1.126 GB, free: 24.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004106/2.226, allocations: 130.5 kB / 1.126 GB, free: 24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/2.226, allocations: 4 kB / 1.126 GB, free: 23.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009497/2.227, allocations: 325.2 kB / 1.126 GB, free: 23.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/2.227, allocations: 4 kB / 1.126 GB, free: 23.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/2.227, allocations: 4 kB / 1.126 GB, free: 23.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.686e-05/2.228, allocations: 7.938 kB / 1.126 GB, free: 23.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007938/2.228, allocations: 75.83 kB / 1.126 GB, free: 23.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/2.228, allocations: 15.97 kB / 1.126 GB, free: 23.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004969/2.229, allocations: 24.09 kB / 1.126 GB, free: 23.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.882e-05/2.229, allocations: 27.97 kB / 1.126 GB, free: 23.51 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.0001421/2.229, allocations: 29.64 kB / 1.126 GB, free: 23.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/2.229, allocations: 15.81 kB / 1.126 GB, free: 23.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/2.231, allocations: 364.6 kB / 1.127 GB, free: 23.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/2.231, allocations: 4 kB / 1.127 GB, free: 23.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/2.231, allocations: 0 / 1.127 GB, free: 23.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/2.231, allocations: 3.984 kB / 1.127 GB, free: 23.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009016/2.232, allocations: 314.8 kB / 1.127 GB, free: 22.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/2.232, allocations: 0 / 1.127 GB, free: 22.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007432/2.232, allocations: 67.8 kB / 1.127 GB, free: 22.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/2.232, allocations: 4 kB / 1.127 GB, free: 22.67 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.148e-05/2.232, allocations: 11.98 kB / 1.127 GB, free: 22.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/2.232, allocations: 0 / 1.127 GB, free: 22.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/2.233, allocations: 0 / 1.127 GB, free: 22.66 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001119/2.234, allocations: 0.5165 MB / 1.127 GB, free: 22.12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.158e-05/2.234, allocations: 96.86 kB / 1.128 GB, free: 22.01 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.374e-05/2.234, allocations: 0 / 1.128 GB, free: 22.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/2.234, allocations: 15.98 kB / 1.128 GB, free: 21.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/2.235, allocations: 19.88 kB / 1.128 GB, free: 21.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.632e-05/2.235, allocations: 20.11 kB / 1.128 GB, free: 21.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.857e-05/2.235, allocations: 87.27 kB / 1.128 GB, free: 21.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001308/2.236, allocations: 255.7 kB / 1.128 GB, free: 21.62 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.002238/2.238, allocations: 0.8616 MB / 1.129 GB, free: 20.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007771/2.239, allocations: 268.5 kB / 1.129 GB, free: 20.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/2.239, allocations: 12.12 kB / 1.129 GB, free: 20.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003049/2.239, allocations: 132 kB / 1.129 GB, free: 20.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/2.24, allocations: 79.77 kB / 1.129 GB, free: 20.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/2.242, allocations: 0.6085 MB / 1.13 GB, free: 19.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005479/2.243, allocations: 0.7828 MB / 1.131 GB, free: 18.82 MB / 426.7 MB Notification: Performance of SimCode: time 1.382e-06/2.243, allocations: 0 / 1.131 GB, free: 18.82 MB / 426.7 MB Notification: Performance of Templates: time 0.01912/2.262, allocations: 9.141 MB / 1.139 GB, free: 9.68 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Media.Examples.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches