Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.916/1.916, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000478/0.000478, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09834, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.835/7.934, allocations: 2.845 GB / 3.146 GB, free: 18.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03119/7.965, allocations: 11 MB / 3.157 GB, free: 10.11 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.74/8.705, allocations: 113 MB / 3.267 GB, free: 67.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/8.705, allocations: 2.156 kB / 3.267 GB, free: 67.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.464e-05/8.705, allocations: 4 kB / 3.267 GB, free: 67.09 MB / 410.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.00517/8.71, allocations: 1.139 MB / 3.268 GB, free: 65.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/8.71, allocations: 12.03 kB / 3.268 GB, free: 65.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/8.712, allocations: 183.9 kB / 3.269 GB, free: 65.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/8.712, allocations: 259.7 kB / 3.269 GB, free: 65.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/8.712, allocations: 16.44 kB / 3.269 GB, free: 65.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.057e-05/8.713, allocations: 20 kB / 3.269 GB, free: 65.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004481/8.717, allocations: 0.8896 MB / 3.27 GB, free: 64.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/8.717, allocations: 0 / 3.27 GB, free: 64.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.486e-05/8.717, allocations: 12 kB / 3.27 GB, free: 64.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/8.717, allocations: 4 kB / 3.27 GB, free: 64.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004786/8.722, allocations: 0.9621 MB / 3.271 GB, free: 64.02 MB / 410.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.001925/8.724, allocations: 1.347 MB / 3.272 GB, free: 62.53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003789/8.728, allocations: 0.7058 MB / 3.273 GB, free: 61.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.112/8.84, allocations: 37.22 MB / 3.309 GB, free: 20.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/8.84, allocations: 34.84 kB / 3.309 GB, free: 20.11 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 2.315e-06/8.84, allocations: 4 kB / 3.309 GB, free: 20.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.007386/8.847, allocations: 1.334 MB / 3.31 GB, free: 18.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/8.847, allocations: 51.41 kB / 3.31 GB, free: 18.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/8.847, allocations: 121.9 kB / 3.311 GB, free: 18.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/8.847, allocations: 33.64 kB / 3.311 GB, free: 18.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/8.848, allocations: 183.2 kB / 3.311 GB, free: 18.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/8.848, allocations: 122.3 kB / 3.311 GB, free: 18.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.999e-05/8.848, allocations: 4 kB / 3.311 GB, free: 18.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.786e-05/8.848, allocations: 322.8 kB / 3.311 GB, free: 17.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009535/8.849, allocations: 331.8 kB / 3.312 GB, free: 17.58 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009106/8.85, allocations: 407.5 kB / 3.312 GB, free: 17.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008669/8.851, allocations: 339.8 kB / 3.312 GB, free: 16.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/8.851, allocations: 0 / 3.312 GB, free: 16.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002675/8.853, allocations: 0.8613 MB / 3.313 GB, free: 15.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/8.853, allocations: 4 kB / 3.313 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/8.853, allocations: 4 kB / 3.313 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/8.853, allocations: 7.953 kB / 3.313 GB, free: 15.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/8.855, allocations: 179.8 kB / 3.313 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/8.855, allocations: 4.25 kB / 3.313 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007705/8.855, allocations: 48.03 kB / 3.313 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/8.856, allocations: 59.94 kB / 3.313 GB, free: 15.66 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002781/8.856, allocations: 137.7 kB / 3.314 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/8.856, allocations: 15.89 kB / 3.314 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008823/8.865, allocations: 7.817 MB / 3.321 GB, free: 7.664 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.171e-05/8.865, allocations: 23.95 kB / 3.321 GB, free: 7.641 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/8.865, allocations: 3.953 kB / 3.321 GB, free: 7.637 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/8.865, allocations: 7.984 kB / 3.321 GB, free: 7.629 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003431/8.868, allocations: 3.502 MB / 3.325 GB, free: 3.875 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/8.868, allocations: 0 / 3.325 GB, free: 3.875 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/8.87, allocations: 115.8 kB / 3.325 GB, free: 3.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/8.87, allocations: 0 / 3.325 GB, free: 3.762 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.313e-05/8.87, allocations: 16 kB / 3.325 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/8.87, allocations: 7.984 kB / 3.325 GB, free: 3.738 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/8.87, allocations: 3.953 kB / 3.325 GB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003127/8.873, allocations: 1.838 MB / 3.327 GB, free: 1.879 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.044e-05/8.873, allocations: 148 kB / 3.327 GB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.752e-05/8.873, allocations: 8 kB / 3.327 GB, free: 1.707 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005821/8.874, allocations: 35.97 kB / 3.327 GB, free: 1.672 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/8.874, allocations: 27.95 kB / 3.327 GB, free: 1.645 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.807e-05/8.874, allocations: 23.94 kB / 3.327 GB, free: 1.621 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.971e-05/8.874, allocations: 95.2 kB / 3.327 GB, free: 1.527 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.8e-07/8.874, allocations: 0 / 3.327 GB, free: 1.527 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0046/8.878, allocations: 0.9873 MB / 3.328 GB, free: 0.5391 MB / 410.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: 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 (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.2586/9.137, allocations: 1.252 MB / 3.329 GB, free: 83.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002324/9.139, allocations: 0.894 MB / 3.33 GB, free: 83.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/9.14, allocations: 0 / 3.33 GB, free: 83.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/9.141, allocations: 0.5875 MB / 3.331 GB, free: 83.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008897/9.142, allocations: 74.47 kB / 3.331 GB, free: 83.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/9.144, allocations: 1.641 MB / 3.332 GB, free: 82.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/9.145, allocations: 0.8663 MB / 3.333 GB, free: 81.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005479/9.145, allocations: 89.64 kB / 3.333 GB, free: 81.85 MB / 410.7 MB Notification: Performance of SimCode: time 9.52e-07/9.145, allocations: 0 / 3.333 GB, free: 81.85 MB / 410.7 MB Notification: Performance of Templates: time 0.0524/9.198, allocations: 25.83 MB / 3.358 GB, free: 80.23 MB / 410.7 MB