Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 185.1 kB / 7.8 MB, free: 2.5 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.282/1.282, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.0009733/0.0009733, allocations: 91.55 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2053/0.2053, allocations: 43.48 MB / 352.8 MB, free: 2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.238/0.4433, allocations: 64.99 MB / 417.8 MB, free: 40.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.8026, allocations: 58.83 MB / 476.7 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.147/6.949, allocations: 2.795 GB / 3.26 GB, free: 72.46 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004486/6.95, allocations: 87.94 kB / 3.26 GB, free: 72.38 MB / 0.4948 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 2.08/9.03, allocations: 0.4914 GB / 3.752 GB, free: 58.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/9.03, allocations: 9.094 kB / 3.752 GB, free: 58.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002951/9.033, allocations: 347.1 kB / 3.752 GB, free: 58.23 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/9.035, allocations: 0.6008 MB / 3.753 GB, free: 57.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/9.035, allocations: 96.08 kB / 3.753 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/9.035, allocations: 31 kB / 3.753 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001511/9.037, allocations: 0.6624 MB / 3.753 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/9.038, allocations: 0.8955 MB / 3.754 GB, free: 57.63 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.142e-05/9.038, allocations: 7.875 kB / 3.754 GB, free: 57.63 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/9.038, allocations: 3.562 kB / 3.754 GB, free: 57.63 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.954e-05/9.038, allocations: 49.41 kB / 3.754 GB, free: 57.63 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1661/9.205, allocations: 83.1 MB / 3.836 GB, free: 22.26 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/9.205, allocations: 231.7 kB / 3.836 GB, free: 22.24 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/9.205, allocations: 162.5 kB / 3.836 GB, free: 22.23 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08496/9.29, allocations: 38.42 MB / 3.873 GB, free: 30.12 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.345e-05/9.29, allocations: 37.41 kB / 3.873 GB, free: 30.09 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=33): time 2.505e-06/9.29, allocations: 0 / 3.873 GB, free: 30.09 MB / 0.5573 GB Notification: Performance of matching and sorting (n=37): time 0.004719/9.295, allocations: 1.355 MB / 3.875 GB, free: 29.68 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.535e-05/9.295, allocations: 132.5 kB / 3.875 GB, free: 29.53 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008694/9.296, allocations: 0.49 MB / 3.875 GB, free: 29.39 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.629e-05/9.296, allocations: 29.67 kB / 3.875 GB, free: 29.36 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002316/9.296, allocations: 364.9 kB / 3.876 GB, free: 29.12 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/9.297, allocations: 140.1 kB / 3.876 GB, free: 29.03 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/9.297, allocations: 0 / 3.876 GB, free: 29.03 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001923/9.297, allocations: 374.8 kB / 3.876 GB, free: 28.71 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003711/9.297, allocations: 218.1 kB / 3.876 GB, free: 28.71 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005214/9.298, allocations: 0.5488 MB / 3.877 GB, free: 28.29 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007378/9.298, allocations: 336.8 kB / 3.877 GB, free: 28.26 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.313e-06/9.299, allocations: 3.281 kB / 3.877 GB, free: 28.26 MB / 0.5573 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002448/9.301, allocations: 1.004 MB / 3.878 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/9.301, allocations: 7.938 kB / 3.878 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/9.301, allocations: 11.62 kB / 3.878 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002553/9.301, allocations: 61.72 kB / 3.878 GB, free: 28.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/9.303, allocations: 278 kB / 3.879 GB, free: 28.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/9.305, allocations: 1.979 MB / 3.881 GB, free: 26.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008829/9.306, allocations: 45.33 kB / 3.881 GB, free: 26.37 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/9.306, allocations: 44.25 kB / 3.881 GB, free: 26.37 MB / 0.5573 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.0002542/9.306, allocations: 140.1 kB / 3.881 GB, free: 26.25 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009192/9.307, allocations: 266.5 kB / 3.881 GB, free: 26.22 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/9.31, allocations: 1.767 MB / 3.883 GB, free: 26.07 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/9.31, allocations: 21.88 kB / 3.883 GB, free: 26.07 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/9.31, allocations: 1.094 kB / 3.883 GB, free: 26.07 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/9.31, allocations: 3.938 kB / 3.883 GB, free: 26.07 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004074/9.314, allocations: 2.664 MB / 3.885 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/9.314, allocations: 0 / 3.885 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/9.315, allocations: 171.8 kB / 3.886 GB, free: 25.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000279/9.315, allocations: 78.8 kB / 3.886 GB, free: 25.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-05/9.315, allocations: 6.406 kB / 3.886 GB, free: 25.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002108/9.318, allocations: 2.023 MB / 3.888 GB, free: 23.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/9.318, allocations: 1.531 kB / 3.888 GB, free: 23.88 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003948/9.322, allocations: 2.052 MB / 3.89 GB, free: 23.65 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005628/9.327, allocations: 2.994 MB / 3.893 GB, free: 23.04 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006709/9.328, allocations: 237.8 kB / 3.893 GB, free: 22.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002686/9.328, allocations: 5.141 kB / 3.893 GB, free: 22.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008348/9.329, allocations: 52.8 kB / 3.893 GB, free: 22.89 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.411e-05/9.329, allocations: 24.19 kB / 3.893 GB, free: 22.89 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.91e-05/9.329, allocations: 20.05 kB / 3.893 GB, free: 22.89 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0007791/9.33, allocations: 355.8 kB / 3.893 GB, free: 22.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008309/9.338, allocations: 1.238 MB / 3.894 GB, free: 22.64 MB / 0.5573 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.01028/9.349, allocations: 1.733 MB / 3.896 GB, free: 22.28 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003224/9.352, allocations: 1.131 MB / 3.897 GB, free: 22.26 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.463e-06/9.352, allocations: 0 / 3.897 GB, free: 22.26 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001959/9.354, allocations: 0.907 MB / 3.898 GB, free: 22.25 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001904/9.356, allocations: 249.7 kB / 3.898 GB, free: 22.23 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003987/9.36, allocations: 1.616 MB / 3.9 GB, free: 21.85 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001644/9.361, allocations: 1.153 MB / 3.901 GB, free: 21.12 MB / 0.5573 GB Notification: Performance of SimCode: time 1.112e-06/9.361, allocations: 0 / 3.901 GB, free: 21.12 MB / 0.5573 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1)