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.007/1.007, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.542e-05/2.559e-05, allocations: 4 kB / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 25.15 MB / 179.4 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.552/3.693, allocations: 1.565 GB / 1.74 GB, free: 21.64 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0318/3.725, allocations: 12.47 MB / 1.752 GB, free: 11.98 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7593/4.485, allocations: 112.7 MB / 1.862 GB, free: 35.87 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.727e-06/4.485, allocations: 0 / 1.862 GB, free: 35.87 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.487e-05/4.485, allocations: 3.844 kB / 1.862 GB, free: 35.87 MB / 250.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.004024/4.489, allocations: 1.144 MB / 1.863 GB, free: 35.25 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/4.489, allocations: 14.91 kB / 1.863 GB, free: 35.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.124e-05/4.489, allocations: 22.41 kB / 1.863 GB, free: 35.24 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/4.489, allocations: 237.8 kB / 1.863 GB, free: 35.04 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.737e-05/4.489, allocations: 20 kB / 1.863 GB, free: 35.04 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.296e-05/4.489, allocations: 22.86 kB / 1.863 GB, free: 35.04 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000876/4.49, allocations: 441.6 kB / 1.864 GB, free: 34.97 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/4.49, allocations: 5.281 kB / 1.864 GB, free: 34.97 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/4.49, allocations: 11.53 kB / 1.864 GB, free: 34.97 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.797e-06/4.49, allocations: 3.938 kB / 1.864 GB, free: 34.97 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009832/4.491, allocations: 0.6189 MB / 1.864 GB, free: 34.97 MB / 250.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.001744/4.493, allocations: 1.543 MB / 1.866 GB, free: 33.89 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004865/4.493, allocations: 221 kB / 1.866 GB, free: 33.86 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002417/4.494, allocations: 159.1 kB / 1.866 GB, free: 33.86 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1475/4.641, allocations: 69.06 MB / 1.934 GB, free: 23.28 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.904e-05/4.641, allocations: 48 kB / 1.934 GB, free: 23.23 MB / 282.7 MB Notification: Performance of pre-optimization done (n=33): time 4.466e-06/4.641, allocations: 3.703 kB / 1.934 GB, free: 23.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.001223/4.643, allocations: 403.8 kB / 1.934 GB, free: 23.19 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/4.643, allocations: 57.62 kB / 1.934 GB, free: 23.13 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001209/4.643, allocations: 113.1 kB / 1.934 GB, free: 23.04 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/4.643, allocations: 32.27 kB / 1.934 GB, free: 23.01 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/4.643, allocations: 184.8 kB / 1.935 GB, free: 22.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.987e-05/4.643, allocations: 111.5 kB / 1.935 GB, free: 22.76 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.283e-05/4.643, allocations: 12.3 kB / 1.935 GB, free: 22.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/4.643, allocations: 332.6 kB / 1.935 GB, free: 22.45 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/4.643, allocations: 113.4 kB / 1.935 GB, free: 22.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002738/4.644, allocations: 190.3 kB / 1.935 GB, free: 22.37 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/4.644, allocations: 148.5 kB / 1.935 GB, free: 22.36 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/4.644, allocations: 0 / 1.935 GB, free: 22.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007797/4.645, allocations: 389.4 kB / 1.936 GB, free: 22.31 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/4.645, allocations: 9.25 kB / 1.936 GB, free: 22.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.39e-06/4.645, allocations: 0 / 1.936 GB, free: 22.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/4.645, allocations: 3.969 kB / 1.936 GB, free: 22.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/4.645, allocations: 90.28 kB / 1.936 GB, free: 22.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/4.645, allocations: 3.938 kB / 1.936 GB, free: 22.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/4.646, allocations: 44.75 kB / 1.936 GB, free: 22.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/4.646, allocations: 20.23 kB / 1.936 GB, free: 22.29 MB / 282.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.0002336/4.646, allocations: 153.9 kB / 1.936 GB, free: 22.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.079e-05/4.646, allocations: 15.62 kB / 1.936 GB, free: 22.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/4.647, allocations: 0.7916 MB / 1.937 GB, free: 22.06 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/4.647, allocations: 7.828 kB / 1.937 GB, free: 22.06 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.074e-06/4.647, allocations: 3.391 kB / 1.937 GB, free: 22.06 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/4.647, allocations: 0 / 1.937 GB, free: 22.06 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006733/4.648, allocations: 0.4987 MB / 1.937 GB, free: 21.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.222e-06/4.648, allocations: 0 / 1.937 GB, free: 21.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/4.648, allocations: 81.28 kB / 1.937 GB, free: 21.72 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.635e-06/4.648, allocations: 0 / 1.937 GB, free: 21.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/4.649, allocations: 19.3 kB / 1.937 GB, free: 21.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.145e-06/4.649, allocations: 0 / 1.937 GB, free: 21.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.403e-06/4.649, allocations: 3.625 kB / 1.937 GB, free: 21.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/4.65, allocations: 0.8298 MB / 1.938 GB, free: 21.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.6e-05/4.65, allocations: 103.2 kB / 1.938 GB, free: 21.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.485e-05/4.65, allocations: 11.69 kB / 1.938 GB, free: 21.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/4.65, allocations: 20.23 kB / 1.938 GB, free: 21.15 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.768e-05/4.65, allocations: 33.03 kB / 1.938 GB, free: 21.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.086e-05/4.65, allocations: 15.72 kB / 1.938 GB, free: 21.14 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.162e-05/4.65, allocations: 87.19 kB / 1.939 GB, free: 21.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.23e-07/4.65, allocations: 0 / 1.939 GB, free: 21.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00381/4.654, allocations: 1.118 MB / 1.94 GB, free: 20.81 MB / 282.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.007266/4.662, allocations: 1.455 MB / 1.941 GB, free: 20.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007865/4.662, allocations: 403.1 kB / 1.941 GB, free: 20.29 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.452e-06/4.662, allocations: 2.188 kB / 1.941 GB, free: 20.29 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003687/4.663, allocations: 260.5 kB / 1.942 GB, free: 20.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006204/4.663, allocations: 89.47 kB / 1.942 GB, free: 20.15 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/4.665, allocations: 0.5463 MB / 1.942 GB, free: 19.83 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004407/4.665, allocations: 0.767 MB / 1.943 GB, free: 19.13 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000161/4.665, allocations: 51.98 kB / 1.943 GB, free: 19.12 MB / 282.7 MB Notification: Performance of SimCode: time 2.536e-06/4.665, allocations: 0 / 1.943 GB, free: 19.12 MB / 282.7 MB Notification: Performance of Templates: time 0.03828/4.704, allocations: 23 MB / 1.966 GB, free: 7.531 MB / 282.7 MB