Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",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.001647/0.001647, allocations: 175.5 kB / 8.518 MB, free: 1.848 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.276/1.276, 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.0008954/0.0008954, allocations: 95.67 kB / 281.2 MB, free: 5.484 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.162/0.162, allocations: 44.15 MB / 376.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1808/0.3428, allocations: 68.05 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.4392, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.273/4.712, allocations: 2.8 GB / 3.294 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/4.712, allocations: 92.16 kB / 3.294 GB, free: 144.6 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 1.42/6.132, allocations: 0.4962 GB / 3.79 GB, free: 69.71 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/6.133, allocations: 7.312 kB / 3.79 GB, free: 69.71 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002391/6.135, allocations: 346.7 kB / 3.791 GB, free: 69.67 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/6.136, allocations: 0.6016 MB / 3.791 GB, free: 69.41 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.565e-05/6.136, allocations: 95.17 kB / 3.791 GB, free: 69.34 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.853e-05/6.136, allocations: 32.28 kB / 3.791 GB, free: 69.34 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009691/6.137, allocations: 0.6596 MB / 3.792 GB, free: 69.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/6.138, allocations: 0.9004 MB / 3.793 GB, free: 68.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/6.138, allocations: 2.75 kB / 3.793 GB, free: 68.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.47e-05/6.138, allocations: 4.5 kB / 3.793 GB, free: 68.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-05/6.138, allocations: 46.83 kB / 3.793 GB, free: 68.72 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.152/6.29, allocations: 83.11 MB / 3.874 GB, free: 4.441 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/6.291, allocations: 228.1 kB / 3.874 GB, free: 4.23 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/6.291, allocations: 160.1 kB / 3.874 GB, free: 4.082 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2343/6.525, allocations: 38.43 MB / 3.912 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/6.525, allocations: 39.56 kB / 3.912 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=33): time 2.244e-06/6.525, allocations: 0 / 3.912 GB, free: 130.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=37): time 0.003775/6.529, allocations: 1.364 MB / 3.913 GB, free: 129.9 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/6.529, allocations: 133.2 kB / 3.913 GB, free: 129.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000657/6.53, allocations: 498.3 kB / 3.914 GB, free: 129.6 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.13e-05/6.53, allocations: 28.95 kB / 3.914 GB, free: 129.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/6.53, allocations: 369.8 kB / 3.914 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.707e-05/6.53, allocations: 133.5 kB / 3.914 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/6.53, allocations: 0 / 3.914 GB, free: 129.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.214e-05/6.53, allocations: 373.6 kB / 3.915 GB, free: 129 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003151/6.531, allocations: 218.1 kB / 3.915 GB, free: 129 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004203/6.531, allocations: 0.5521 MB / 3.916 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000672/6.532, allocations: 333 kB / 3.916 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/6.532, allocations: 3.562 kB / 3.916 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002046/6.534, allocations: 1.009 MB / 3.917 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/6.534, allocations: 3.906 kB / 3.917 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/6.534, allocations: 12.69 kB / 3.917 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/6.534, allocations: 59.58 kB / 3.917 GB, free: 128.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/6.535, allocations: 276.6 kB / 3.917 GB, free: 128.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/6.537, allocations: 1.977 MB / 3.919 GB, free: 126.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006521/6.537, allocations: 38.92 kB / 3.919 GB, free: 126.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/6.537, allocations: 49.25 kB / 3.919 GB, free: 126.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001563/6.537, allocations: 147.1 kB / 3.919 GB, free: 126.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007318/6.538, allocations: 264.3 kB / 3.92 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/6.54, allocations: 1.768 MB / 3.921 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/6.54, allocations: 19.47 kB / 3.921 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/6.54, allocations: 3.172 kB / 3.921 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/6.54, allocations: 3.891 kB / 3.921 GB, free: 126.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/6.543, allocations: 2.662 MB / 3.924 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/6.543, allocations: 0 / 3.924 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009092/6.544, allocations: 166.5 kB / 3.924 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002361/6.544, allocations: 89.83 kB / 3.924 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/6.544, allocations: 2.062 kB / 3.924 GB, free: 126 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/6.545, allocations: 2.027 MB / 3.926 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/6.545, allocations: 0 / 3.926 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002316/6.547, allocations: 2.058 MB / 3.928 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002971/6.55, allocations: 2.994 MB / 3.931 GB, free: 123.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003358/6.551, allocations: 231.9 kB / 3.931 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/6.551, allocations: 3.875 kB / 3.931 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005695/6.551, allocations: 48.77 kB / 3.931 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/6.551, allocations: 24.7 kB / 3.931 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/6.551, allocations: 22.2 kB / 3.931 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.000402/6.552, allocations: 356.8 kB / 3.932 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005654/6.558, allocations: 1.24 MB / 3.933 GB, free: 123.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006099/6.564, allocations: 1.718 MB / 3.935 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002061/6.566, allocations: 1.124 MB / 3.936 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/6.566, allocations: 1.594 kB / 3.936 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001467/6.567, allocations: 0.9046 MB / 3.937 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/6.569, allocations: 260.1 kB / 3.937 GB, free: 123 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/6.571, allocations: 1.615 MB / 3.938 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005447/6.571, allocations: 1.157 MB / 3.94 GB, free: 122 MB / 0.5417 GB Notification: Performance of SimCode: time 4.91e-07/6.571, allocations: 0 / 3.94 GB, free: 122 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1)