Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) [: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.001228/0.001228, allocations: 179.8 kB / 8.474 MB, free: 0.5312 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.555/1.555, allocations: 205.2 MB / 214.1 MB, free: 8.508 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 87.34 kB / 262.1 MB, free: 5.164 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1108/0.1119, allocations: 53.01 MB / 315.1 MB, free: 1.938 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.2087, allocations: 47.57 MB / 362.7 MB, free: 2.254 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.497/1.706, allocations: 0.7117 GB / 1.066 GB, free: 98.79 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/1.706, allocations: 99.92 kB / 1.066 GB, free: 98.69 MB / 418.8 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 1.778/3.484, allocations: 0.5695 GB / 1.635 GB, free: 7.68 MB / 434.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/3.484, allocations: 11.98 kB / 1.635 GB, free: 7.668 MB / 434.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009015/3.485, allocations: 123.4 kB / 1.636 GB, free: 7.547 MB / 434.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008968/3.486, allocations: 381.2 kB / 1.636 GB, free: 7.133 MB / 434.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.099e-05/3.486, allocations: 12 kB / 1.636 GB, free: 7.121 MB / 434.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/3.486, allocations: 27.84 kB / 1.636 GB, free: 7.094 MB / 434.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008323/3.487, allocations: 397.4 kB / 1.636 GB, free: 6.707 MB / 434.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/3.488, allocations: 486.8 kB / 1.637 GB, free: 6.211 MB / 434.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/3.488, allocations: 4 kB / 1.637 GB, free: 6.207 MB / 434.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/3.488, allocations: 7.938 kB / 1.637 GB, free: 6.199 MB / 434.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/3.488, allocations: 8 kB / 1.637 GB, free: 6.191 MB / 434.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003874/3.492, allocations: 1.988 MB / 1.639 GB, free: 4.039 MB / 434.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/3.492, allocations: 101.8 kB / 1.639 GB, free: 3.934 MB / 434.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/3.492, allocations: 73.08 kB / 1.639 GB, free: 3.859 MB / 434.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.766e-05/3.492, allocations: 4.234 kB / 1.639 GB, free: 3.855 MB / 434.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/3.492, allocations: 34.56 kB / 1.639 GB, free: 3.812 MB / 434.8 MB Notification: Performance of pre-optimization done (n=18): time 2.836e-06/3.492, allocations: 0 / 1.639 GB, free: 3.812 MB / 434.8 MB Notification: Performance of matching and sorting (n=23): time 0.005235/3.497, allocations: 1.142 MB / 1.64 GB, free: 2.566 MB / 434.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/3.498, allocations: 55.41 kB / 1.64 GB, free: 2.5 MB / 434.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005961/3.498, allocations: 396.5 kB / 1.641 GB, free: 2.113 MB / 434.8 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/3.498, allocations: 25.7 kB / 1.641 GB, free: 2.082 MB / 434.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/3.498, allocations: 294.1 kB / 1.641 GB, free: 1.785 MB / 434.8 MB Notification: Performance of collectInitialBindings (initialization): time 7.46e-05/3.498, allocations: 82.89 kB / 1.641 GB, free: 1.703 MB / 434.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.115e-05/3.499, allocations: 4 kB / 1.641 GB, free: 1.699 MB / 434.8 MB Notification: Performance of setup shared object (initialization): time 0.0001514/3.499, allocations: 350.8 kB / 1.641 GB, free: 1.348 MB / 434.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002232/3.499, allocations: 113.3 kB / 1.641 GB, free: 1.238 MB / 434.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/3.499, allocations: 420.3 kB / 1.642 GB, free: 0.6836 MB / 434.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/3.5, allocations: 216.3 kB / 1.642 GB, free: 484 kB / 434.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/3.5, allocations: 4 kB / 1.642 GB, free: 480 kB / 434.8 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.1741/3.674, allocations: 0.5464 MB / 1.643 GB, free: 112.1 MB / 434.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/3.674, allocations: 3.625 kB / 1.643 GB, free: 112.1 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-05/3.674, allocations: 15.81 kB / 1.643 GB, free: 112.1 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002074/3.674, allocations: 52.92 kB / 1.643 GB, free: 112.1 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005768/3.675, allocations: 141.6 kB / 1.643 GB, free: 112.1 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/3.676, allocations: 1.785 MB / 1.644 GB, free: 110.4 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005614/3.677, allocations: 28.66 kB / 1.644 GB, free: 110.4 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.484e-05/3.677, allocations: 37.03 kB / 1.645 GB, free: 110.4 MB / 434.8 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.0001473/3.677, allocations: 130.8 kB / 1.645 GB, free: 110.3 MB / 434.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.684e-05/3.677, allocations: 48.12 kB / 1.645 GB, free: 110.3 MB / 434.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005678/3.677, allocations: 270.2 kB / 1.645 GB, free: 110.2 MB / 434.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/3.677, allocations: 3.906 kB / 1.645 GB, free: 110.2 MB / 434.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/3.677, allocations: 0 / 1.645 GB, free: 110.2 MB / 434.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003503/3.678, allocations: 0.5136 MB / 1.645 GB, free: 109.8 MB / 434.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008975/3.679, allocations: 0.6269 MB / 1.646 GB, free: 109.5 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/3.679, allocations: 6.062 kB / 1.646 GB, free: 109.5 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002976/3.679, allocations: 54.5 kB / 1.646 GB, free: 109.5 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.871e-05/3.679, allocations: 19.55 kB / 1.646 GB, free: 109.5 MB / 434.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/3.679, allocations: 7 kB / 1.646 GB, free: 109.5 MB / 434.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006535/3.68, allocations: 1.228 MB / 1.647 GB, free: 108.3 MB / 434.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/3.68, allocations: 0 / 1.647 GB, free: 108.3 MB / 434.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004948/3.68, allocations: 406.5 kB / 1.648 GB, free: 108.2 MB / 434.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007528/3.681, allocations: 0.8899 MB / 1.649 GB, free: 107.7 MB / 434.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/3.681, allocations: 118.9 kB / 1.649 GB, free: 107.5 MB / 434.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/3.681, allocations: 0 / 1.649 GB, free: 107.5 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003099/3.682, allocations: 17.94 kB / 1.649 GB, free: 107.5 MB / 434.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/3.682, allocations: 11.38 kB / 1.649 GB, free: 107.5 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/3.682, allocations: 13.75 kB / 1.649 GB, free: 107.5 MB / 434.8 MB Notification: Performance of sort global known variables: time 0.000335/3.682, allocations: 283.5 kB / 1.649 GB, free: 107.5 MB / 434.8 MB Notification: Performance of remove unused functions: time 0.001937/3.684, allocations: 340.8 kB / 1.649 GB, free: 107.5 MB / 434.8 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.002535/3.687, allocations: 1.352 MB / 1.651 GB, free: 107.3 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.0008393/3.687, allocations: 418.8 kB / 1.651 GB, free: 107.2 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/3.687, allocations: 1.219 kB / 1.651 GB, free: 107.2 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001947/3.688, allocations: 188 kB / 1.651 GB, free: 107.1 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009802/3.689, allocations: 169.9 kB / 1.651 GB, free: 107.1 MB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/3.69, allocations: 0.6115 MB / 1.652 GB, free: 106.9 MB / 434.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004575/3.69, allocations: 0.8905 MB / 1.653 GB, free: 106.2 MB / 434.8 MB Notification: Performance of SimCode: time 7.81e-07/3.69, allocations: 0 / 1.653 GB, free: 106.2 MB / 434.8 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1)