Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.001095/0.001095, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.338/1.338, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001172/0.001172, allocations: 56.34 kB / 330.2 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0929/0.09408, allocations: 46.62 MB / 376.8 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.207/0.3011, allocations: 13.33 MB / 390.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01649/0.3177, allocations: 15.55 MB / 405.7 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002441/0.3179, allocations: 5.188 kB / 405.7 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003497/0.3184, allocations: 78.75 kB / 405.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003571/0.3187, allocations: 107.1 kB / 405.9 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01859/0.3373, allocations: 5.958 MB / 411.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006135/0.3379, allocations: 341.3 kB / 412.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.354e-05/0.338, allocations: 13.38 kB / 412.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004984/0.3385, allocations: 226.9 kB / 412.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001765/0.3387, allocations: 104.4 kB / 412.5 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.093e-05/0.3388, allocations: 17.16 kB / 412.5 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01653/0.3553, allocations: 6.74 MB / 419.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.3555, allocations: 45.45 kB / 419.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.3557, allocations: 101 kB / 419.4 MB, free: 2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01034/0.366, allocations: 3.898 MB / 423.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.3661, allocations: 4 kB / 423.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3661, allocations: 4 kB / 423.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.3661, allocations: 0 / 423.3 MB, free: 14.92 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002842/0.369, allocations: 0.9836 MB / 424.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.369, allocations: 8.031 kB / 424.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001426/0.3704, allocations: 172.6 kB / 424.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003571/0.3708, allocations: 256.1 kB / 424.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.3709, allocations: 16.81 kB / 424.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.346e-05/0.3709, allocations: 32.03 kB / 424.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003193/0.3741, allocations: 0.9011 MB / 425.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3742, allocations: 11.94 kB / 425.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.738e-05/0.3742, allocations: 5.078 kB / 425.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.3742, allocations: 8 kB / 425.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00329/0.3775, allocations: 0.9665 MB / 426.6 MB, free: 11.46 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.001602/0.3792, allocations: 1.35 MB / 428 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/0.3818, allocations: 0.7303 MB / 428.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002795/0.3821, allocations: 152.8 kB / 428.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08069/0.4628, allocations: 37.54 MB / 466.4 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.4629, allocations: 38.56 kB / 466.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.4629, allocations: 0 / 466.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005226/0.4681, allocations: 1.365 MB / 467.8 MB, free: 13.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.4682, allocations: 59.41 kB / 467.9 MB, free: 13.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.4683, allocations: 121.8 kB / 468 MB, free: 13.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.275e-05/0.4684, allocations: 29.7 kB / 468 MB, free: 13.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.641e-05/0.4685, allocations: 112.7 kB / 468.1 MB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.4686, allocations: 118.4 kB / 468.2 MB, free: 13.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002641/0.4689, allocations: 157.6 kB / 468.4 MB, free: 13.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.469, allocations: 322.8 kB / 468.7 MB, free: 12.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006426/0.4696, allocations: 343.8 kB / 469.1 MB, free: 12.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007092/0.4704, allocations: 411.2 kB / 469.5 MB, free: 11.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.4717, allocations: 0.7015 MB / 470.2 MB, free: 11.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.4717, allocations: 4 kB / 470.2 MB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001835/0.4736, allocations: 0.8721 MB / 471 MB, free: 10.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.4736, allocations: 4 kB / 471 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4736, allocations: 7.938 kB / 471 MB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.4736, allocations: 9.844 kB / 471.1 MB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006455/0.4743, allocations: 180.1 kB / 471.2 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.4743, allocations: 4 kB / 471.2 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.4746, allocations: 35.62 kB / 471.3 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.4748, allocations: 67.92 kB / 471.3 MB, free: 10.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002471/0.475, allocations: 137.7 kB / 471.5 MB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.4752, allocations: 15.81 kB / 471.5 MB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007704/0.4829, allocations: 7.977 MB / 479.5 MB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.671e-05/0.483, allocations: 27.95 kB / 479.5 MB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.483, allocations: 0 / 479.5 MB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.483, allocations: 3.984 kB / 479.5 MB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/0.4862, allocations: 3.588 MB / 483.1 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.4863, allocations: 0 / 483.1 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006253/0.4869, allocations: 115.8 kB / 483.2 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.4869, allocations: 0 / 483.2 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.747e-05/0.487, allocations: 15.94 kB / 483.2 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.487, allocations: 4 kB / 483.2 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.487, allocations: 3.984 kB / 483.2 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.4896, allocations: 1.831 MB / 485 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.4898, allocations: 144.1 kB / 485.2 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.4898, allocations: 19.81 kB / 485.2 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002831/0.4901, allocations: 13.06 kB / 485.2 MB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.4903, allocations: 35.89 kB / 485.3 MB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.4903, allocations: 19.98 kB / 485.3 MB, free: 11.77 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.252e-05/0.4904, allocations: 87.28 kB / 485.4 MB, free: 11.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4904, allocations: 0 / 485.4 MB, free: 11.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003428/0.4938, allocations: 0.976 MB / 486.3 MB, free: 10.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004184/0.498, allocations: 1.123 MB / 487.5 MB, free: 9.578 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.4997, allocations: 0.9036 MB / 488.4 MB, free: 8.676 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4997, allocations: 0 / 488.4 MB, free: 8.676 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007477/0.5004, allocations: 0.5946 MB / 489 MB, free: 8.082 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006661/0.5011, allocations: 78.41 kB / 489 MB, free: 8.008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.503, allocations: 1.309 MB / 490.3 MB, free: 6.672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.5034, allocations: 0.8575 MB / 491.2 MB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001787/0.5051, allocations: 1.783 MB / 493 MB, free: 4.004 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000312/0.5055, allocations: 91.34 kB / 493.1 MB, free: 3.918 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.5055, allocations: 0 / 493.1 MB, free: 3.918 MB / 414.1 MB Notification: Performance of Templates: time 0.05371/0.5592, allocations: 40.83 MB / 0.5214 GB, free: 10.98 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)