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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.9464/0.9464, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.686e-05, allocations: 0 / 148.1 MB, free: 6.227 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04549/0.04552, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.562/3.607, allocations: 1.564 GB / 1.733 GB, free: 51.64 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03385/3.641, allocations: 12.35 MB / 1.745 GB, free: 47.4 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5002/4.141, allocations: 110.5 MB / 1.853 GB, free: 27.36 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.331e-06/4.141, allocations: 8 kB / 1.853 GB, free: 27.35 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.302e-05/4.141, allocations: 0 / 1.853 GB, free: 27.35 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.004353/4.146, allocations: 1.141 MB / 1.854 GB, free: 26.25 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/4.146, allocations: 12.03 kB / 1.854 GB, free: 26.23 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.79e-05/4.146, allocations: 23.72 kB / 1.854 GB, free: 26.21 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/4.146, allocations: 227.3 kB / 1.854 GB, free: 25.97 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/4.146, allocations: 12 kB / 1.854 GB, free: 25.96 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/4.146, allocations: 19.66 kB / 1.854 GB, free: 25.95 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000744/4.147, allocations: 0.5636 MB / 1.855 GB, free: 25.46 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/4.148, allocations: 361.9 kB / 1.855 GB, free: 25.13 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/4.148, allocations: 0 / 1.855 GB, free: 25.13 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/4.148, allocations: 0 / 1.855 GB, free: 25.13 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.904e-06/4.148, allocations: 8 kB / 1.855 GB, free: 25.12 MB / 234.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001761/4.149, allocations: 1.507 MB / 1.857 GB, free: 23.62 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/4.15, allocations: 178.8 kB / 1.857 GB, free: 23.44 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/4.15, allocations: 145.1 kB / 1.857 GB, free: 23.3 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.328/4.478, allocations: 69.07 MB / 1.925 GB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/4.478, allocations: 33.91 kB / 1.925 GB, free: 15.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 3.501e-06/4.478, allocations: 5.406 kB / 1.925 GB, free: 15.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.002786/4.481, allocations: 0.5084 MB / 1.925 GB, free: 15.62 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/4.481, allocations: 53.59 kB / 1.925 GB, free: 15.55 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/4.481, allocations: 107.8 kB / 1.925 GB, free: 15.46 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/4.481, allocations: 25.7 kB / 1.925 GB, free: 15.43 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/4.481, allocations: 187.9 kB / 1.926 GB, free: 15.27 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.426e-05/4.481, allocations: 107.1 kB / 1.926 GB, free: 15.22 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/4.481, allocations: 0 / 1.926 GB, free: 15.22 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/4.482, allocations: 328.5 kB / 1.926 GB, free: 14.9 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/4.482, allocations: 115.9 kB / 1.926 GB, free: 14.9 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/4.482, allocations: 184.9 kB / 1.926 GB, free: 14.82 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/4.484, allocations: 283 kB / 1.926 GB, free: 14.82 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.074e-06/4.484, allocations: 3.688 kB / 1.926 GB, free: 14.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002324/4.486, allocations: 0.4978 MB / 1.927 GB, free: 14.77 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/4.486, allocations: 7.031 kB / 1.927 GB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/4.486, allocations: 8.188 kB / 1.927 GB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/4.486, allocations: 5.656 kB / 1.927 GB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004011/4.487, allocations: 86.77 kB / 1.927 GB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.734e-06/4.487, allocations: 3.906 kB / 1.927 GB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/4.487, allocations: 35.28 kB / 1.927 GB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/4.487, allocations: 27.62 kB / 1.927 GB, free: 14.76 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" 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" 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 () * 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.0002358/4.487, allocations: 138.1 kB / 1.927 GB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.977e-05/4.487, allocations: 12.59 kB / 1.927 GB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/4.491, allocations: 0.9265 MB / 1.928 GB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/4.491, allocations: 9.375 kB / 1.928 GB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.615e-06/4.491, allocations: 4 kB / 1.928 GB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.748e-06/4.491, allocations: 0 / 1.928 GB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006652/4.491, allocations: 450.5 kB / 1.929 GB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.29e-06/4.491, allocations: 0 / 1.929 GB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003853/4.492, allocations: 75.42 kB / 1.929 GB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.23e-06/4.492, allocations: 7.203 kB / 1.929 GB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/4.492, allocations: 3.875 kB / 1.929 GB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.141e-06/4.492, allocations: 4.375 kB / 1.929 GB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.662e-06/4.492, allocations: 0 / 1.929 GB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/4.495, allocations: 0.9547 MB / 1.93 GB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.893e-05/4.495, allocations: 108 kB / 1.93 GB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.32e-05/4.495, allocations: 3.938 kB / 1.93 GB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/4.495, allocations: 15.34 kB / 1.93 GB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/4.495, allocations: 31.48 kB / 1.93 GB, free: 14.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/4.495, allocations: 18.11 kB / 1.93 GB, free: 14.1 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.243e-05/4.496, allocations: 89.34 kB / 1.93 GB, free: 14.03 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.18e-07/4.496, allocations: 3.406 kB / 1.93 GB, free: 14.03 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003866/4.499, allocations: 1.1 MB / 1.931 GB, free: 14.02 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 () * 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.007124/4.507, allocations: 1.482 MB / 1.932 GB, free: 13.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006814/4.507, allocations: 379.7 kB / 1.933 GB, free: 13.74 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.705e-06/4.507, allocations: 2.938 kB / 1.933 GB, free: 13.74 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003403/4.508, allocations: 256.9 kB / 1.933 GB, free: 13.73 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/4.508, allocations: 78.28 kB / 1.933 GB, free: 13.72 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/4.509, allocations: 0.5317 MB / 1.934 GB, free: 13.5 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004486/4.51, allocations: 0.7636 MB / 1.934 GB, free: 12.8 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/4.51, allocations: 51.75 kB / 1.934 GB, free: 12.79 MB / 250.7 MB Notification: Performance of SimCode: time 1.61e-06/4.51, allocations: 3.875 kB / 1.934 GB, free: 12.79 MB / 250.7 MB Notification: Performance of Templates: time 0.03904/4.549, allocations: 23.76 MB / 1.958 GB, free: 8.277 MB / 250.7 MB