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.008214/0.008214, allocations: 101.2 kB / 15.73 MB, free: 6.016 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.001842/0.001842, allocations: 203.1 kB / 16.68 MB, free: 5.934 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.531/1.531, allocations: 205.1 MB / 222.5 MB, free: 4.477 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.001177/0.001177, allocations: 50.52 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09574/0.09693, allocations: 46.63 MB / 373.2 MB, free: 1.262 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.03306/0.13, allocations: 32.57 MB / 405.8 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.1473, allocations: 15.73 MB / 421.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005221/0.1479, allocations: 4 kB / 421.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009333/0.1488, allocations: 266.4 kB / 421.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007229/0.1496, allocations: 358 kB / 422.1 MB, free: 176 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01644/0.166, allocations: 5.788 MB / 427.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001238/0.1673, allocations: 0.9933 MB / 428.9 MB, free: 9.363 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.1675, allocations: 116.9 kB / 429 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005051/0.1726, allocations: 2.196 MB / 431.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.173, allocations: 306.8 kB / 431.5 MB, free: 6.723 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.538e-05/0.1731, allocations: 40 kB / 431.6 MB, free: 6.684 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01178/0.1849, allocations: 6.076 MB / 437.6 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.1852, allocations: 103.7 kB / 437.7 MB, free: 0.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004037/0.1856, allocations: 227.2 kB / 438 MB, free: 284 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008097/0.1937, allocations: 3.785 MB / 441.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1937, allocations: 4 kB / 441.8 MB, free: 12.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1937, allocations: 0 / 441.8 MB, free: 12.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1937, allocations: 0 / 441.8 MB, free: 12.48 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.002391/0.1961, allocations: 1.002 MB / 442.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.1962, allocations: 8.031 kB / 442.8 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001266/0.1975, allocations: 156.3 kB / 442.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005389/0.198, allocations: 335.5 kB / 443.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.1981, allocations: 25.03 kB / 443.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.097e-05/0.1981, allocations: 36.38 kB / 443.3 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.1995, allocations: 0.5502 MB / 443.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.1996, allocations: 0 / 443.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.905e-05/0.1996, allocations: 12 kB / 443.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.1996, allocations: 8 kB / 443.9 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001459/0.2011, allocations: 0.5055 MB / 444.4 MB, free: 9.73 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.003019/0.2041, allocations: 2.6 MB / 447 MB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.2056, allocations: 451.3 kB / 447.4 MB, free: 6.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004074/0.206, allocations: 165.1 kB / 447.6 MB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007992/0.2068, allocations: 0.556 MB / 448.1 MB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.698e-05/0.2069, allocations: 34.56 kB / 448.2 MB, free: 5.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 1.763e-06/0.2069, allocations: 7.938 kB / 448.2 MB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.004755/0.2117, allocations: 1.5 MB / 449.7 MB, free: 3.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.2117, allocations: 59.39 kB / 449.7 MB, free: 3.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.212, allocations: 244.9 kB / 450 MB, free: 3.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.212, allocations: 33.7 kB / 450 MB, free: 3.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.2122, allocations: 180.2 kB / 450.2 MB, free: 3.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.123e-05/0.2123, allocations: 122.2 kB / 450.3 MB, free: 3.324 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.2124, allocations: 78.12 kB / 450.4 MB, free: 3.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.2125, allocations: 338.8 kB / 450.7 MB, free: 2.902 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.2129, allocations: 140.8 kB / 450.8 MB, free: 2.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004365/0.2134, allocations: 239.4 kB / 451.1 MB, free: 2.488 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008482/0.2142, allocations: 386.9 kB / 451.5 MB, free: 2.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2142, allocations: 4 kB / 451.5 MB, free: 2.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001213/0.2154, allocations: 0.5073 MB / 452 MB, free: 1.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2155, allocations: 8 kB / 452 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.2155, allocations: 3.938 kB / 452 MB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004898/0.216, allocations: 114.6 kB / 452.1 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.2163, allocations: 91.88 kB / 452.2 MB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.204/0.4204, allocations: 2.496 MB / 454.7 MB, free: 73.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.4209, allocations: 26.84 kB / 454.7 MB, free: 73.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.028e-05/0.421, allocations: 22.91 kB / 454.7 MB, free: 73.11 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.0002522/0.4212, allocations: 159.9 kB / 454.9 MB, free: 73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4213, allocations: 27.88 kB / 454.9 MB, free: 73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/0.4237, allocations: 1.322 MB / 456.2 MB, free: 72.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.224e-05/0.4238, allocations: 17.91 kB / 456.2 MB, free: 72.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.4238, allocations: 0 / 456.2 MB, free: 72.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001616/0.4254, allocations: 1.428 MB / 457.7 MB, free: 72.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002744/0.4282, allocations: 2.095 MB / 459.8 MB, free: 71.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.4282, allocations: 1.125 kB / 459.8 MB, free: 71.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004255/0.4286, allocations: 95.47 kB / 459.9 MB, free: 71.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000327/0.429, allocations: 79.7 kB / 459.9 MB, free: 71.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.429, allocations: 8.094 kB / 460 MB, free: 71.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000264/0.4293, allocations: 0.5906 MB / 460.5 MB, free: 70.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4293, allocations: 0.9375 kB / 460.5 MB, free: 70.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.4312, allocations: 1.277 MB / 461.8 MB, free: 70.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.4313, allocations: 128.9 kB / 461.9 MB, free: 69.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.057e-05/0.4314, allocations: 22.38 kB / 462 MB, free: 69.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/0.4317, allocations: 25.17 kB / 462 MB, free: 69.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/0.4318, allocations: 32.69 kB / 462 MB, free: 69.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.4319, allocations: 15.06 kB / 462 MB, free: 69.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.4321, allocations: 236 kB / 462.3 MB, free: 69.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4321, allocations: 1.219 kB / 462.3 MB, free: 69.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002959/0.4351, allocations: 0.8521 MB / 463.1 MB, free: 69.69 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.00397/0.4391, allocations: 0.974 MB / 464.1 MB, free: 69.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.4407, allocations: 0.6475 MB / 464.7 MB, free: 69.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4407, allocations: 1 kB / 464.7 MB, free: 69.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000743/0.4415, allocations: 417 kB / 465.2 MB, free: 69.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.4428, allocations: 195.9 kB / 465.3 MB, free: 69.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.4449, allocations: 1.273 MB / 466.6 MB, free: 68.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.4453, allocations: 0.8763 MB / 467.5 MB, free: 67.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000404/0.4457, allocations: 140.5 kB / 467.6 MB, free: 67.75 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.6e-05/0.4458, allocations: 33.73 kB / 467.7 MB, free: 67.74 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4458, allocations: 1.375 kB / 467.7 MB, free: 67.74 MB / 382.1 MB Notification: Performance of Templates: time 0.03894/0.4847, allocations: 35.83 MB / 0.4917 GB, free: 36.71 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)