Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.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.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006733/0.006733, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001325/0.001325, allocations: 198.4 kB / 16.68 MB, free: 5.926 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.546/1.546, 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.001331/0.001331, allocations: 50.45 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08654/0.08788, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01714/0.1051, allocations: 12.91 MB / 386.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01353/0.1186, allocations: 11.55 MB / 397.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.1188, allocations: 0 / 397.6 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003367/0.1192, allocations: 71.55 kB / 397.7 MB, free: 8.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003174/0.1195, allocations: 83.44 kB / 397.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0141/0.1336, allocations: 5.061 MB / 402.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003875/0.1341, allocations: 242.9 kB / 403.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.305e-05/0.1341, allocations: 17.38 kB / 403.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004454/0.1346, allocations: 191.3 kB / 403.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1347, allocations: 67.77 kB / 403.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.092e-05/0.1348, allocations: 11.94 kB / 403.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01227/0.147, allocations: 6.985 MB / 410.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.76e-05/0.1471, allocations: 35.72 kB / 410.4 MB, free: 12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1472, allocations: 67.73 kB / 410.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0074/0.1547, allocations: 3.86 MB / 414.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1547, allocations: 4 kB / 414.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1547, allocations: 4 kB / 414.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1547, allocations: 0 / 414.3 MB, free: 8.055 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.004577/0.1593, allocations: 1.139 MB / 415.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.1593, allocations: 8.031 kB / 415.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004827/0.1598, allocations: 56.7 kB / 415.5 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.1602, allocations: 220.2 kB / 415.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.1602, allocations: 12.38 kB / 415.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.946e-05/0.1603, allocations: 16.38 kB / 415.7 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.1616, allocations: 380 kB / 416.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1616, allocations: 4 kB / 416.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.207e-05/0.1616, allocations: 8 kB / 416.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.1617, allocations: 4 kB / 416.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.1631, allocations: 355.5 kB / 416.5 MB, free: 5.758 MB / 350.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.001393/0.1645, allocations: 1.184 MB / 417.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008408/0.1654, allocations: 275.8 kB / 417.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.1657, allocations: 118.9 kB / 418 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2868/0.4525, allocations: 47.64 MB / 465.7 MB, free: 64.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.4526, allocations: 48.31 kB / 465.7 MB, free: 64.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.986e-06/0.4526, allocations: 0 / 465.7 MB, free: 64.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.006785/0.4594, allocations: 1.564 MB / 467.3 MB, free: 64.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.4594, allocations: 114.6 kB / 467.4 MB, free: 64.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.069e-05/0.4595, allocations: 124.3 kB / 467.5 MB, free: 64.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.4596, allocations: 33.36 kB / 467.5 MB, free: 64.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.305e-05/0.4596, allocations: 100.7 kB / 467.6 MB, free: 63.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.661e-05/0.4597, allocations: 118.9 kB / 467.8 MB, free: 63.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.4598, allocations: 69.62 kB / 467.8 MB, free: 63.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.573e-05/0.4599, allocations: 332.2 kB / 468.2 MB, free: 63.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003901/0.4603, allocations: 134.5 kB / 468.3 MB, free: 63.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.4607, allocations: 204 kB / 468.5 MB, free: 63.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007897/0.4615, allocations: 347.5 kB / 468.8 MB, free: 63.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4615, allocations: 1.094 kB / 468.8 MB, free: 63.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001037/0.4626, allocations: 424.5 kB / 469.2 MB, free: 63.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.4626, allocations: 7 kB / 469.2 MB, free: 63.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.4626, allocations: 5.328 kB / 469.3 MB, free: 63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002491/0.4629, allocations: 43.47 kB / 469.3 MB, free: 62.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.4633, allocations: 89.28 kB / 469.4 MB, free: 62.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002699/0.4636, allocations: 0.5449 MB / 469.9 MB, free: 62.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.4639, allocations: 27.02 kB / 470 MB, free: 62.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.4639, allocations: 18.98 kB / 470 MB, free: 62.39 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 prepare postOptimizeDAE: time 0.0001144/0.4641, allocations: 143.3 kB / 470.1 MB, free: 62.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.4642, allocations: 16.06 kB / 470.1 MB, free: 62.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001979/0.4662, allocations: 1.44 MB / 471.6 MB, free: 61.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-05/0.4662, allocations: 19.47 kB / 471.6 MB, free: 61.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.4662, allocations: 5.312 kB / 471.6 MB, free: 61.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.4662, allocations: 5.797 kB / 471.6 MB, free: 61.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002583/0.4688, allocations: 1.973 MB / 473.6 MB, free: 60.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.4688, allocations: 0 / 473.6 MB, free: 60.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004079/0.4692, allocations: 82.92 kB / 473.7 MB, free: 60.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002668/0.4695, allocations: 71.67 kB / 473.7 MB, free: 60.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.4696, allocations: 11.86 kB / 473.7 MB, free: 60.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002253/0.4698, allocations: 0.5864 MB / 474.3 MB, free: 59.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.4698, allocations: 6.344 kB / 474.3 MB, free: 59.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.4716, allocations: 1.697 MB / 476 MB, free: 58.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.834e-05/0.4717, allocations: 131.2 kB / 476.2 MB, free: 58.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.247e-05/0.4717, allocations: 11.94 kB / 476.2 MB, free: 58.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.4721, allocations: 19.88 kB / 476.2 MB, free: 58.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.59e-05/0.4722, allocations: 42.73 kB / 476.2 MB, free: 58.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.4722, allocations: 22.14 kB / 476.2 MB, free: 58.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.179e-05/0.4722, allocations: 91.17 kB / 476.3 MB, free: 58.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4722, allocations: 0 / 476.3 MB, free: 58.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002977/0.4752, allocations: 0.9477 MB / 477.3 MB, free: 58.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.003614/0.4789, allocations: 1.14 MB / 478.4 MB, free: 57.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.48, allocations: 0.6165 MB / 479 MB, free: 56.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.4801, allocations: 0 / 479 MB, free: 56.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006278/0.4807, allocations: 0.5053 MB / 479.5 MB, free: 56.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007134/0.4814, allocations: 86.11 kB / 479.6 MB, free: 56.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.4833, allocations: 1.315 MB / 480.9 MB, free: 54.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.4835, allocations: 0.8139 MB / 481.8 MB, free: 54.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002911/0.4838, allocations: 135.2 kB / 481.9 MB, free: 53.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.484, allocations: 31.42 kB / 481.9 MB, free: 53.86 MB / 382.1 MB Notification: Performance of SimCode: time 6.22e-07/0.484, allocations: 0 / 481.9 MB, free: 53.86 MB / 382.1 MB Notification: Performance of Templates: time 0.035/0.519, allocations: 36.37 MB / 0.5061 GB, free: 17.47 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.sim & ./Modelica_3.2.1_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.WaterIF97.pipe 2>&1)