Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_1_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 12 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08222/0.0826, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.157/8.24, allocations: 2.735 GB / 3.001 GB, free: 62.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03227/8.272, allocations: 10.82 MB / 3.011 GB, free: 54.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7556/9.028, allocations: 111.1 MB / 3.12 GB, free: 65.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.374e-06/9.028, allocations: 0 / 3.12 GB, free: 65.8 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.509e-05/9.028, allocations: 3.969 kB / 3.12 GB, free: 65.8 MB / 362.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.005746/9.034, allocations: 1.141 MB / 3.121 GB, free: 65.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.186e-05/9.034, allocations: 7.281 kB / 3.121 GB, free: 65.05 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/9.034, allocations: 59.44 kB / 3.121 GB, free: 65.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/9.036, allocations: 180.6 kB / 3.121 GB, free: 65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003963/9.036, allocations: 264.7 kB / 3.121 GB, free: 64.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/9.037, allocations: 14.66 kB / 3.121 GB, free: 64.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.338e-05/9.037, allocations: 27.62 kB / 3.121 GB, free: 64.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004648/9.041, allocations: 0.8814 MB / 3.122 GB, free: 64.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/9.041, allocations: 1.312 kB / 3.122 GB, free: 64.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.048e-05/9.041, allocations: 14.56 kB / 3.122 GB, free: 64.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/9.041, allocations: 7.875 kB / 3.122 GB, free: 64.71 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004993/9.046, allocations: 0.971 MB / 3.123 GB, free: 64.71 MB / 362.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.002261/9.049, allocations: 1.355 MB / 3.124 GB, free: 63.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003918/9.053, allocations: 0.7149 MB / 3.125 GB, free: 63.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1138/9.167, allocations: 36.58 MB / 3.161 GB, free: 38.06 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/9.167, allocations: 30.84 kB / 3.161 GB, free: 38.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.377e-06/9.167, allocations: 0 / 3.161 GB, free: 38.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.008039/9.175, allocations: 1.329 MB / 3.162 GB, free: 37.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/9.175, allocations: 55.41 kB / 3.162 GB, free: 37.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/9.175, allocations: 119.1 kB / 3.162 GB, free: 37.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/9.175, allocations: 38.77 kB / 3.162 GB, free: 37.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.637e-05/9.175, allocations: 110.8 kB / 3.163 GB, free: 37.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/9.175, allocations: 112.7 kB / 3.163 GB, free: 36.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/9.175, allocations: 7.812 kB / 3.163 GB, free: 36.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.45e-05/9.176, allocations: 325.3 kB / 3.163 GB, free: 36.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/9.177, allocations: 333.9 kB / 3.163 GB, free: 36.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/9.178, allocations: 410.4 kB / 3.164 GB, free: 36.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/9.179, allocations: 332.2 kB / 3.164 GB, free: 36.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/9.179, allocations: 0 / 3.164 GB, free: 36.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002873/9.182, allocations: 0.8704 MB / 3.165 GB, free: 35.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/9.182, allocations: 10.03 kB / 3.165 GB, free: 35.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/9.182, allocations: 0 / 3.165 GB, free: 35.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.838e-05/9.182, allocations: 7.656 kB / 3.165 GB, free: 35.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/9.183, allocations: 181 kB / 3.165 GB, free: 35.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.784e-05/9.183, allocations: 5.938 kB / 3.165 GB, free: 35.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007875/9.184, allocations: 43.53 kB / 3.165 GB, free: 35.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001752/9.184, allocations: 68.48 kB / 3.165 GB, free: 35.04 MB / 362.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.0003354/9.184, allocations: 139.1 kB / 3.165 GB, free: 34.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/9.185, allocations: 15.81 kB / 3.165 GB, free: 34.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/9.195, allocations: 7.589 MB / 3.173 GB, free: 28.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-05/9.195, allocations: 23.3 kB / 3.173 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/9.195, allocations: 0 / 3.173 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/9.195, allocations: 0 / 3.173 GB, free: 28.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003769/9.199, allocations: 3.435 MB / 3.176 GB, free: 24.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/9.199, allocations: 0 / 3.176 GB, free: 24.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/9.2, allocations: 111.6 kB / 3.176 GB, free: 24.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.243e-05/9.2, allocations: 8 kB / 3.176 GB, free: 24.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-05/9.2, allocations: 11.89 kB / 3.176 GB, free: 24.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.513e-06/9.2, allocations: 0 / 3.176 GB, free: 24.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/9.2, allocations: 0 / 3.176 GB, free: 24.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00322/9.203, allocations: 1.595 MB / 3.178 GB, free: 23.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/9.204, allocations: 131.9 kB / 3.178 GB, free: 23.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.142e-05/9.204, allocations: 11.25 kB / 3.178 GB, free: 23.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005935/9.204, allocations: 31.5 kB / 3.178 GB, free: 23 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/9.204, allocations: 23.77 kB / 3.178 GB, free: 22.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.274e-05/9.205, allocations: 19.95 kB / 3.178 GB, free: 22.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.097e-05/9.205, allocations: 95.11 kB / 3.178 GB, free: 22.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/9.205, allocations: 0 / 3.178 GB, free: 22.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005066/9.21, allocations: 0.9862 MB / 3.179 GB, free: 21.92 MB / 362.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: 11 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01296/9.223, allocations: 3.302 MB / 3.182 GB, free: 18.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002356/9.225, allocations: 0.8262 MB / 3.183 GB, free: 18.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/9.225, allocations: 4 kB / 3.183 GB, free: 18.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/9.226, allocations: 0.5058 MB / 3.184 GB, free: 17.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009187/9.227, allocations: 78.89 kB / 3.184 GB, free: 17.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009639/9.237, allocations: 4.307 MB / 3.188 GB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/9.237, allocations: 0.8345 MB / 3.189 GB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002834/9.24, allocations: 1.739 MB / 3.19 GB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007663/9.241, allocations: 197 kB / 3.191 GB, free: 11.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/9.241, allocations: 0 / 3.191 GB, free: 11.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3971/9.638, allocations: 35.02 MB / 3.225 GB, free: 52.46 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002333/9.638, allocations: 191 kB / 3.225 GB, free: 52.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.055/13.69, allocations: 0 / 3.225 GB, free: 52.21 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat