Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.978/1.978, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.0003462, allocations: 12 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09023/0.09061, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.763/8.853, allocations: 2.845 GB / 3.146 GB, free: 17.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03441/8.888, allocations: 11 MB / 3.157 GB, free: 8.715 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7612/9.649, allocations: 113 MB / 3.267 GB, free: 66.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.753e-06/9.649, allocations: 0 / 3.267 GB, free: 66.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.638e-05/9.649, allocations: 0 / 3.267 GB, free: 66.13 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.005762/9.655, allocations: 1.144 MB / 3.269 GB, free: 64.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/9.655, allocations: 16.03 kB / 3.269 GB, free: 64.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002011/9.657, allocations: 183.5 kB / 3.269 GB, free: 64.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/9.657, allocations: 258.8 kB / 3.269 GB, free: 64.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.251e-05/9.657, allocations: 16.44 kB / 3.269 GB, free: 64.44 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.41e-05/9.658, allocations: 20 kB / 3.269 GB, free: 64.42 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004704/9.662, allocations: 0.8856 MB / 3.27 GB, free: 63.51 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/9.662, allocations: 3.984 kB / 3.27 GB, free: 63.51 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.041e-05/9.662, allocations: 12 kB / 3.27 GB, free: 63.5 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/9.662, allocations: 4 kB / 3.27 GB, free: 63.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005025/9.667, allocations: 0.9617 MB / 3.271 GB, free: 62.53 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.002078/9.67, allocations: 1.343 MB / 3.272 GB, free: 61.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003963/9.674, allocations: 0.7019 MB / 3.273 GB, free: 60.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1139/9.788, allocations: 37.23 MB / 3.309 GB, free: 18.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/9.788, allocations: 30.84 kB / 3.309 GB, free: 18.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.346e-06/9.788, allocations: 0 / 3.309 GB, free: 18.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.008149/9.796, allocations: 1.329 MB / 3.311 GB, free: 17.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/9.796, allocations: 63.33 kB / 3.311 GB, free: 17.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/9.796, allocations: 117.9 kB / 3.311 GB, free: 17.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001187/9.796, allocations: 33.7 kB / 3.311 GB, free: 17.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/9.796, allocations: 112.8 kB / 3.311 GB, free: 16.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/9.796, allocations: 122.2 kB / 3.311 GB, free: 16.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.624e-05/9.797, allocations: 4 kB / 3.311 GB, free: 16.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.009e-05/9.797, allocations: 330.8 kB / 3.311 GB, free: 16.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/9.798, allocations: 327.8 kB / 3.312 GB, free: 16.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/9.799, allocations: 403.5 kB / 3.312 GB, free: 15.74 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009996/9.8, allocations: 335.8 kB / 3.312 GB, free: 15.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/9.8, allocations: 0 / 3.312 GB, free: 15.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002962/9.803, allocations: 0.8695 MB / 3.313 GB, free: 14.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/9.803, allocations: 4 kB / 3.313 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/9.803, allocations: 4 kB / 3.313 GB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.497e-05/9.803, allocations: 7.953 kB / 3.313 GB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/9.804, allocations: 175.7 kB / 3.313 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/9.804, allocations: 4.25 kB / 3.313 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000831/9.805, allocations: 51.66 kB / 3.313 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/9.805, allocations: 63.94 kB / 3.313 GB, free: 14.23 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.0003262/9.806, allocations: 133.8 kB / 3.314 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/9.806, allocations: 15.84 kB / 3.314 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009942/9.816, allocations: 7.81 MB / 3.321 GB, free: 6.254 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.199e-05/9.816, allocations: 27.95 kB / 3.321 GB, free: 6.227 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/9.816, allocations: 7.953 kB / 3.321 GB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/9.816, allocations: 11.97 kB / 3.321 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003755/9.82, allocations: 3.498 MB / 3.325 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/9.82, allocations: 0 / 3.325 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/9.821, allocations: 119.8 kB / 3.325 GB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/9.821, allocations: 4 kB / 3.325 GB, free: 2.336 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-05/9.821, allocations: 11.94 kB / 3.325 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.122e-06/9.821, allocations: 0 / 3.325 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/9.821, allocations: 3.953 kB / 3.325 GB, free: 2.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00347/9.825, allocations: 1.85 MB / 3.327 GB, free: 464 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/9.825, allocations: 148.1 kB / 3.327 GB, free: 296 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/9.825, allocations: 4 kB / 3.327 GB, free: 292 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005914/9.826, allocations: 24.05 kB / 3.327 GB, free: 268 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/9.826, allocations: 31.95 kB / 3.327 GB, free: 236 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.569e-05/9.826, allocations: 19.94 kB / 3.327 GB, free: 216 kB / 410.7 MB Notification: Performance of sorting global known variables: time 7.225e-05/9.826, allocations: 95.2 kB / 3.327 GB, free: 120 kB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/9.826, allocations: 0 / 3.327 GB, free: 120 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.287/10.11, allocations: 0.9947 MB / 3.328 GB, free: 83.47 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.009785/10.12, allocations: 1.247 MB / 3.329 GB, free: 83.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002748/10.13, allocations: 0.896 MB / 3.33 GB, free: 83.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/10.13, allocations: 0 / 3.33 GB, free: 83.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/10.13, allocations: 0.5889 MB / 3.331 GB, free: 83.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009013/10.13, allocations: 82.78 kB / 3.331 GB, free: 83.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/10.13, allocations: 1.602 MB / 3.332 GB, free: 82.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003763/10.13, allocations: 0.8684 MB / 3.333 GB, free: 82.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003246/10.13, allocations: 1.734 MB / 3.335 GB, free: 82.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006157/10.13, allocations: 88.38 kB / 3.335 GB, free: 82.03 MB / 410.7 MB Notification: Performance of SimCode: time 1.673e-06/10.13, allocations: 3.25 kB / 3.335 GB, free: 82.03 MB / 410.7 MB Notification: Performance of Templates: time 0.06677/10.2, allocations: 33.43 MB / 3.367 GB, free: 81.41 MB / 410.7 MB