Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.119/1.119, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003598, allocations: 8 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05619/0.05658, allocations: 25.17 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.766/4.823, allocations: 1.565 GB / 1.744 GB, free: 52.69 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03966/4.862, allocations: 12.57 MB / 1.757 GB, free: 46.45 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6689/5.531, allocations: 112.8 MB / 1.867 GB, free: 22.01 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.096e-06/5.531, allocations: 0 / 1.867 GB, free: 22.01 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.929e-05/5.531, allocations: 5.125 kB / 1.867 GB, free: 22.01 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.005808/5.537, allocations: 1.159 MB / 1.868 GB, free: 20.91 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/5.537, allocations: 8.031 kB / 1.868 GB, free: 20.9 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/5.537, allocations: 19.81 kB / 1.868 GB, free: 20.88 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/5.538, allocations: 233.4 kB / 1.868 GB, free: 20.66 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.533e-05/5.538, allocations: 15.19 kB / 1.868 GB, free: 20.65 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.674e-05/5.538, allocations: 27.33 kB / 1.868 GB, free: 20.63 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/5.539, allocations: 453.6 kB / 1.869 GB, free: 20.39 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/5.539, allocations: 4.75 kB / 1.869 GB, free: 20.38 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/5.539, allocations: 7.25 kB / 1.869 GB, free: 20.38 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/5.539, allocations: 8 kB / 1.869 GB, free: 20.38 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/5.541, allocations: 0.6451 MB / 1.869 GB, free: 20.04 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.002412/5.543, allocations: 1.538 MB / 1.871 GB, free: 18.71 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007551/5.544, allocations: 237.8 kB / 1.871 GB, free: 18.58 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4598/6.004, allocations: 68.81 MB / 1.938 GB, free: 19.09 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.759e-05/6.004, allocations: 41.16 kB / 1.938 GB, free: 19.05 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 4.779e-06/6.004, allocations: 4 kB / 1.938 GB, free: 19.04 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.003101/6.007, allocations: 0.5499 MB / 1.939 GB, free: 19.01 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/6.007, allocations: 55.16 kB / 1.939 GB, free: 18.95 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001501/6.007, allocations: 127.9 kB / 1.939 GB, free: 18.84 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.201e-05/6.007, allocations: 31.42 kB / 1.939 GB, free: 18.81 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/6.007, allocations: 184.5 kB / 1.939 GB, free: 18.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/6.008, allocations: 115 kB / 1.939 GB, free: 18.6 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.045e-05/6.008, allocations: 6.875 kB / 1.939 GB, free: 18.6 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.82e-05/6.008, allocations: 322.9 kB / 1.94 GB, free: 18.29 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006509/6.008, allocations: 138.7 kB / 1.94 GB, free: 18.28 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007237/6.009, allocations: 218.1 kB / 1.94 GB, free: 18.2 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006847/6.01, allocations: 163.8 kB / 1.94 GB, free: 18.2 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/6.01, allocations: 0 / 1.94 GB, free: 18.2 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001813/6.012, allocations: 431.9 kB / 1.941 GB, free: 18.14 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/6.012, allocations: 7.781 kB / 1.941 GB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/6.012, allocations: 0 / 1.941 GB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.598e-05/6.012, allocations: 3.906 kB / 1.941 GB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/6.013, allocations: 93.77 kB / 1.941 GB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.761e-05/6.013, allocations: 6.25 kB / 1.941 GB, free: 18.14 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/6.013, allocations: 36.34 kB / 1.941 GB, free: 18.13 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.396e-05/6.013, allocations: 20.75 kB / 1.941 GB, free: 18.13 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.0004139/6.014, allocations: 173.1 kB / 1.941 GB, free: 18 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/6.014, allocations: 11.62 kB / 1.941 GB, free: 18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002915/6.017, allocations: 0.8365 MB / 1.942 GB, free: 17.91 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-05/6.017, allocations: 7.359 kB / 1.942 GB, free: 17.91 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/6.017, allocations: 0 / 1.942 GB, free: 17.91 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/6.017, allocations: 5.391 kB / 1.942 GB, free: 17.91 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/6.018, allocations: 0.4919 MB / 1.942 GB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/6.018, allocations: 0 / 1.942 GB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007742/6.019, allocations: 80.61 kB / 1.942 GB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.809e-06/6.019, allocations: 3.906 kB / 1.942 GB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.227e-05/6.019, allocations: 7.562 kB / 1.942 GB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.265e-06/6.019, allocations: 7.812 kB / 1.942 GB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/6.019, allocations: 0 / 1.942 GB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/6.022, allocations: 0.8821 MB / 1.943 GB, free: 17.54 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.383e-05/6.022, allocations: 106.6 kB / 1.943 GB, free: 17.43 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.537e-05/6.022, allocations: 10.41 kB / 1.943 GB, free: 17.43 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/6.022, allocations: 17.91 kB / 1.943 GB, free: 17.43 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/6.023, allocations: 30.59 kB / 1.943 GB, free: 17.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.294e-05/6.023, allocations: 18.59 kB / 1.943 GB, free: 17.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.048e-05/6.023, allocations: 99.7 kB / 1.943 GB, free: 17.35 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.71e-07/6.023, allocations: 0 / 1.943 GB, free: 17.35 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0064/6.029, allocations: 1.116 MB / 1.944 GB, free: 17.35 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.01211/6.041, allocations: 1.454 MB / 1.946 GB, free: 17.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001905/6.043, allocations: 439.4 kB / 1.946 GB, free: 17.09 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/6.043, allocations: 0 / 1.946 GB, free: 17.09 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009304/6.044, allocations: 279.7 kB / 1.947 GB, free: 17.08 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001323/6.046, allocations: 83.25 kB / 1.947 GB, free: 17.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002412/6.048, allocations: 0.8794 MB / 1.948 GB, free: 16.61 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/6.048, allocations: 0.7701 MB / 1.948 GB, free: 15.9 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/6.049, allocations: 54.73 kB / 1.948 GB, free: 15.89 MB / 250.7 MB Notification: Performance of SimCode: time 1.533e-06/6.049, allocations: 0 / 1.948 GB, free: 15.89 MB / 250.7 MB Notification: Performance of Templates: time 0.04785/6.097, allocations: 23.23 MB / 1.971 GB, free: 12.91 MB / 250.7 MB