Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.011/1.011, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002711, allocations: 4 kB / 158.3 MB, free: 15.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04685/0.04715, allocations: 25.17 MB / 183.5 MB, free: 5.961 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.893/3.94, allocations: 1.565 GB / 1.744 GB, free: 42.06 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03455/3.974, allocations: 12.56 MB / 1.756 GB, free: 41.21 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5554/4.53, allocations: 112.8 MB / 1.866 GB, free: 25.03 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.378e-06/4.53, allocations: 0 / 1.866 GB, free: 25.03 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.508e-05/4.53, allocations: 7.719 kB / 1.866 GB, free: 25.02 MB / 234.7 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.004303/4.534, allocations: 1.158 MB / 1.867 GB, free: 24.27 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/4.534, allocations: 9.125 kB / 1.867 GB, free: 24.27 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.971e-05/4.534, allocations: 22.56 kB / 1.867 GB, free: 24.27 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/4.535, allocations: 231.7 kB / 1.868 GB, free: 24.06 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/4.535, allocations: 15.53 kB / 1.868 GB, free: 24.06 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.773e-05/4.535, allocations: 31.78 kB / 1.868 GB, free: 24.06 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009174/4.536, allocations: 449 kB / 1.868 GB, free: 23.99 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/4.536, allocations: 3.969 kB / 1.868 GB, free: 23.99 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/4.536, allocations: 7.562 kB / 1.868 GB, free: 23.99 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.674e-06/4.536, allocations: 7.656 kB / 1.868 GB, free: 23.99 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/4.537, allocations: 0.6439 MB / 1.869 GB, free: 23.98 MB / 234.7 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.001875/4.539, allocations: 1.54 MB / 1.87 GB, free: 22.89 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/4.54, allocations: 235.4 kB / 1.871 GB, free: 22.87 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2961/4.836, allocations: 68.8 MB / 1.938 GB, free: 24.45 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/4.836, allocations: 45.2 kB / 1.938 GB, free: 24.41 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 3.504e-06/4.836, allocations: 0 / 1.938 GB, free: 24.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.001823/4.838, allocations: 0.5571 MB / 1.938 GB, free: 24.38 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/4.838, allocations: 55.41 kB / 1.938 GB, free: 24.31 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/4.838, allocations: 107.7 kB / 1.938 GB, free: 24.22 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.509e-05/4.838, allocations: 31.48 kB / 1.938 GB, free: 24.19 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.016e-05/4.838, allocations: 185.1 kB / 1.939 GB, free: 24.04 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.209e-05/4.838, allocations: 118.8 kB / 1.939 GB, free: 23.98 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/4.838, allocations: 9.5 kB / 1.939 GB, free: 23.98 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.192e-05/4.838, allocations: 328.6 kB / 1.939 GB, free: 23.66 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/4.839, allocations: 147.2 kB / 1.939 GB, free: 23.66 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/4.839, allocations: 211.6 kB / 1.939 GB, free: 23.59 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/4.839, allocations: 156.1 kB / 1.94 GB, free: 23.58 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.734e-06/4.839, allocations: 3.875 kB / 1.94 GB, free: 23.58 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001069/4.84, allocations: 431.9 kB / 1.94 GB, free: 23.54 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/4.84, allocations: 6.469 kB / 1.94 GB, free: 23.54 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/4.84, allocations: 3.719 kB / 1.94 GB, free: 23.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/4.84, allocations: 6.453 kB / 1.94 GB, free: 23.54 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/4.841, allocations: 84.36 kB / 1.94 GB, free: 23.54 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/4.841, allocations: 6.562 kB / 1.94 GB, free: 23.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/4.841, allocations: 44.64 kB / 1.94 GB, free: 23.53 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.073e-05/4.841, allocations: 23.94 kB / 1.94 GB, free: 23.53 MB / 250.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 800000.0 unit = "J/kg" fixed = true nominal = 1000000.0 ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 2000.0))))) max = min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, min(100000000.0, 1000000000.0))))) start = 700.0 unit = "Pa" fixed = true nominal = 100000.0 ) "Absolute pressure of medium" type: Real 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000267/4.842, allocations: 170.9 kB / 1.94 GB, free: 23.4 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.008e-05/4.842, allocations: 14.31 kB / 1.94 GB, free: 23.39 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/4.843, allocations: 0.834 MB / 1.941 GB, free: 23.32 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/4.843, allocations: 14.58 kB / 1.941 GB, free: 23.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/4.843, allocations: 0 / 1.941 GB, free: 23.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.142e-06/4.843, allocations: 0 / 1.941 GB, free: 23.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007052/4.844, allocations: 497.8 kB / 1.942 GB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.952e-06/4.844, allocations: 0 / 1.942 GB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000399/4.845, allocations: 79.86 kB / 1.942 GB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.932e-06/4.845, allocations: 4.438 kB / 1.942 GB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/4.845, allocations: 16.55 kB / 1.942 GB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.312e-06/4.845, allocations: 0 / 1.942 GB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.663e-06/4.845, allocations: 0.8906 kB / 1.942 GB, free: 23.12 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/4.846, allocations: 0.8754 MB / 1.943 GB, free: 22.95 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.24e-05/4.846, allocations: 109 kB / 1.943 GB, free: 22.84 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.1e-05/4.846, allocations: 9.922 kB / 1.943 GB, free: 22.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002681/4.847, allocations: 24.2 kB / 1.943 GB, free: 22.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.005e-05/4.847, allocations: 35 kB / 1.943 GB, free: 22.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.994e-05/4.847, allocations: 13.72 kB / 1.943 GB, free: 22.84 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.962e-05/4.847, allocations: 92.38 kB / 1.943 GB, free: 22.77 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.99e-07/4.847, allocations: 3.906 kB / 1.943 GB, free: 22.77 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004372/4.851, allocations: 1.118 MB / 1.944 GB, free: 22.74 MB / 250.7 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: 3 ($cse5.region3boundary,$cse6.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007781/4.859, allocations: 1.452 MB / 1.945 GB, free: 22.52 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/4.86, allocations: 440.5 kB / 1.946 GB, free: 22.52 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.601e-06/4.86, allocations: 0 / 1.946 GB, free: 22.52 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004897/4.861, allocations: 280.2 kB / 1.946 GB, free: 22.51 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/4.861, allocations: 84.19 kB / 1.946 GB, free: 22.5 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/4.863, allocations: 0.8737 MB / 1.947 GB, free: 22.12 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/4.863, allocations: 0.768 MB / 1.948 GB, free: 21.41 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/4.863, allocations: 53.69 kB / 1.948 GB, free: 21.41 MB / 250.7 MB Notification: Performance of SimCode: time 1.653e-06/4.863, allocations: 0 / 1.948 GB, free: 21.41 MB / 250.7 MB Notification: Performance of Templates: time 0.03843/4.902, allocations: 23.23 MB / 1.97 GB, free: 18.84 MB / 250.7 MB