Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008659/0.008659, allocations: 98.14 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001535/0.001536, allocations: 199.8 kB / 16.68 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 54.31 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09872/0.09997, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.03347/0.1335, allocations: 32.57 MB / 405.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01677/0.1503, allocations: 15.73 MB / 421.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003012/0.1507, allocations: 4 kB / 421.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007227/0.1514, allocations: 262.4 kB / 421.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006571/0.1521, allocations: 373.9 kB / 422.1 MB, free: 180 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01503/0.1671, allocations: 5.788 MB / 427.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001536/0.1687, allocations: 0.9972 MB / 428.9 MB, free: 9.363 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.1689, allocations: 113 kB / 429 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006213/0.1752, allocations: 2.193 MB / 431.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005861/0.1758, allocations: 314.8 kB / 431.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.8e-05/0.1759, allocations: 40 kB / 431.6 MB, free: 6.684 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01214/0.188, allocations: 6.08 MB / 437.7 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.1883, allocations: 111.6 kB / 437.8 MB, free: 500 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.1887, allocations: 219.2 kB / 438 MB, free: 280 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009608/0.1983, allocations: 3.777 MB / 441.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1983, allocations: 0 / 441.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1983, allocations: 0 / 441.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.1984, allocations: 0 / 441.8 MB, free: 12.49 MB / 382.1 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.002724/0.2011, allocations: 1.018 MB / 442.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.2012, allocations: 12.03 kB / 442.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/0.2025, allocations: 148.3 kB / 442.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.2031, allocations: 331.6 kB / 443.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.435e-05/0.2031, allocations: 32.97 kB / 443.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.018e-05/0.2032, allocations: 32.38 kB / 443.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.2048, allocations: 0.5424 MB / 443.9 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2048, allocations: 4 kB / 443.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.298e-05/0.2049, allocations: 16 kB / 443.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.2049, allocations: 8 kB / 443.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.2064, allocations: 0.5055 MB / 444.4 MB, free: 9.727 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003084/0.2095, allocations: 2.6 MB / 447 MB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.2111, allocations: 450.5 kB / 447.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004202/0.2115, allocations: 164.8 kB / 447.6 MB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007517/0.2123, allocations: 0.5521 MB / 448.1 MB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.2123, allocations: 38.56 kB / 448.2 MB, free: 5.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.823e-06/0.2123, allocations: 3.938 kB / 448.2 MB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.004784/0.2171, allocations: 1.508 MB / 449.7 MB, free: 3.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.2171, allocations: 59.34 kB / 449.8 MB, free: 3.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.2174, allocations: 252.9 kB / 450 MB, free: 3.648 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.2174, allocations: 29.7 kB / 450 MB, free: 3.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.2176, allocations: 184.2 kB / 450.2 MB, free: 3.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.666e-05/0.2176, allocations: 118.3 kB / 450.3 MB, free: 3.312 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.2178, allocations: 74.12 kB / 450.4 MB, free: 3.234 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2179, allocations: 342.8 kB / 450.7 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003965/0.2183, allocations: 140.8 kB / 450.9 MB, free: 2.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000443/0.2188, allocations: 235.4 kB / 451.1 MB, free: 2.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008293/0.2196, allocations: 386.9 kB / 451.5 MB, free: 2.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2196, allocations: 4 kB / 451.5 MB, free: 2.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001285/0.2209, allocations: 0.5033 MB / 452 MB, free: 1.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.2209, allocations: 8 kB / 452 MB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.221, allocations: 7.938 kB / 452 MB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004926/0.2215, allocations: 106.8 kB / 452.1 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/0.2218, allocations: 87.88 kB / 452.2 MB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1982/0.42, allocations: 2.502 MB / 454.7 MB, free: 73.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004142/0.4205, allocations: 30.22 kB / 454.7 MB, free: 73.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.828e-05/0.4206, allocations: 18.95 kB / 454.7 MB, free: 73.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (fixedMassFlowRate.medium.phase,volume.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002142/0.4208, allocations: 160.4 kB / 454.9 MB, free: 73.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.105e-05/0.4209, allocations: 29.59 kB / 454.9 MB, free: 73.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/0.4232, allocations: 1.321 MB / 456.2 MB, free: 72.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/0.4232, allocations: 22.16 kB / 456.3 MB, free: 72.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.4232, allocations: 0.5 kB / 456.3 MB, free: 72.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001721/0.4249, allocations: 1.423 MB / 457.7 MB, free: 72.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002808/0.4278, allocations: 2.103 MB / 459.8 MB, free: 71.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.4278, allocations: 1.031 kB / 459.8 MB, free: 71.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.4282, allocations: 84.44 kB / 459.9 MB, free: 71.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003889/0.4286, allocations: 77.31 kB / 460 MB, free: 71.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.4287, allocations: 7.875 kB / 460 MB, free: 71.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002903/0.429, allocations: 0.5969 MB / 460.6 MB, free: 70.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.429, allocations: 0 / 460.6 MB, free: 70.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.4311, allocations: 1.274 MB / 461.8 MB, free: 70.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.4312, allocations: 127.7 kB / 462 MB, free: 69.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.4313, allocations: 20.98 kB / 462 MB, free: 69.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.4316, allocations: 24.41 kB / 462 MB, free: 69.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4317, allocations: 34.36 kB / 462 MB, free: 69.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.4318, allocations: 15.75 kB / 462.1 MB, free: 69.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002929/0.4321, allocations: 236.1 kB / 462.3 MB, free: 69.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4321, allocations: 1.094 kB / 462.3 MB, free: 69.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002634/0.4347, allocations: 0.8555 MB / 463.1 MB, free: 69.77 MB / 382.1 MB 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: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003503/0.4382, allocations: 0.9703 MB / 464.1 MB, free: 69.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.4397, allocations: 0.651 MB / 464.8 MB, free: 69.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.4397, allocations: 1.875 kB / 464.8 MB, free: 69.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006792/0.4404, allocations: 419.9 kB / 465.2 MB, free: 69.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.4415, allocations: 193.2 kB / 465.4 MB, free: 69.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.4434, allocations: 1.276 MB / 466.6 MB, free: 68.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.4438, allocations: 0.8683 MB / 467.5 MB, free: 67.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004941/0.4443, allocations: 151 kB / 467.7 MB, free: 67.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.4444, allocations: 33.42 kB / 467.7 MB, free: 67.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4444, allocations: 1.375 kB / 467.7 MB, free: 67.82 MB / 382.1 MB Notification: Performance of Templates: time 0.03699/0.4814, allocations: 35.84 MB / 0.4917 GB, free: 36.72 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & ./Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1)