Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.623/1.623, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.924e-05/1.925e-05, allocations: 4 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07128/0.07132, allocations: 38.76 MB / 261.3 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.478/6.549, allocations: 2.734 GB / 2.989 GB, free: 93.67 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03137/6.581, allocations: 10.64 MB / 3 GB, free: 84.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5575/7.138, allocations: 108.7 MB / 3.106 GB, free: 51.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.701e-06/7.138, allocations: 0 / 3.106 GB, free: 51.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.424e-05/7.138, allocations: 3.844 kB / 3.106 GB, free: 51.88 MB / 346.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.00437/7.143, allocations: 1.128 MB / 3.107 GB, free: 51.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/7.143, allocations: 7.906 kB / 3.107 GB, free: 51.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001758/7.144, allocations: 185.7 kB / 3.107 GB, free: 51.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/7.145, allocations: 270.5 kB / 3.107 GB, free: 51 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.195e-05/7.145, allocations: 7.75 kB / 3.107 GB, free: 51 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/7.145, allocations: 11.78 kB / 3.107 GB, free: 51 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007057/7.146, allocations: 354.8 kB / 3.108 GB, free: 51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005142/7.146, allocations: 278.9 kB / 3.108 GB, free: 50.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/7.146, allocations: 4.812 kB / 3.108 GB, free: 50.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/7.146, allocations: 1.5 kB / 3.108 GB, free: 50.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.342e-06/7.146, allocations: 7.031 kB / 3.108 GB, free: 50.93 MB / 346.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.001713/7.148, allocations: 1.299 MB / 3.109 GB, free: 50.03 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/7.148, allocations: 245.2 kB / 3.11 GB, free: 50.01 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002348/7.149, allocations: 139 kB / 3.11 GB, free: 50 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08274/7.231, allocations: 36.72 MB / 3.146 GB, free: 27.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/7.231, allocations: 34.5 kB / 3.146 GB, free: 27.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 4.056e-06/7.231, allocations: 0 / 3.146 GB, free: 27.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.00477/7.236, allocations: 0.7915 MB / 3.146 GB, free: 27.47 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/7.236, allocations: 55.16 kB / 3.146 GB, free: 27.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.658e-05/7.236, allocations: 114.3 kB / 3.146 GB, free: 27.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.129e-05/7.237, allocations: 29.89 kB / 3.147 GB, free: 27.28 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.582e-05/7.237, allocations: 185.3 kB / 3.147 GB, free: 27.11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/7.237, allocations: 110.3 kB / 3.147 GB, free: 27.04 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/7.237, allocations: 0 / 3.147 GB, free: 27.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.194e-05/7.237, allocations: 328.8 kB / 3.147 GB, free: 26.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005799/7.237, allocations: 305.1 kB / 3.147 GB, free: 26.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/7.238, allocations: 375.5 kB / 3.148 GB, free: 26.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002974/7.241, allocations: 416.7 kB / 3.148 GB, free: 26.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/7.241, allocations: 7.812 kB / 3.148 GB, free: 26.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004362/7.246, allocations: 0.8999 MB / 3.149 GB, free: 26.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/7.246, allocations: 7.625 kB / 3.149 GB, free: 26.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.64e-06/7.246, allocations: 0 / 3.149 GB, free: 26.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/7.246, allocations: 3.688 kB / 3.149 GB, free: 26.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/7.247, allocations: 187.2 kB / 3.149 GB, free: 26.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.723e-06/7.247, allocations: 11.09 kB / 3.149 GB, free: 26.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005017/7.247, allocations: 34.94 kB / 3.149 GB, free: 26.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/7.247, allocations: 66.81 kB / 3.149 GB, free: 26.57 MB / 346.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 () * 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.0002191/7.247, allocations: 112.1 kB / 3.149 GB, free: 26.46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/7.248, allocations: 15.56 kB / 3.149 GB, free: 26.45 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007502/7.255, allocations: 6.293 MB / 3.156 GB, free: 25.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.042e-05/7.255, allocations: 18.31 kB / 3.156 GB, free: 25.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.221e-06/7.255, allocations: 0 / 3.156 GB, free: 25.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/7.255, allocations: 0 / 3.156 GB, free: 25.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002573/7.258, allocations: 2.754 MB / 3.158 GB, free: 24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.778e-06/7.258, allocations: 4 kB / 3.158 GB, free: 24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009729/7.259, allocations: 128 kB / 3.158 GB, free: 23.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.575e-06/7.259, allocations: 2.875 kB / 3.158 GB, free: 23.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.941e-05/7.259, allocations: 17.7 kB / 3.158 GB, free: 23.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.371e-06/7.259, allocations: 3.969 kB / 3.158 GB, free: 23.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/7.259, allocations: 3.984 kB / 3.158 GB, free: 23.97 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/7.262, allocations: 1.508 MB / 3.16 GB, free: 23.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.144e-05/7.262, allocations: 123.7 kB / 3.16 GB, free: 23.08 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.918e-05/7.262, allocations: 0 / 3.16 GB, free: 23.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000525/7.263, allocations: 23.16 kB / 3.16 GB, free: 23.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/7.263, allocations: 41.58 kB / 3.16 GB, free: 23.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.849e-05/7.263, allocations: 20.17 kB / 3.16 GB, free: 23.06 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.281e-05/7.263, allocations: 94.44 kB / 3.16 GB, free: 22.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.68e-07/7.263, allocations: 0 / 3.16 GB, free: 22.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004049/7.267, allocations: 0.9838 MB / 3.161 GB, free: 22.78 MB / 346.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: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.region3boundary,$cse7.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.007044/7.274, allocations: 1.273 MB / 3.162 GB, free: 22.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001496/7.276, allocations: 0.7664 MB / 3.163 GB, free: 22.13 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.184e-06/7.276, allocations: 3.969 kB / 3.163 GB, free: 22.13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007372/7.277, allocations: 477.3 kB / 3.164 GB, free: 21.9 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/7.277, allocations: 75.28 kB / 3.164 GB, free: 21.89 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/7.279, allocations: 0.881 MB / 3.165 GB, free: 21.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/7.28, allocations: 0.8175 MB / 3.165 GB, free: 20.71 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000534/7.28, allocations: 110.4 kB / 3.165 GB, free: 20.68 MB / 346.7 MB Notification: Performance of SimCode: time 1.84e-06/7.28, allocations: 0 / 3.165 GB, free: 20.68 MB / 346.7 MB Notification: Performance of Templates: time 0.04127/7.321, allocations: 26.28 MB / 3.191 GB, free: 9.211 MB / 346.7 MB