Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_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 4.0.0+maint.om/package.mo): time 0.0009644/0.0009644, allocations: 171.6 kB / 8.515 MB, free: 1.855 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.172/1.172, allocations: 221.4 MB / 230.3 MB, free: 7.742 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.0009071/0.0009071, allocations: 90.23 kB / 281.2 MB, free: 5.473 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1671/0.1671, allocations: 44.15 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1785/0.3456, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09286/0.4385, allocations: 61.91 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.209/1.647, allocations: 0.7922 GB / 1.286 GB, free: 5.328 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/1.648, allocations: 101 kB / 1.287 GB, free: 5.238 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 2.038/3.685, allocations: 0.7273 GB / 2.014 GB, free: 77.17 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/3.686, allocations: 11.06 kB / 2.014 GB, free: 77.16 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/3.687, allocations: 289.4 kB / 2.014 GB, free: 76.88 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001264/3.688, allocations: 0.6656 MB / 2.015 GB, free: 76.19 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.211e-05/3.688, allocations: 93.39 kB / 2.015 GB, free: 76.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/3.688, allocations: 36 kB / 2.015 GB, free: 76.05 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001225/3.69, allocations: 0.898 MB / 2.016 GB, free: 75.15 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/3.691, allocations: 1.163 MB / 2.017 GB, free: 73.92 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.079e-05/3.691, allocations: 3.984 kB / 2.017 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/3.691, allocations: 4 kB / 2.017 GB, free: 73.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-05/3.692, allocations: 72.62 kB / 2.017 GB, free: 73.84 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006164/3.698, allocations: 4.885 MB / 2.022 GB, free: 68.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/3.698, allocations: 202.3 kB / 2.022 GB, free: 68.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/3.698, allocations: 141 kB / 2.022 GB, free: 68.42 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001758/3.698, allocations: 263.5 kB / 2.022 GB, free: 68.11 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.026e-05/3.698, allocations: 42.78 kB / 2.022 GB, free: 68.05 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=28): time 2.444e-06/3.698, allocations: 0 / 2.022 GB, free: 68.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=33): time 0.005759/3.704, allocations: 1.625 MB / 2.024 GB, free: 66.35 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/3.704, allocations: 136.7 kB / 2.024 GB, free: 66.19 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000678/3.705, allocations: 0.6677 MB / 2.025 GB, free: 65.51 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/3.705, allocations: 25.7 kB / 2.025 GB, free: 65.48 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/3.705, allocations: 0.4964 MB / 2.025 GB, free: 64.97 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.873e-05/3.705, allocations: 126.3 kB / 2.025 GB, free: 64.85 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/3.705, allocations: 2.625 kB / 2.025 GB, free: 64.85 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.445e-05/3.705, allocations: 394.8 kB / 2.026 GB, free: 64.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003071/3.706, allocations: 242.5 kB / 2.026 GB, free: 64.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/3.706, allocations: 0.8403 MB / 2.027 GB, free: 63.11 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006573/3.707, allocations: 478.4 kB / 2.027 GB, free: 62.64 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/3.707, allocations: 7.906 kB / 2.027 GB, free: 62.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001551/3.708, allocations: 1.104 MB / 2.028 GB, free: 61.52 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/3.708, allocations: 10.34 kB / 2.028 GB, free: 61.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/3.708, allocations: 20 kB / 2.028 GB, free: 61.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/3.71, allocations: 264.2 kB / 2.029 GB, free: 61.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005671/3.71, allocations: 207.6 kB / 2.029 GB, free: 61.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008665/3.711, allocations: 0.9372 MB / 2.03 GB, free: 60.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008203/3.712, allocations: 48.03 kB / 2.03 GB, free: 60.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.828e-05/3.712, allocations: 67.91 kB / 2.03 GB, free: 59.96 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * 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: 0 * Non-linear torn systems: 1 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0001621/3.712, allocations: 156.5 kB / 2.03 GB, free: 59.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/3.712, allocations: 83.05 kB / 2.03 GB, free: 59.72 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000927/3.713, allocations: 0.5252 MB / 2.031 GB, free: 59.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/3.713, allocations: 6.953 kB / 2.031 GB, free: 59.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/3.713, allocations: 0 / 2.031 GB, free: 59.18 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/3.713, allocations: 11.98 kB / 2.031 GB, free: 59.17 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/3.715, allocations: 1.038 MB / 2.032 GB, free: 58.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/3.715, allocations: 7.906 kB / 2.032 GB, free: 58.08 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/3.716, allocations: 167.9 kB / 2.032 GB, free: 57.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.505e-05/3.716, allocations: 28.78 kB / 2.032 GB, free: 57.89 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/3.716, allocations: 8 kB / 2.032 GB, free: 57.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/3.717, allocations: 2.568 MB / 2.034 GB, free: 55.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/3.717, allocations: 4.031 kB / 2.034 GB, free: 55.09 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008993/3.718, allocations: 0.6809 MB / 2.035 GB, free: 54.38 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001279/3.72, allocations: 1.293 MB / 2.036 GB, free: 53.05 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003684/3.72, allocations: 196.5 kB / 2.036 GB, free: 52.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/3.72, allocations: 4.125 kB / 2.036 GB, free: 52.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005206/3.721, allocations: 15.98 kB / 2.036 GB, free: 52.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.097e-05/3.721, allocations: 23.88 kB / 2.036 GB, free: 52.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.437e-05/3.721, allocations: 23.92 kB / 2.036 GB, free: 52.78 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005658/3.721, allocations: 495 kB / 2.037 GB, free: 52.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002398/3.724, allocations: 0.5217 MB / 2.037 GB, free: 51.78 MB / 0.5261 GB 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 (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.003068/3.727, allocations: 1.522 MB / 2.039 GB, free: 50.44 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001033/3.728, allocations: 0.6196 MB / 2.04 GB, free: 49.82 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/3.728, allocations: 0 / 2.04 GB, free: 49.82 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001049/3.729, allocations: 394.7 kB / 2.04 GB, free: 49.43 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/3.73, allocations: 299.7 kB / 2.04 GB, free: 49.14 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/3.732, allocations: 1.138 MB / 2.041 GB, free: 47.98 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007229/3.733, allocations: 1.147 MB / 2.042 GB, free: 46.81 MB / 0.5261 GB Notification: Performance of SimCode: time 3.41e-07/3.733, allocations: 0 / 2.042 GB, free: 46.81 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1)