Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_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.00179/0.001795, allocations: 187.3 kB / 8.524 MB, free: 1.762 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.186/1.186, allocations: 221.4 MB / 230.3 MB, free: 7.758 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.0009453/0.0009454, allocations: 76.75 kB / 281.2 MB, free: 5.52 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.1602/0.1602, allocations: 44.14 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.179/0.3392, allocations: 68.04 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.4359, allocations: 61.91 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.362/4.798, allocations: 2.8 GB / 3.294 GB, free: 164 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/4.798, allocations: 94.3 kB / 3.294 GB, free: 164 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.444/6.242, allocations: 0.4961 GB / 3.79 GB, free: 71.13 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/6.242, allocations: 10.31 kB / 3.79 GB, free: 71.13 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002792/6.245, allocations: 342.6 kB / 3.791 GB, free: 71.07 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/6.246, allocations: 0.5977 MB / 3.791 GB, free: 70.68 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001242/6.246, allocations: 95.67 kB / 3.791 GB, free: 70.61 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/6.246, allocations: 33.94 kB / 3.791 GB, free: 70.61 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001368/6.248, allocations: 0.7145 MB / 3.792 GB, free: 70.38 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/6.249, allocations: 0.9037 MB / 3.793 GB, free: 69.86 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/6.249, allocations: 5.906 kB / 3.793 GB, free: 69.86 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.176e-05/6.249, allocations: 4.438 kB / 3.793 GB, free: 69.86 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-05/6.249, allocations: 46.44 kB / 3.793 GB, free: 69.85 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1002/6.35, allocations: 52.88 MB / 3.845 GB, free: 23.53 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003761/6.35, allocations: 255.3 kB / 3.845 GB, free: 23.28 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002523/6.35, allocations: 189 kB / 3.845 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01485/6.365, allocations: 8.078 MB / 3.853 GB, free: 14.03 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/6.365, allocations: 39.19 kB / 3.853 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=37): time 2.274e-06/6.365, allocations: 0 / 3.853 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.00422/6.369, allocations: 1.445 MB / 3.854 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/6.369, allocations: 134.5 kB / 3.854 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006621/6.37, allocations: 494 kB / 3.855 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/6.37, allocations: 25.7 kB / 3.855 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/6.37, allocations: 361.1 kB / 3.855 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/6.37, allocations: 142 kB / 3.855 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/6.37, allocations: 0 / 3.855 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.678e-05/6.371, allocations: 370.8 kB / 3.856 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003337/6.371, allocations: 241.5 kB / 3.856 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004401/6.371, allocations: 0.5617 MB / 3.857 GB, free: 9.98 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007132/6.372, allocations: 341 kB / 3.857 GB, free: 9.645 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/6.372, allocations: 4 kB / 3.857 GB, free: 9.641 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002464/6.375, allocations: 1.105 MB / 3.858 GB, free: 8.527 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/6.375, allocations: 4 kB / 3.858 GB, free: 8.523 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/6.375, allocations: 15.98 kB / 3.858 GB, free: 8.508 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002153/6.375, allocations: 60.83 kB / 3.858 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/6.376, allocations: 299.7 kB / 3.858 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/6.378, allocations: 1.991 MB / 3.86 GB, free: 6.031 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009293/6.378, allocations: 92.73 kB / 3.86 GB, free: 5.941 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.493e-05/6.379, allocations: 40 kB / 3.86 GB, free: 5.902 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,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.0001631/6.379, allocations: 140.6 kB / 3.861 GB, free: 5.758 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007377/6.379, allocations: 271 kB / 3.861 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/6.381, allocations: 1.806 MB / 3.863 GB, free: 3.68 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/6.381, allocations: 31.83 kB / 3.863 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/6.381, allocations: 0 / 3.863 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/6.381, allocations: 3.906 kB / 3.863 GB, free: 3.648 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002756/6.384, allocations: 2.759 MB / 3.865 GB, free: 0.8281 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/6.384, allocations: 0 / 3.865 GB, free: 0.8281 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/6.385, allocations: 196.6 kB / 3.865 GB, free: 0.6367 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000269/6.385, allocations: 84.69 kB / 3.866 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.877e-05/6.386, allocations: 11.98 kB / 3.866 GB, free: 0.5391 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001598/6.387, allocations: 2.021 MB / 3.868 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/6.387, allocations: 0 / 3.868 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00307/6.39, allocations: 2.178 MB / 3.87 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004011/6.394, allocations: 3.135 MB / 3.873 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004333/6.395, allocations: 231.9 kB / 3.873 GB, free: 8.746 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/6.395, allocations: 3.984 kB / 3.873 GB, free: 8.742 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006255/6.396, allocations: 51.88 kB / 3.873 GB, free: 8.691 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.703e-05/6.396, allocations: 43.92 kB / 3.873 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-05/6.396, allocations: 19.98 kB / 3.873 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0004864/6.396, allocations: 354.9 kB / 3.873 GB, free: 8.281 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006134/6.402, allocations: 1.241 MB / 3.875 GB, free: 7.039 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 14 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 38 * 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.008025/6.41, allocations: 1.726 MB / 3.876 GB, free: 5.473 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002591/6.413, allocations: 1.154 MB / 3.877 GB, free: 4.324 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/6.413, allocations: 0 / 3.877 GB, free: 4.324 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001856/6.415, allocations: 0.9392 MB / 3.878 GB, free: 3.387 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001727/6.417, allocations: 269.9 kB / 3.879 GB, free: 3.133 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003398/6.42, allocations: 1.646 MB / 3.88 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/6.421, allocations: 1.166 MB / 3.881 GB, free: 264 kB / 0.5417 GB Notification: Performance of SimCode: time 5.41e-07/6.421, allocations: 0 / 3.881 GB, free: 264 kB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1)