Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.769/1.769, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.000372, allocations: 12 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08013/0.08052, allocations: 44.51 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.605/6.686, allocations: 2.845 GB / 3.146 GB, free: 130.9 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03031/6.716, allocations: 11.01 MB / 3.156 GB, free: 129.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3605/7.077, allocations: 113 MB / 3.267 GB, free: 21.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.794e-06/7.077, allocations: 0 / 3.267 GB, free: 21.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.4e-05/7.077, allocations: 4 kB / 3.267 GB, free: 21.04 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.004415/7.081, allocations: 1.146 MB / 3.268 GB, free: 19.84 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/7.081, allocations: 8.031 kB / 3.268 GB, free: 19.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001719/7.083, allocations: 179.6 kB / 3.268 GB, free: 19.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/7.083, allocations: 258.7 kB / 3.268 GB, free: 19.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.847e-05/7.083, allocations: 12.44 kB / 3.268 GB, free: 19.36 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.487e-05/7.084, allocations: 24 kB / 3.268 GB, free: 19.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003734/7.087, allocations: 0.8895 MB / 3.269 GB, free: 18.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/7.087, allocations: 0 / 3.269 GB, free: 18.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/7.087, allocations: 12 kB / 3.269 GB, free: 18.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.036e-06/7.087, allocations: 4 kB / 3.269 GB, free: 18.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003661/7.091, allocations: 0.9617 MB / 3.27 GB, free: 17.44 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.001598/7.093, allocations: 1.347 MB / 3.272 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002812/7.096, allocations: 0.7097 MB / 3.272 GB, free: 15.24 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3058/7.401, allocations: 37.22 MB / 3.309 GB, free: 57.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/7.401, allocations: 36.78 kB / 3.309 GB, free: 57.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.389e-06/7.401, allocations: 0 / 3.309 GB, free: 57.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.005734/7.407, allocations: 1.329 MB / 3.31 GB, free: 57.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/7.407, allocations: 56.81 kB / 3.31 GB, free: 57.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.871e-05/7.407, allocations: 113.2 kB / 3.31 GB, free: 57.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.056e-05/7.407, allocations: 34.83 kB / 3.31 GB, free: 57.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.553e-05/7.408, allocations: 183.8 kB / 3.31 GB, free: 57.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/7.408, allocations: 109.9 kB / 3.31 GB, free: 57.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.35e-05/7.408, allocations: 8.406 kB / 3.31 GB, free: 57.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.792e-05/7.408, allocations: 331.4 kB / 3.311 GB, free: 57.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007699/7.409, allocations: 335.1 kB / 3.311 GB, free: 57.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007779/7.409, allocations: 409.5 kB / 3.311 GB, free: 57.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000844/7.41, allocations: 330.2 kB / 3.312 GB, free: 57.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/7.41, allocations: 0 / 3.312 GB, free: 57.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002325/7.413, allocations: 0.8655 MB / 3.313 GB, free: 56.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/7.413, allocations: 7.469 kB / 3.313 GB, free: 56.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.15e-06/7.413, allocations: 0 / 3.313 GB, free: 56.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/7.413, allocations: 3.906 kB / 3.313 GB, free: 56.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008398/7.414, allocations: 182.2 kB / 3.313 GB, free: 56.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/7.414, allocations: 3.844 kB / 3.313 GB, free: 56.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/7.414, allocations: 48.62 kB / 3.313 GB, free: 56.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/7.414, allocations: 61.92 kB / 3.313 GB, free: 56.96 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.0002487/7.415, allocations: 139.9 kB / 3.313 GB, free: 56.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/7.415, allocations: 19.02 kB / 3.313 GB, free: 56.83 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008345/7.423, allocations: 7.812 MB / 3.321 GB, free: 56.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.408e-05/7.423, allocations: 28.73 kB / 3.321 GB, free: 56.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/7.423, allocations: 3.969 kB / 3.321 GB, free: 56.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.743e-06/7.423, allocations: 0 / 3.321 GB, free: 56.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003251/7.426, allocations: 3.506 MB / 3.324 GB, free: 55.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.498e-06/7.426, allocations: 0 / 3.324 GB, free: 55.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009573/7.427, allocations: 118.3 kB / 3.324 GB, free: 55.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.602e-06/7.427, allocations: 2.344 kB / 3.324 GB, free: 55.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/7.428, allocations: 12.3 kB / 3.324 GB, free: 55.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.44e-06/7.428, allocations: 11.09 kB / 3.324 GB, free: 55.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.788e-06/7.428, allocations: 0 / 3.324 GB, free: 55.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002916/7.43, allocations: 1.84 MB / 3.326 GB, free: 54.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.325e-05/7.431, allocations: 145 kB / 3.326 GB, free: 54.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.938e-05/7.431, allocations: 8.406 kB / 3.326 GB, free: 54.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/7.431, allocations: 25.59 kB / 3.326 GB, free: 54.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/7.431, allocations: 32.61 kB / 3.326 GB, free: 54.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.387e-05/7.431, allocations: 15.31 kB / 3.326 GB, free: 54.65 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.712e-05/7.431, allocations: 92.41 kB / 3.326 GB, free: 54.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.02e-07/7.431, allocations: 0 / 3.326 GB, free: 54.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003832/7.435, allocations: 0.9983 MB / 3.327 GB, free: 54.53 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.006899/7.442, allocations: 1.265 MB / 3.329 GB, free: 54.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001899/7.444, allocations: 0.8985 MB / 3.329 GB, free: 54.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.588e-06/7.444, allocations: 3.562 kB / 3.329 GB, free: 54.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000871/7.445, allocations: 0.587 MB / 3.33 GB, free: 53.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000706/7.446, allocations: 76.03 kB / 3.33 GB, free: 53.78 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/7.448, allocations: 1.63 MB / 3.332 GB, free: 52.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/7.448, allocations: 0.869 MB / 3.333 GB, free: 52.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004473/7.449, allocations: 84.75 kB / 3.333 GB, free: 52.15 MB / 410.7 MB Notification: Performance of SimCode: time 1.488e-06/7.449, allocations: 0 / 3.333 GB, free: 52.15 MB / 410.7 MB Notification: Performance of Templates: time 0.04122/7.49, allocations: 25.82 MB / 3.358 GB, free: 49.74 MB / 410.7 MB