Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") [: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.2+maint.om/package.mo): time 0.00449/0.00449, allocations: 180.3 kB / 7.456 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.315/1.315, allocations: 194.2 MB / 202.1 MB, free: 8.652 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001688/0.001688, allocations: 124.8 kB / 247.1 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1957/0.1957, allocations: 39.94 MB / 331.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.124e-06, allocations: 0 / 392.8 MB, free: 75.87 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 54.87 MB / 447.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.168/5.282, allocations: 2.626 GB / 3.063 GB, free: 125.4 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003908/5.282, allocations: 90.72 kB / 3.063 GB, free: 125.3 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.774/7.057, allocations: 498.6 MB / 3.55 GB, free: 52.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.167e-05/7.057, allocations: 22.69 kB / 3.55 GB, free: 52.46 MB / 490.7 MB 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 0.008107/7.065, allocations: 1.714 MB / 3.552 GB, free: 51.87 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/7.065, allocations: 11.72 kB / 3.552 GB, free: 51.87 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002458/7.067, allocations: 347.4 kB / 3.552 GB, free: 51.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/7.069, allocations: 0.6069 MB / 3.553 GB, free: 51.59 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/7.069, allocations: 94.48 kB / 3.553 GB, free: 51.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-05/7.069, allocations: 33.47 kB / 3.553 GB, free: 51.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001039/7.07, allocations: 0.659 MB / 3.554 GB, free: 51.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/7.071, allocations: 0.8908 MB / 3.554 GB, free: 51.23 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/7.071, allocations: 1.312 kB / 3.554 GB, free: 51.23 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/7.071, allocations: 5.938 kB / 3.554 GB, free: 51.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-05/7.071, allocations: 47.53 kB / 3.554 GB, free: 51.23 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1587/7.23, allocations: 83.09 MB / 3.636 GB, free: 32.01 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/7.23, allocations: 230 kB / 3.636 GB, free: 31.99 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/7.231, allocations: 162.1 kB / 3.636 GB, free: 31.98 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07117/7.302, allocations: 34.05 MB / 3.669 GB, free: 26.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.028e-05/7.302, allocations: 41.44 kB / 3.669 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=33): time 2.896e-06/7.302, allocations: 4 kB / 3.669 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=37): time 0.004967/7.307, allocations: 1.353 MB / 3.671 GB, free: 25.99 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.778e-05/7.307, allocations: 134.5 kB / 3.671 GB, free: 25.83 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009208/7.308, allocations: 0.5027 MB / 3.671 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.369e-05/7.308, allocations: 25.7 kB / 3.671 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/7.308, allocations: 371.7 kB / 3.672 GB, free: 25.42 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000129/7.309, allocations: 136.1 kB / 3.672 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/7.309, allocations: 0 / 3.672 GB, free: 25.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001783/7.309, allocations: 376.2 kB / 3.672 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000355/7.309, allocations: 218 kB / 3.672 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005427/7.31, allocations: 0.5763 MB / 3.673 GB, free: 24.55 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007281/7.311, allocations: 343.8 kB / 3.673 GB, free: 24.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/7.311, allocations: 3.5 kB / 3.673 GB, free: 24.54 MB / 0.5261 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.0023/7.313, allocations: 1.029 MB / 3.674 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/7.313, allocations: 6.625 kB / 3.674 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.511e-05/7.313, allocations: 13.44 kB / 3.674 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/7.313, allocations: 63.56 kB / 3.674 GB, free: 24.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/7.314, allocations: 283 kB / 3.675 GB, free: 24.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/7.316, allocations: 1.98 MB / 3.676 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008121/7.317, allocations: 45.48 kB / 3.677 GB, free: 22.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-05/7.317, allocations: 43.53 kB / 3.677 GB, free: 22.64 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * 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 (99): * Single equations (assignments): 97 * 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.0002399/7.317, allocations: 148 kB / 3.677 GB, free: 22.52 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008087/7.318, allocations: 265.3 kB / 3.677 GB, free: 22.49 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/7.32, allocations: 1.76 MB / 3.679 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/7.32, allocations: 27.2 kB / 3.679 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/7.32, allocations: 0 / 3.679 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/7.32, allocations: 3.797 kB / 3.679 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/7.323, allocations: 2.658 MB / 3.681 GB, free: 21.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/7.324, allocations: 2.297 kB / 3.681 GB, free: 21.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008693/7.324, allocations: 168.3 kB / 3.681 GB, free: 21.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002583/7.325, allocations: 84.55 kB / 3.682 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.94e-05/7.325, allocations: 3.406 kB / 3.682 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/7.326, allocations: 2.026 MB / 3.684 GB, free: 20.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/7.326, allocations: 1.125 kB / 3.684 GB, free: 20.13 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003289/7.33, allocations: 2.059 MB / 3.686 GB, free: 19.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/7.33, allocations: 230.4 kB / 3.686 GB, free: 19.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000174/7.33, allocations: 4.5 kB / 3.686 GB, free: 19.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/7.331, allocations: 48.92 kB / 3.686 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.301e-05/7.331, allocations: 25.06 kB / 3.686 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.66e-05/7.331, allocations: 22.19 kB / 3.686 GB, free: 19.75 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0006707/7.332, allocations: 363.8 kB / 3.686 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006057/7.338, allocations: 1.11 MB / 3.687 GB, free: 19.51 MB / 0.5261 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.01034/7.348, allocations: 1.723 MB / 3.689 GB, free: 19.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002843/7.351, allocations: 1.131 MB / 3.69 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/7.351, allocations: 4.312 kB / 3.69 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001848/7.353, allocations: 0.8986 MB / 3.691 GB, free: 19.13 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/7.355, allocations: 256.9 kB / 3.691 GB, free: 19.11 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/7.358, allocations: 1.613 MB / 3.693 GB, free: 18.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000911/7.359, allocations: 1.156 MB / 3.694 GB, free: 18 MB / 0.5261 GB Notification: Performance of SimCode: time 1.513e-06/7.359, allocations: 0 / 3.694 GB, free: 18 MB / 0.5261 GB Notification: Performance of Templates: time 0.05515/7.414, allocations: 37.95 MB / 3.731 GB, free: 6.258 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1)