Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_3.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.00144/0.001439, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001761/0.001761, allocations: 193.2 kB / 16.14 MB, free: 6.707 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.322/1.322, allocations: 205.1 MB / 222 MB, free: 4.781 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.001183/0.001183, allocations: 47.92 kB / 278 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2042, allocations: 46.63 MB / 324.7 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01773/0.222, allocations: 14.16 MB / 338.8 MB, free: 5.957 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01822/0.2402, allocations: 16.61 MB / 355.4 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.2404, allocations: 0 / 355.4 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003337/0.2408, allocations: 75.56 kB / 355.5 MB, free: 5.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002651/0.2411, allocations: 99.39 kB / 355.6 MB, free: 5.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0132/0.2543, allocations: 4.708 MB / 360.3 MB, free: 416 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004709/0.2548, allocations: 362.5 kB / 360.7 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.449e-05/0.2548, allocations: 17.62 kB / 360.7 MB, free: 32 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004553/0.2553, allocations: 207.2 kB / 360.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.2554, allocations: 103.6 kB / 361 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.2555, allocations: 11.94 kB / 361 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.2667, allocations: 6.68 MB / 367.7 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.2668, allocations: 39.83 kB / 367.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.267, allocations: 99.53 kB / 367.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008149/0.2751, allocations: 3.907 MB / 371.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2752, allocations: 0 / 371.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2752, allocations: 0 / 371.7 MB, free: 4.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2752, allocations: 0 / 371.7 MB, free: 4.977 MB / 302.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.002728/0.2779, allocations: 0.9869 MB / 372.7 MB, free: 3.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.278, allocations: 12.03 kB / 372.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.2794, allocations: 176.5 kB / 372.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002738/0.2797, allocations: 260 kB / 373.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.2797, allocations: 16.81 kB / 373.2 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.2798, allocations: 16.38 kB / 373.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0033/0.2831, allocations: 0.9128 MB / 374.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2831, allocations: 0 / 374.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.2832, allocations: 12 kB / 374.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.2832, allocations: 4 kB / 374.1 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003394/0.2866, allocations: 0.9772 MB / 375.1 MB, free: 1.5 MB / 302.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.001616/0.2882, allocations: 1.346 MB / 376.4 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002784/0.291, allocations: 0.7245 MB / 377.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.2913, allocations: 152.8 kB / 377.3 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0733/0.3646, allocations: 37.4 MB / 414.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.3647, allocations: 38.56 kB / 414.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.685e-06/0.3647, allocations: 0 / 414.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005585/0.3703, allocations: 1.364 MB / 416.1 MB, free: 3.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.3704, allocations: 55.41 kB / 416.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.3705, allocations: 121.8 kB / 416.3 MB, free: 3.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.268e-05/0.3706, allocations: 30.08 kB / 416.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.589e-05/0.3707, allocations: 112.7 kB / 416.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.3708, allocations: 114.4 kB / 416.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002827/0.3711, allocations: 169.5 kB / 416.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.3712, allocations: 330.8 kB / 417 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006202/0.3719, allocations: 343.6 kB / 417.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007114/0.3726, allocations: 407.2 kB / 417.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/0.3739, allocations: 0.7076 MB / 418.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3739, allocations: 7.938 kB / 418.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001871/0.3758, allocations: 0.868 MB / 419.3 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.3758, allocations: 8.25 kB / 419.3 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.547e-06/0.3759, allocations: 4 kB / 419.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.3759, allocations: 7.938 kB / 419.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007096/0.3766, allocations: 175.7 kB / 419.5 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.3766, allocations: 11.97 kB / 419.5 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004182/0.3771, allocations: 47.67 kB / 419.6 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.3772, allocations: 59.94 kB / 419.6 MB, free: 220 kB / 350.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.0002927/0.3775, allocations: 137.8 kB / 419.8 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001614/0.3776, allocations: 19.8 kB / 419.8 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007727/0.3854, allocations: 7.974 MB / 427.8 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-05/0.3854, allocations: 27.95 kB / 427.8 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.3855, allocations: 0 / 427.8 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.3855, allocations: 3.984 kB / 427.8 MB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002961/0.3884, allocations: 3.592 MB / 431.4 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.3885, allocations: 0 / 431.4 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007054/0.3892, allocations: 111.8 kB / 431.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.3892, allocations: 0 / 431.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.25e-05/0.3892, allocations: 15.92 kB / 431.5 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3893, allocations: 4 kB / 431.5 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3893, allocations: 3.984 kB / 431.5 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.3917, allocations: 1.831 MB / 433.4 MB, free: 2.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.3918, allocations: 148.1 kB / 433.5 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.3919, allocations: 11.92 kB / 433.5 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/0.3922, allocations: 20.06 kB / 433.5 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.3923, allocations: 39.83 kB / 433.6 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.3924, allocations: 15.98 kB / 433.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.903e-05/0.3925, allocations: 91.27 kB / 433.7 MB, free: 1.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3925, allocations: 3.938 kB / 433.7 MB, free: 1.848 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00269/0.3952, allocations: 0.976 MB / 434.7 MB, free: 0.8711 MB / 366.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.003976/0.3991, allocations: 1.128 MB / 435.8 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.4008, allocations: 0.904 MB / 436.7 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4008, allocations: 0 / 436.7 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008036/0.4016, allocations: 0.5869 MB / 437.3 MB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006631/0.4023, allocations: 87.97 kB / 437.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.4042, allocations: 1.555 MB / 438.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.4046, allocations: 0.8536 MB / 439.8 MB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001846/0.4065, allocations: 1.787 MB / 441.6 MB, free: 9.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004178/0.4069, allocations: 83.36 kB / 441.6 MB, free: 9.82 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4069, allocations: 0 / 441.6 MB, free: 9.82 MB / 382.1 MB Notification: Performance of Templates: time 0.1823/0.5893, allocations: 40.53 MB / 482.2 MB, free: 95.72 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (rm -f Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1)