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.01083/0.01083, allocations: 101.7 kB / 15.73 MB, free: 5.969 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.002257/0.002258, allocations: 194.8 kB / 16.67 MB, free: 5.906 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.489/1.489, allocations: 205.1 MB / 222.6 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.001152/0.001152, allocations: 54.42 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1015, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.03401/0.1356, allocations: 32.57 MB / 405.8 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01882/0.1544, allocations: 15.73 MB / 421.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006826/0.1552, allocations: 4 kB / 421.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.1563, allocations: 266.4 kB / 421.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.1573, allocations: 366 kB / 422.1 MB, free: 204 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02007/0.1774, allocations: 5.799 MB / 427.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001493/0.1789, allocations: 0.9933 MB / 428.9 MB, free: 9.379 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002861/0.1792, allocations: 120.9 kB / 429 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005156/0.1844, allocations: 2.196 MB / 431.2 MB, free: 7.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005262/0.1849, allocations: 314.8 kB / 431.6 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.403e-05/0.185, allocations: 40 kB / 431.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01045/0.1955, allocations: 6.076 MB / 437.7 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.1957, allocations: 103.7 kB / 437.8 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.196, allocations: 227.2 kB / 438 MB, free: 288 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00904/0.2051, allocations: 3.781 MB / 441.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2051, allocations: 0 / 441.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2051, allocations: 0 / 441.8 MB, free: 12.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.003e-05/0.2051, 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.003001/0.2081, allocations: 1.014 MB / 442.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.2082, allocations: 8.031 kB / 442.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001452/0.2097, allocations: 148.3 kB / 442.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006574/0.2103, allocations: 335.5 kB / 443.3 MB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.2104, allocations: 29.03 kB / 443.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.965e-05/0.2105, allocations: 32.38 kB / 443.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.212, allocations: 0.5463 MB / 443.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.2121, allocations: 0 / 443.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.2121, allocations: 20 kB / 443.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.2121, allocations: 8 kB / 443.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.2136, allocations: 0.5055 MB / 444.4 MB, free: 9.734 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.003181/0.2168, allocations: 2.6 MB / 447 MB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.2182, allocations: 442.6 kB / 447.4 MB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003959/0.2186, allocations: 168.8 kB / 447.6 MB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007565/0.2194, allocations: 0.5521 MB / 448.2 MB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.2194, allocations: 38.56 kB / 448.2 MB, free: 5.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.453e-06/0.2194, allocations: 3.938 kB / 448.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.004607/0.2241, allocations: 1.504 MB / 449.7 MB, free: 3.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.2241, allocations: 55.41 kB / 449.8 MB, free: 3.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.2244, allocations: 248.9 kB / 450 MB, free: 3.672 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.367e-05/0.2244, allocations: 33.7 kB / 450 MB, free: 3.633 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.2246, allocations: 184.2 kB / 450.2 MB, free: 3.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.2247, allocations: 118.2 kB / 450.3 MB, free: 3.332 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/0.2248, allocations: 78.12 kB / 450.4 MB, free: 3.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2249, allocations: 338.8 kB / 450.7 MB, free: 2.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003747/0.2253, allocations: 144.8 kB / 450.9 MB, free: 2.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004295/0.2258, allocations: 243.4 kB / 451.1 MB, free: 2.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007744/0.2265, allocations: 382.9 kB / 451.5 MB, free: 2.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2265, allocations: 0 / 451.5 MB, free: 2.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001205/0.2278, allocations: 0.5072 MB / 452 MB, free: 1.551 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.2278, allocations: 8 kB / 452 MB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.2278, allocations: 3.938 kB / 452 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004764/0.2283, allocations: 110.8 kB / 452.1 MB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/0.2287, allocations: 91.81 kB / 452.2 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2151/0.4437, allocations: 2.499 MB / 454.7 MB, free: 73.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.4442, allocations: 28.56 kB / 454.7 MB, free: 73.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.4443, allocations: 19.91 kB / 454.7 MB, free: 73.12 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.0002529/0.4446, allocations: 159.7 kB / 454.9 MB, free: 73.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.785e-05/0.4446, allocations: 29.66 kB / 454.9 MB, free: 73.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002289/0.4469, allocations: 1.325 MB / 456.3 MB, free: 72.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.96e-05/0.447, allocations: 18.92 kB / 456.3 MB, free: 72.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.447, allocations: 0.75 kB / 456.3 MB, free: 72.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001752/0.4488, allocations: 1.424 MB / 457.7 MB, free: 72.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003125/0.4519, allocations: 2.098 MB / 459.8 MB, free: 71.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.4519, allocations: 1.031 kB / 459.8 MB, free: 71.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.4523, allocations: 95.39 kB / 459.9 MB, free: 71.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000348/0.4527, allocations: 76.81 kB / 460 MB, free: 71.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.4527, allocations: 6.906 kB / 460 MB, free: 71.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003208/0.4531, allocations: 0.5943 MB / 460.6 MB, free: 70.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4531, allocations: 2.188 kB / 460.6 MB, free: 70.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002084/0.4552, allocations: 1.274 MB / 461.8 MB, free: 70.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/0.4553, allocations: 128.5 kB / 462 MB, free: 69.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.759e-05/0.4553, allocations: 17.17 kB / 462 MB, free: 69.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.4556, allocations: 27.55 kB / 462 MB, free: 69.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.725e-05/0.4557, allocations: 35.03 kB / 462 MB, free: 69.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.4557, allocations: 15.02 kB / 462.1 MB, free: 69.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002365/0.456, allocations: 234 kB / 462.3 MB, free: 69.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.456, allocations: 1.406 kB / 462.3 MB, free: 69.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003115/0.4591, allocations: 0.8543 MB / 463.1 MB, free: 69.71 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.003496/0.4626, allocations: 0.9712 MB / 464.1 MB, free: 69.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00159/0.4642, allocations: 0.6483 MB / 464.8 MB, free: 69.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4642, allocations: 1 kB / 464.8 MB, free: 69.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007489/0.465, allocations: 418.9 kB / 465.2 MB, free: 69.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.4661, allocations: 191.9 kB / 465.4 MB, free: 69.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/0.4679, allocations: 1.276 MB / 466.6 MB, free: 68.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.4682, allocations: 0.8685 MB / 467.5 MB, free: 67.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003438/0.4686, allocations: 138.5 kB / 467.6 MB, free: 67.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.854e-05/0.4686, allocations: 38.73 kB / 467.7 MB, free: 67.75 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.4687, allocations: 0 / 467.7 MB, free: 67.75 MB / 382.1 MB Notification: Performance of Templates: time 0.03798/0.5066, allocations: 35.84 MB / 0.4917 GB, free: 36.75 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)