Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") [: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.001533/0.001533, allocations: 177 kB / 8.148 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.762/1.762, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.001297/0.001297, allocations: 86.48 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.057e-06/9.197e-06, allocations: 0 / 314.3 MB, free: 9.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2659, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.559/1.825, allocations: 0.7117 GB / 1.065 GB, free: 80.52 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/1.825, allocations: 92.25 kB / 1.065 GB, free: 80.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.382/4.207, allocations: 0.5687 GB / 1.634 GB, free: 5.105 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.347e-05/4.207, allocations: 12 kB / 1.634 GB, free: 5.094 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.002215/4.21, allocations: 0.7808 MB / 1.635 GB, free: 4.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/4.21, allocations: 9.781 kB / 1.635 GB, free: 4.262 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000985/4.211, allocations: 119.3 kB / 1.635 GB, free: 4.145 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008521/4.212, allocations: 373.3 kB / 1.635 GB, free: 3.734 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/4.212, allocations: 16 kB / 1.635 GB, free: 3.719 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.933e-05/4.212, allocations: 27.91 kB / 1.635 GB, free: 3.691 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001059/4.213, allocations: 401.4 kB / 1.636 GB, free: 3.301 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/4.214, allocations: 490.7 kB / 1.636 GB, free: 2.797 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/4.214, allocations: 0 / 1.636 GB, free: 2.797 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.635e-05/4.214, allocations: 0 / 1.636 GB, free: 2.797 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/4.214, allocations: 12 kB / 1.636 GB, free: 2.785 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004426/4.218, allocations: 1.983 MB / 1.638 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/4.219, allocations: 97.8 kB / 1.638 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/4.219, allocations: 78.56 kB / 1.638 GB, free: 472 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.393e-05/4.219, allocations: 7.938 kB / 1.638 GB, free: 464 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/4.219, allocations: 42.56 kB / 1.638 GB, free: 412 kB / 426.7 MB Notification: Performance of pre-optimization done (n=18): time 2.595e-06/4.219, allocations: 0 / 1.638 GB, free: 412 kB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.164/4.383, allocations: 1.128 MB / 1.639 GB, free: 112 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/4.383, allocations: 56.75 kB / 1.639 GB, free: 111.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006196/4.384, allocations: 389.9 kB / 1.64 GB, free: 111.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/4.384, allocations: 25.7 kB / 1.64 GB, free: 111.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/4.384, allocations: 352.6 kB / 1.64 GB, free: 111.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.049e-05/4.384, allocations: 84.62 kB / 1.64 GB, free: 111.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/4.384, allocations: 1.688 kB / 1.64 GB, free: 111.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/4.384, allocations: 334.7 kB / 1.641 GB, free: 111.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/4.385, allocations: 115.7 kB / 1.641 GB, free: 111.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/4.385, allocations: 422 kB / 1.641 GB, free: 110.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004554/4.386, allocations: 213 kB / 1.641 GB, free: 110.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/4.386, allocations: 5.938 kB / 1.641 GB, free: 110.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00129/4.387, allocations: 0.5278 MB / 1.642 GB, free: 110.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/4.387, allocations: 8.375 kB / 1.642 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/4.387, allocations: 12.72 kB / 1.642 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002642/4.387, allocations: 58 kB / 1.642 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008893/4.388, allocations: 137.4 kB / 1.642 GB, free: 110.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/4.39, allocations: 1.794 MB / 1.644 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006083/4.39, allocations: 19.47 kB / 1.644 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.596e-05/4.39, allocations: 43.75 kB / 1.644 GB, free: 109 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * 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 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001497/4.39, allocations: 55.33 kB / 1.644 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/4.391, allocations: 43.62 kB / 1.644 GB, free: 109 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008539/4.391, allocations: 276.6 kB / 1.644 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/4.391, allocations: 3.719 kB / 1.644 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/4.391, allocations: 0 / 1.644 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005249/4.392, allocations: 0.5027 MB / 1.645 GB, free: 108.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/4.393, allocations: 0.6375 MB / 1.645 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/4.394, allocations: 3.906 kB / 1.645 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005298/4.394, allocations: 54.81 kB / 1.645 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/4.394, allocations: 21.2 kB / 1.645 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/4.394, allocations: 3.938 kB / 1.645 GB, free: 108.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008895/4.395, allocations: 1.221 MB / 1.647 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/4.395, allocations: 0 / 1.647 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007884/4.396, allocations: 406.1 kB / 1.647 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/4.396, allocations: 111.3 kB / 1.647 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/4.396, allocations: 7.031 kB / 1.647 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000511/4.397, allocations: 10.52 kB / 1.647 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.712e-05/4.397, allocations: 19.56 kB / 1.647 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/4.397, allocations: 14.27 kB / 1.647 GB, free: 106.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004488/4.397, allocations: 289.3 kB / 1.647 GB, free: 106.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001424/4.399, allocations: 254.8 kB / 1.648 GB, free: 106.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (23): * Single equations (assignments): 22 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004065/4.403, allocations: 1.353 MB / 1.649 GB, free: 106.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/4.404, allocations: 415.8 kB / 1.649 GB, free: 106.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/4.404, allocations: 1.688 kB / 1.649 GB, free: 106.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003257/4.405, allocations: 195.8 kB / 1.649 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/4.406, allocations: 166.2 kB / 1.65 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/4.408, allocations: 0.6513 MB / 1.65 GB, free: 106.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006585/4.409, allocations: 0.8917 MB / 1.651 GB, free: 105.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/4.409, allocations: 0 / 1.651 GB, free: 105.4 MB / 426.7 MB Notification: Performance of Templates: time 0.03084/4.44, allocations: 15.88 MB / 1.667 GB, free: 105.1 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches