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.001427/0.001426, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.545/1.545, allocations: 205.1 MB / 222.4 MB, free: 4.391 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.001482/0.001482, allocations: 43.94 kB / 278.7 MB, free: 12.21 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2542, allocations: 46.64 MB / 325.3 MB, free: 2.039 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.03212/0.2864, allocations: 32.56 MB / 357.9 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.3051, allocations: 15.74 MB / 373.6 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003918/0.3056, allocations: 8 kB / 373.6 MB, free: 3.441 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.3066, allocations: 266.4 kB / 373.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008278/0.3075, allocations: 362 kB / 374.2 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01843/0.3259, allocations: 5.784 MB / 380 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00143/0.3273, allocations: 0.9894 MB / 381 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.3276, allocations: 105 kB / 381.1 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005121/0.3327, allocations: 2.204 MB / 383.3 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003781/0.3331, allocations: 310.8 kB / 383.6 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.858e-05/0.3332, allocations: 40 kB / 383.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01101/0.3442, allocations: 5.939 MB / 389.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001721/0.3444, allocations: 99.72 kB / 389.7 MB, free: 3.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003736/0.3448, allocations: 223.2 kB / 389.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007561/0.3523, allocations: 3.781 MB / 393.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3524, allocations: 12 kB / 393.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3524, allocations: 0 / 393.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.3524, allocations: 0 / 393.7 MB, free: 15.28 MB / 334.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.002034/0.3544, allocations: 1.014 MB / 394.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3545, allocations: 8.031 kB / 394.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001259/0.3557, allocations: 156.4 kB / 394.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.3562, allocations: 323.5 kB / 395.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.77e-05/0.3562, allocations: 29.03 kB / 395.2 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.3563, allocations: 32.38 kB / 395.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.3578, allocations: 0.5541 MB / 395.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3578, allocations: 0 / 395.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.362e-05/0.3578, allocations: 12 kB / 395.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.339e-05/0.3579, allocations: 8 kB / 395.8 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001522/0.3594, allocations: 0.4977 MB / 396.3 MB, free: 12.53 MB / 334.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.00374/0.3631, allocations: 2.615 MB / 399 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.3647, allocations: 450.2 kB / 399.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004041/0.3651, allocations: 160.8 kB / 399.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008627/0.366, allocations: 0.5602 MB / 400.1 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.366, allocations: 39.06 kB / 400.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.366, allocations: 0 / 400.1 MB, free: 8.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.004909/0.3709, allocations: 1.5 MB / 401.6 MB, free: 6.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.371, allocations: 59.41 kB / 401.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.3713, allocations: 245 kB / 401.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.3714, allocations: 33.7 kB / 402 MB, free: 6.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.3715, allocations: 184.1 kB / 402.2 MB, free: 6.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.983e-05/0.3716, allocations: 114.3 kB / 402.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.3717, allocations: 78.12 kB / 402.3 MB, free: 6.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3719, allocations: 334.8 kB / 402.7 MB, free: 5.699 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004156/0.3723, allocations: 144.8 kB / 402.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004969/0.3728, allocations: 235.4 kB / 403 MB, free: 5.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000931/0.3738, allocations: 390.8 kB / 403.4 MB, free: 4.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3738, allocations: 8 kB / 403.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001434/0.3752, allocations: 0.5033 MB / 403.9 MB, free: 4.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3752, allocations: 8.625 kB / 403.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3753, allocations: 4.281 kB / 404 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004832/0.3758, allocations: 110.5 kB / 404.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.3761, allocations: 87.83 kB / 404.1 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002261/0.3784, allocations: 2.507 MB / 406.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.3787, allocations: 32.03 kB / 406.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.3787, allocations: 20 kB / 406.7 MB, free: 1.375 MB / 334.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.0002279/0.379, allocations: 153.7 kB / 406.9 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.082e-05/0.3791, allocations: 27.72 kB / 406.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002221/0.3813, allocations: 1.343 MB / 408.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.49e-05/0.3813, allocations: 15.97 kB / 408.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.3813, allocations: 3.984 kB / 408.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001941/0.3833, allocations: 1.421 MB / 409.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003062/0.3864, allocations: 2.104 MB / 411.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.3864, allocations: 4 kB / 411.8 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003781/0.3868, allocations: 91.86 kB / 411.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000324/0.3871, allocations: 68.77 kB / 411.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.3872, allocations: 20 kB / 411.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000389/0.3875, allocations: 0.5952 MB / 412.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3876, allocations: 0 / 412.5 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.3896, allocations: 1.27 MB / 413.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.3898, allocations: 132.3 kB / 413.9 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.108e-05/0.3898, allocations: 15.84 kB / 414 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.3901, allocations: 32.03 kB / 414 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.3902, allocations: 31.95 kB / 414 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.303e-05/0.3903, allocations: 15.98 kB / 414 MB, free: 9.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002972/0.3906, allocations: 231.1 kB / 414.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3906, allocations: 0 / 414.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002941/0.3935, allocations: 0.8551 MB / 415.1 MB, free: 8.699 MB / 350.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.004317/0.3979, allocations: 0.9838 MB / 416.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.3995, allocations: 0.6613 MB / 416.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3996, allocations: 0 / 416.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006708/0.4002, allocations: 425.2 kB / 417.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.4013, allocations: 191.3 kB / 417.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002002/0.4034, allocations: 1.263 MB / 418.6 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.4038, allocations: 0.8805 MB / 419.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000382/0.4042, allocations: 143 kB / 419.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.716e-05/0.4043, allocations: 35.42 kB / 419.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4043, allocations: 0 / 419.7 MB, free: 4.059 MB / 350.1 MB Notification: Performance of Templates: time 0.05056/0.4549, allocations: 35.82 MB / 455.5 MB, free: 188 kB / 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)