Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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) 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: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT") [: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.002372/0.002372, allocations: 173.8 kB / 8.149 MB, free: 2.195 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.676/1.676, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001258/0.001257, allocations: 83.08 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.757e-06/8.906e-06, allocations: 0 / 314.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2435, allocations: 47.56 MB / 361.9 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.109/6.353, allocations: 2.739 GB / 3.093 GB, free: 85.34 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003784/6.353, allocations: 92.91 kB / 3.093 GB, free: 85.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.115/7.468, allocations: 293 MB / 3.379 GB, free: 25.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.728e-05/7.468, allocations: 11.91 kB / 3.379 GB, free: 25.86 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003426/7.472, allocations: 0.9155 MB / 3.38 GB, free: 24.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/7.472, allocations: 12.02 kB / 3.38 GB, free: 24.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/7.473, allocations: 87.47 kB / 3.38 GB, free: 24.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005681/7.473, allocations: 302.4 kB / 3.38 GB, free: 24.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/7.473, allocations: 8 kB / 3.38 GB, free: 24.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/7.473, allocations: 20 kB / 3.38 GB, free: 24.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006336/7.474, allocations: 237.2 kB / 3.38 GB, free: 24.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006778/7.475, allocations: 345.2 kB / 3.381 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/7.475, allocations: 0 / 3.381 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.246e-05/7.475, allocations: 4 kB / 3.381 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/7.475, allocations: 12 kB / 3.381 GB, free: 23.81 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05569/7.531, allocations: 17.62 MB / 3.398 GB, free: 4.195 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/7.531, allocations: 133.8 kB / 3.398 GB, free: 4.059 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/7.531, allocations: 84.86 kB / 3.398 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2048/7.736, allocations: 15.21 MB / 3.413 GB, free: 96.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.294e-05/7.736, allocations: 33.81 kB / 3.413 GB, free: 96.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.144e-06/7.736, allocations: 0 / 3.413 GB, free: 96.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=28): time 0.003564/7.74, allocations: 0.8709 MB / 3.414 GB, free: 96.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/7.74, allocations: 54.97 kB / 3.414 GB, free: 96.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003094/7.74, allocations: 214.9 kB / 3.414 GB, free: 96.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/7.74, allocations: 25.7 kB / 3.414 GB, free: 96.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.324e-05/7.74, allocations: 255.8 kB / 3.414 GB, free: 95.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.828e-05/7.74, allocations: 101.6 kB / 3.415 GB, free: 95.88 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/7.74, allocations: 3.469 kB / 3.415 GB, free: 95.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.15e-05/7.74, allocations: 321.4 kB / 3.415 GB, free: 95.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002529/7.741, allocations: 93.09 kB / 3.415 GB, free: 95.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/7.741, allocations: 212.8 kB / 3.415 GB, free: 95.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005517/7.742, allocations: 132.2 kB / 3.415 GB, free: 95.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/7.742, allocations: 0 / 3.415 GB, free: 95.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001676/7.743, allocations: 487 kB / 3.416 GB, free: 95.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/7.743, allocations: 6.75 kB / 3.416 GB, free: 95.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/7.743, allocations: 3.375 kB / 3.416 GB, free: 95.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003864/7.744, allocations: 66.94 kB / 3.416 GB, free: 95.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005559/7.744, allocations: 82.05 kB / 3.416 GB, free: 95.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/7.746, allocations: 1.866 MB / 3.418 GB, free: 93.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/7.747, allocations: 25.69 kB / 3.418 GB, free: 93.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.259e-05/7.747, allocations: 17.03 kB / 3.418 GB, free: 93.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001229/7.747, allocations: 40.16 kB / 3.418 GB, free: 93.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/7.747, allocations: 93.38 kB / 3.418 GB, free: 93.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001694/7.749, allocations: 0.9171 MB / 3.419 GB, free: 93.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/7.749, allocations: 11.42 kB / 3.419 GB, free: 93.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/7.749, allocations: 0 / 3.419 GB, free: 93.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001224/7.75, allocations: 1.101 MB / 3.42 GB, free: 93.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002406/7.753, allocations: 1.475 MB / 3.421 GB, free: 92.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/7.753, allocations: 0 / 3.421 GB, free: 92.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004027/7.753, allocations: 47.31 kB / 3.421 GB, free: 92.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004392/7.753, allocations: 102.4 kB / 3.421 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/7.754, allocations: 10.3 kB / 3.421 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007645/7.754, allocations: 0.7149 MB / 3.422 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/7.754, allocations: 3.219 kB / 3.422 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001948/7.756, allocations: 1.122 MB / 3.423 GB, free: 91.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/7.756, allocations: 108.7 kB / 3.423 GB, free: 91.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.552e-05/7.757, allocations: 0 / 3.423 GB, free: 91.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/7.757, allocations: 19.7 kB / 3.423 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/7.757, allocations: 21.67 kB / 3.423 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.641e-05/7.757, allocations: 10.72 kB / 3.423 GB, free: 91.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002041/7.757, allocations: 162.8 kB / 3.424 GB, free: 91.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002925/7.76, allocations: 0.5234 MB / 3.424 GB, free: 91.73 MB / 426.7 MB 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: 4 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003868/7.764, allocations: 0.9624 MB / 3.425 GB, free: 91.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001385/7.765, allocations: 0.5977 MB / 3.426 GB, free: 91.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/7.766, allocations: 0 / 3.426 GB, free: 91.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006919/7.766, allocations: 416.2 kB / 3.426 GB, free: 91.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/7.768, allocations: 130.1 kB / 3.426 GB, free: 91.51 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/7.769, allocations: 0.8058 MB / 3.427 GB, free: 91.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004186/7.77, allocations: 0.8556 MB / 3.428 GB, free: 90.61 MB / 426.7 MB Notification: Performance of SimCode: time 1.923e-06/7.77, allocations: 0 / 3.428 GB, free: 90.61 MB / 426.7 MB Notification: Performance of Templates: time 0.03357/7.804, allocations: 17.74 MB / 3.445 GB, free: 89.88 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1)