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.005308/0.005308, allocations: 97.67 kB / 15.73 MB, free: 5.988 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.001088/0.001089, allocations: 191.5 kB / 16.67 MB, free: 5.918 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.437/1.437, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001218/0.001218, allocations: 50.09 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1022, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.03314/0.1354, allocations: 32.57 MB / 405.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0176/0.153, allocations: 15.73 MB / 421.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003912/0.1535, allocations: 7.938 kB / 421.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008318/0.1543, allocations: 266.4 kB / 421.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007234/0.1551, allocations: 361.9 kB / 422.1 MB, free: 192 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01765/0.1727, allocations: 5.784 MB / 427.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001384/0.1741, allocations: 1.001 MB / 428.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002244/0.1744, allocations: 105 kB / 429 MB, free: 9.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004961/0.1794, allocations: 2.189 MB / 431.2 MB, free: 7.055 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004382/0.1798, allocations: 314.8 kB / 431.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/0.1799, allocations: 44 kB / 431.6 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/0.1914, allocations: 6.072 MB / 437.6 MB, free: 0.625 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.1916, allocations: 111.7 kB / 437.7 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003127/0.1919, allocations: 219.2 kB / 438 MB, free: 308 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006921/0.1988, allocations: 3.788 MB / 441.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1988, allocations: 0 / 441.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1989, allocations: 0 / 441.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1989, allocations: 4 kB / 441.8 MB, free: 12.5 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.002329/0.2012, allocations: 1.038 MB / 442.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.2013, allocations: 12.03 kB / 442.8 MB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001269/0.2025, allocations: 148.6 kB / 442.9 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.203, allocations: 335.7 kB / 443.3 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/0.2031, allocations: 33.03 kB / 443.3 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.2031, allocations: 32.36 kB / 443.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.2045, allocations: 0.5502 MB / 443.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.2045, allocations: 3.938 kB / 443.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.954e-05/0.2046, allocations: 16 kB / 443.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/0.2046, allocations: 8 kB / 443.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.2061, allocations: 0.4977 MB / 444.4 MB, free: 9.711 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.003029/0.2091, allocations: 2.6 MB / 447 MB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.2107, allocations: 438.3 kB / 447.4 MB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004128/0.2111, allocations: 168.8 kB / 447.6 MB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007501/0.2119, allocations: 0.5602 MB / 448.2 MB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.2119, allocations: 38.5 kB / 448.2 MB, free: 5.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.084e-06/0.2119, allocations: 7.875 kB / 448.2 MB, free: 5.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.004694/0.2166, allocations: 1.501 MB / 449.7 MB, free: 3.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.2167, allocations: 55.41 kB / 449.8 MB, free: 3.895 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.2169, allocations: 252.9 kB / 450 MB, free: 3.641 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.217, allocations: 29.7 kB / 450 MB, free: 3.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2171, allocations: 184.5 kB / 450.2 MB, free: 3.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.925e-05/0.2172, allocations: 126.9 kB / 450.3 MB, free: 3.297 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.2173, allocations: 78.08 kB / 450.4 MB, free: 3.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2174, allocations: 338.8 kB / 450.8 MB, free: 2.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004062/0.2179, allocations: 144.8 kB / 450.9 MB, free: 2.734 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.2183, allocations: 235.4 kB / 451.1 MB, free: 2.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008334/0.2192, allocations: 394.9 kB / 451.5 MB, free: 2.035 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2192, allocations: 0 / 451.5 MB, free: 2.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001225/0.2204, allocations: 0.4999 MB / 452 MB, free: 1.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2204, allocations: 12.06 kB / 452 MB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.2205, allocations: 7.938 kB / 452 MB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004848/0.2209, allocations: 106.4 kB / 452.1 MB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.2213, allocations: 87.88 kB / 452.2 MB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2218/0.4432, allocations: 2.504 MB / 454.7 MB, free: 73.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006171/0.4438, allocations: 25.67 kB / 454.8 MB, free: 73.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.028e-05/0.4439, allocations: 22.48 kB / 454.8 MB, free: 73.2 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.0003359/0.4443, allocations: 164.1 kB / 454.9 MB, free: 73.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.4444, allocations: 32.81 kB / 455 MB, free: 73.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003443/0.4479, allocations: 1.325 MB / 456.3 MB, free: 72.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-05/0.4479, allocations: 16.81 kB / 456.3 MB, free: 72.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.448, allocations: 0.5625 kB / 456.3 MB, free: 72.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002619/0.4506, allocations: 1.428 MB / 457.7 MB, free: 72.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004003/0.4546, allocations: 2.103 MB / 459.8 MB, free: 71.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.4547, allocations: 0 / 459.8 MB, free: 71.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006225/0.4553, allocations: 91.36 kB / 459.9 MB, free: 71.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005107/0.4558, allocations: 75.86 kB / 460 MB, free: 71.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/0.4559, allocations: 7.797 kB / 460 MB, free: 71.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003813/0.4563, allocations: 0.5984 MB / 460.6 MB, free: 70.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.155e-06/0.4563, allocations: 0.6094 kB / 460.6 MB, free: 70.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.4591, allocations: 1.273 MB / 461.9 MB, free: 70.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.4593, allocations: 133.7 kB / 462 MB, free: 69.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.497e-05/0.4594, allocations: 21.52 kB / 462 MB, free: 69.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003922/0.4598, allocations: 22 kB / 462.1 MB, free: 69.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.46, allocations: 33.56 kB / 462.1 MB, free: 69.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.567e-05/0.46, allocations: 16 kB / 462.1 MB, free: 69.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003526/0.4604, allocations: 233.7 kB / 462.3 MB, free: 69.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4604, allocations: 3.781 kB / 462.3 MB, free: 69.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003481/0.4639, allocations: 0.858 MB / 463.2 MB, free: 69.8 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.005107/0.469, allocations: 0.9896 MB / 464.2 MB, free: 69.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.4709, allocations: 0.6491 MB / 464.8 MB, free: 69.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.471, allocations: 4.031 kB / 464.8 MB, free: 69.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008979/0.4719, allocations: 420 kB / 465.2 MB, free: 69.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.4734, allocations: 195.7 kB / 465.4 MB, free: 69.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.4759, allocations: 1.279 MB / 466.7 MB, free: 68.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.4763, allocations: 0.8749 MB / 467.6 MB, free: 67.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004953/0.4768, allocations: 141.4 kB / 467.7 MB, free: 67.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.4769, allocations: 33.83 kB / 467.8 MB, free: 67.77 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4769, allocations: 1.375 kB / 467.8 MB, free: 67.77 MB / 382.1 MB Notification: Performance of Templates: time 0.0388/0.5157, allocations: 35.84 MB / 0.4918 GB, free: 36.7 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)