Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.007213/0.007213, allocations: 101.3 kB / 15.73 MB, free: 6.047 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.001512/0.001512, allocations: 198.8 kB / 16.67 MB, free: 5.977 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.394/1.394, allocations: 205.1 MB / 222.5 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.002045/0.002045, allocations: 54.02 kB / 328.9 MB, free: 12.49 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1309, allocations: 46.62 MB / 375.5 MB, free: 14.96 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02626/0.1572, allocations: 13.33 MB / 388.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02704/0.1843, allocations: 15.54 MB / 404.4 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.1845, allocations: 8 kB / 404.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003514/0.1849, allocations: 79.48 kB / 404.4 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003902/0.1853, allocations: 111.2 kB / 404.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0186/0.2039, allocations: 5.951 MB / 410.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.2045, allocations: 338.6 kB / 410.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.238e-05/0.2046, allocations: 21.66 kB / 410.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006911/0.2053, allocations: 223 kB / 411.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.2056, allocations: 107.6 kB / 411.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.096e-05/0.2057, allocations: 16 kB / 411.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01287/0.2185, allocations: 6.751 MB / 417.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.238e-05/0.2186, allocations: 35.91 kB / 418 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.2188, allocations: 107.5 kB / 418.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007923/0.2267, allocations: 3.887 MB / 422 MB, free: 332 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2267, allocations: 7.984 kB / 422 MB, free: 324 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2268, allocations: 0 / 422 MB, free: 324 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.2268, allocations: 3.938 kB / 422 MB, free: 320 kB / 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.002604/0.2294, allocations: 0.9868 MB / 423 MB, free: 15.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2294, allocations: 8.031 kB / 423 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/0.2309, allocations: 176.6 kB / 423.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000361/0.2313, allocations: 256.1 kB / 423.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.2313, allocations: 16.81 kB / 423.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.294e-05/0.2314, allocations: 28.03 kB / 423.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003278/0.2347, allocations: 0.9128 MB / 424.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2347, allocations: 0 / 424.3 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.165e-05/0.2347, allocations: 12 kB / 424.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.2348, allocations: 8 kB / 424.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003344/0.2381, allocations: 0.9656 MB / 425.3 MB, free: 12.84 MB / 366.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.001719/0.2398, allocations: 1.335 MB / 426.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/0.2426, allocations: 0.7206 MB / 427.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.2429, allocations: 168.7 kB / 427.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2458/0.4888, allocations: 37.53 MB / 465.1 MB, free: 63.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.4888, allocations: 35.44 kB / 465.1 MB, free: 63.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 3.015e-06/0.4888, allocations: 0 / 465.1 MB, free: 63.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.005295/0.4941, allocations: 1.363 MB / 466.5 MB, free: 63.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.4942, allocations: 55.44 kB / 466.5 MB, free: 63.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.543e-05/0.4943, allocations: 121.5 kB / 466.7 MB, free: 63.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.954e-05/0.4943, allocations: 34.83 kB / 466.7 MB, free: 63.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.201e-05/0.4944, allocations: 115.5 kB / 466.8 MB, free: 62.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.4945, allocations: 115 kB / 466.9 MB, free: 62.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000245/0.4948, allocations: 166.4 kB / 467.1 MB, free: 62.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.083e-05/0.4948, allocations: 322.9 kB / 467.4 MB, free: 62.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005763/0.4954, allocations: 340.8 kB / 467.7 MB, free: 62.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006372/0.496, allocations: 406.2 kB / 468.1 MB, free: 62.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.4973, allocations: 0.7185 MB / 468.8 MB, free: 62.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4973, allocations: 1.562 kB / 468.8 MB, free: 62.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001673/0.4989, allocations: 0.8679 MB / 469.7 MB, free: 62.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.499, allocations: 7.562 kB / 469.7 MB, free: 62.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.499, allocations: 7 kB / 469.7 MB, free: 62.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.499, allocations: 2.75 kB / 469.7 MB, free: 62.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006602/0.4997, allocations: 176.3 kB / 469.9 MB, free: 62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.4997, allocations: 3.656 kB / 469.9 MB, free: 62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003478/0.5, allocations: 33.94 kB / 469.9 MB, free: 61.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.5002, allocations: 69.02 kB / 470 MB, free: 61.94 MB / 382.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.0001986/0.5004, allocations: 143.8 kB / 470.1 MB, free: 61.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.5005, allocations: 11.56 kB / 470.2 MB, free: 61.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005614/0.5061, allocations: 7.964 MB / 478.1 MB, free: 57.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/0.5062, allocations: 29.27 kB / 478.1 MB, free: 57.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.5062, allocations: 0 / 478.1 MB, free: 57.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5062, allocations: 6.047 kB / 478.2 MB, free: 57.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/0.5082, allocations: 3.599 MB / 481.8 MB, free: 53.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5082, allocations: 4 kB / 481.8 MB, free: 53.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006147/0.5088, allocations: 113.4 kB / 481.9 MB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.5088, allocations: 0 / 481.9 MB, free: 53.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.5089, allocations: 11.98 kB / 481.9 MB, free: 53.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.5089, allocations: 6.062 kB / 481.9 MB, free: 53.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.5089, allocations: 0 / 481.9 MB, free: 53.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.5107, allocations: 1.848 MB / 483.7 MB, free: 51.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.399e-05/0.5108, allocations: 138.5 kB / 483.9 MB, free: 51.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.5108, allocations: 8 kB / 483.9 MB, free: 51.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002772/0.5111, allocations: 8 kB / 483.9 MB, free: 51.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.48e-05/0.5112, allocations: 31.95 kB / 483.9 MB, free: 51.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.5113, allocations: 19.17 kB / 483.9 MB, free: 51.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.586e-05/0.5113, allocations: 91.27 kB / 484 MB, free: 51.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5113, allocations: 0 / 484 MB, free: 51.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002384/0.5137, allocations: 0.9896 MB / 485 MB, free: 50.6 MB / 382.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.003605/0.5173, allocations: 1.132 MB / 486.1 MB, free: 49.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001323/0.5187, allocations: 0.8955 MB / 487 MB, free: 48.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5187, allocations: 0 / 487 MB, free: 48.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005871/0.5193, allocations: 0.5951 MB / 487.6 MB, free: 48.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.5199, allocations: 86.09 kB / 487.7 MB, free: 48.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.5214, allocations: 1.303 MB / 489 MB, free: 46.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.5217, allocations: 0.8614 MB / 489.9 MB, free: 45.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001284/0.523, allocations: 1.783 MB / 491.7 MB, free: 44.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000315/0.5233, allocations: 91.34 kB / 491.8 MB, free: 44 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.5233, allocations: 0 / 491.8 MB, free: 44 MB / 382.1 MB Notification: Performance of Templates: time 0.03768/0.561, allocations: 40.84 MB / 0.5201 GB, free: 3.105 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)