Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",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.001092/0.001092, allocations: 174.9 kB / 8.476 MB, free: 1.883 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.132/1.132, allocations: 205.2 MB / 214.1 MB, free: 5.16 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000867/0.0008669, allocations: 82.25 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1589/0.1598, allocations: 52.99 MB / 315.1 MB, free: 41.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06561/0.2254, allocations: 47.57 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.584/4.81, allocations: 2.739 GB / 3.093 GB, free: 129.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/4.81, allocations: 94.02 kB / 3.093 GB, free: 129.7 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.8037/5.614, allocations: 294 MB / 3.381 GB, free: 30.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/5.614, allocations: 8 kB / 3.381 GB, free: 30.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009296/5.615, allocations: 95.47 kB / 3.381 GB, free: 30.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004363/5.615, allocations: 301.8 kB / 3.381 GB, free: 30.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/5.615, allocations: 8 kB / 3.381 GB, free: 30.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/5.615, allocations: 20 kB / 3.381 GB, free: 30 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004399/5.616, allocations: 237.2 kB / 3.381 GB, free: 29.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/5.616, allocations: 346.8 kB / 3.382 GB, free: 29.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/5.616, allocations: 7.922 kB / 3.382 GB, free: 29.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/5.616, allocations: 4 kB / 3.382 GB, free: 29.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.026e-06/5.616, allocations: 8 kB / 3.382 GB, free: 29.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03162/5.648, allocations: 17.63 MB / 3.399 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/5.648, allocations: 137.8 kB / 3.399 GB, free: 9.609 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/5.648, allocations: 88.94 kB / 3.399 GB, free: 9.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1951/5.843, allocations: 15.2 MB / 3.414 GB, free: 96.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/5.843, allocations: 33.66 kB / 3.414 GB, free: 96.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 2.585e-06/5.843, allocations: 0 / 3.414 GB, free: 96.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=28): time 0.002615/5.846, allocations: 0.869 MB / 3.415 GB, free: 95.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/5.846, allocations: 60.27 kB / 3.415 GB, free: 95.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/5.846, allocations: 213.2 kB / 3.415 GB, free: 95.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/5.846, allocations: 25.7 kB / 3.415 GB, free: 95.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/5.847, allocations: 192 kB / 3.415 GB, free: 95.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.082e-05/5.847, allocations: 99.41 kB / 3.415 GB, free: 95.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.604e-05/5.847, allocations: 0 / 3.415 GB, free: 95.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.596e-05/5.847, allocations: 343.3 kB / 3.416 GB, free: 95.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/5.847, allocations: 90.53 kB / 3.416 GB, free: 95.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/5.847, allocations: 210.8 kB / 3.416 GB, free: 95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/5.847, allocations: 132.9 kB / 3.416 GB, free: 95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/5.847, allocations: 2.25 kB / 3.416 GB, free: 95 MB / 426.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001144/5.849, allocations: 491.1 kB / 3.416 GB, free: 94.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/5.849, allocations: 9.594 kB / 3.416 GB, free: 94.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/5.849, allocations: 6.375 kB / 3.416 GB, free: 94.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003006/5.849, allocations: 62.33 kB / 3.417 GB, free: 94.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003195/5.849, allocations: 81.92 kB / 3.417 GB, free: 94.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/5.851, allocations: 1.873 MB / 3.418 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/5.851, allocations: 23.16 kB / 3.418 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/5.851, allocations: 19.03 kB / 3.418 GB, free: 93.21 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.0001462/5.851, allocations: 123.2 kB / 3.419 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002648/5.852, allocations: 83.58 kB / 3.419 GB, free: 93.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001143/5.853, allocations: 0.9203 MB / 3.42 GB, free: 92.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/5.853, allocations: 13.38 kB / 3.42 GB, free: 92.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/5.853, allocations: 0 / 3.42 GB, free: 92.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008767/5.854, allocations: 1.095 MB / 3.421 GB, free: 92.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/5.855, allocations: 1.476 MB / 3.422 GB, free: 92.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/5.855, allocations: 3.906 kB / 3.422 GB, free: 92.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/5.856, allocations: 50.3 kB / 3.422 GB, free: 92.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002809/5.856, allocations: 99.72 kB / 3.422 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/5.856, allocations: 12.47 kB / 3.422 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004816/5.856, allocations: 0.7068 MB / 3.423 GB, free: 91.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/5.856, allocations: 0 / 3.423 GB, free: 91.61 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001209/5.858, allocations: 1.123 MB / 3.424 GB, free: 91.41 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00162/5.859, allocations: 1.794 MB / 3.426 GB, free: 90.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/5.859, allocations: 110.7 kB / 3.426 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/5.86, allocations: 0 / 3.426 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/5.86, allocations: 10.41 kB / 3.426 GB, free: 90.72 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/5.86, allocations: 23.47 kB / 3.426 GB, free: 90.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/5.86, allocations: 10.2 kB / 3.426 GB, free: 90.72 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0001326/5.86, allocations: 165.6 kB / 3.426 GB, free: 90.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003379/5.863, allocations: 0.5815 MB / 3.427 GB, free: 90.64 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.004563/5.868, allocations: 0.9536 MB / 3.428 GB, free: 90.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001065/5.869, allocations: 0.6055 MB / 3.428 GB, free: 90.42 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.598e-06/5.869, allocations: 0 / 3.428 GB, free: 90.42 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004684/5.87, allocations: 422.2 kB / 3.429 GB, free: 90.42 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008625/5.87, allocations: 131.4 kB / 3.429 GB, free: 90.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/5.872, allocations: 0.7818 MB / 3.429 GB, free: 90.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/5.872, allocations: 0.8551 MB / 3.43 GB, free: 89.55 MB / 426.7 MB Notification: Performance of SimCode: time 3.91e-07/5.872, allocations: 0 / 3.43 GB, free: 89.55 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1)