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: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003503, allocations: 8 kB / 264.1 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3259, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.62/8.946, allocations: 2.845 GB / 3.146 GB, free: 41.65 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03469/8.981, allocations: 11 MB / 3.157 GB, free: 33.15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8195/9.8, allocations: 113 MB / 3.267 GB, free: 83.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/9.8, allocations: 0 / 3.267 GB, free: 83.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.432e-05/9.8, allocations: 4 kB / 3.267 GB, free: 83.91 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.005684/9.806, allocations: 1.153 MB / 3.268 GB, free: 82.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/9.806, allocations: 8.031 kB / 3.268 GB, free: 82.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.059e-05/9.806, allocations: 54.45 kB / 3.268 GB, free: 82.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001905/9.808, allocations: 180.9 kB / 3.268 GB, free: 82.58 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003678/9.808, allocations: 248.3 kB / 3.269 GB, free: 82.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.671e-05/9.809, allocations: 24.44 kB / 3.269 GB, free: 82.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.389e-05/9.809, allocations: 25.62 kB / 3.269 GB, free: 82.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00477/9.813, allocations: 0.8794 MB / 3.269 GB, free: 81.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/9.813, allocations: 7.797 kB / 3.269 GB, free: 81.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/9.814, allocations: 8 kB / 3.269 GB, free: 81.57 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/9.814, allocations: 11.95 kB / 3.269 GB, free: 81.56 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005069/9.819, allocations: 0.9628 MB / 3.27 GB, free: 80.81 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.002128/9.821, allocations: 1.35 MB / 3.272 GB, free: 79.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004028/9.825, allocations: 0.7117 MB / 3.272 GB, free: 78.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1163/9.941, allocations: 37.21 MB / 3.309 GB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/9.941, allocations: 42.84 kB / 3.309 GB, free: 42.17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.637e-06/9.941, allocations: 0 / 3.309 GB, free: 42.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.008038/9.949, allocations: 1.322 MB / 3.31 GB, free: 41.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.915e-05/9.949, allocations: 62.64 kB / 3.31 GB, free: 41.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/9.95, allocations: 119.4 kB / 3.31 GB, free: 40.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/9.95, allocations: 29.7 kB / 3.31 GB, free: 40.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.565e-05/9.95, allocations: 107.4 kB / 3.31 GB, free: 40.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/9.95, allocations: 122.4 kB / 3.311 GB, free: 40.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/9.95, allocations: 4 kB / 3.311 GB, free: 40.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.927e-05/9.95, allocations: 325.6 kB / 3.311 GB, free: 40.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009903/9.951, allocations: 339.8 kB / 3.311 GB, free: 40.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009981/9.952, allocations: 402 kB / 3.312 GB, free: 39.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009696/9.953, allocations: 330.2 kB / 3.312 GB, free: 39.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/9.953, allocations: 4 kB / 3.312 GB, free: 39.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002854/9.956, allocations: 0.8606 MB / 3.313 GB, free: 38.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/9.956, allocations: 6.812 kB / 3.313 GB, free: 38.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/9.956, allocations: 7.859 kB / 3.313 GB, free: 38.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/9.956, allocations: 11.95 kB / 3.313 GB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/9.957, allocations: 172.6 kB / 3.313 GB, free: 38.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/9.957, allocations: 7.938 kB / 3.313 GB, free: 38.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007969/9.958, allocations: 47.48 kB / 3.313 GB, free: 38.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001681/9.958, allocations: 70.06 kB / 3.313 GB, free: 38.39 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.0003252/9.959, allocations: 137.8 kB / 3.313 GB, free: 38.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001513/9.959, allocations: 19.75 kB / 3.313 GB, free: 38.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009453/9.968, allocations: 7.806 MB / 3.321 GB, free: 30.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.281e-05/9.969, allocations: 31.95 kB / 3.321 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/9.969, allocations: 3.953 kB / 3.321 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/9.969, allocations: 3.984 kB / 3.321 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003491/9.972, allocations: 3.502 MB / 3.324 GB, free: 26.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/9.972, allocations: 0 / 3.324 GB, free: 26.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/9.973, allocations: 111.8 kB / 3.324 GB, free: 26.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/9.973, allocations: 4 kB / 3.324 GB, free: 26.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/9.974, allocations: 15.98 kB / 3.324 GB, free: 26.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/9.974, allocations: 0 / 3.324 GB, free: 26.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/9.974, allocations: 7.953 kB / 3.324 GB, free: 26.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003309/9.977, allocations: 1.842 MB / 3.326 GB, free: 24.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/9.977, allocations: 148.1 kB / 3.326 GB, free: 24.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.667e-05/9.977, allocations: 4 kB / 3.326 GB, free: 24.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00061/9.978, allocations: 27.97 kB / 3.326 GB, free: 24.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/9.978, allocations: 27.95 kB / 3.326 GB, free: 24.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.39e-05/9.978, allocations: 16.02 kB / 3.326 GB, free: 24.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.424e-05/9.978, allocations: 95.27 kB / 3.326 GB, free: 24.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/9.978, allocations: 0 / 3.326 GB, free: 24.43 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004745/9.983, allocations: 0.999 MB / 3.327 GB, free: 23.43 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.01281/9.996, allocations: 3.548 MB / 3.331 GB, free: 19.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002323/9.998, allocations: 0.8996 MB / 3.332 GB, free: 18.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/9.998, allocations: 7.938 kB / 3.332 GB, free: 18.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/9.999, allocations: 0.583 MB / 3.332 GB, free: 18.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008943/10, allocations: 77.69 kB / 3.332 GB, free: 18.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009509/10.01, allocations: 4.536 MB / 3.337 GB, free: 13.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/10.01, allocations: 0.8731 MB / 3.338 GB, free: 12.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002732/10.01, allocations: 1.741 MB / 3.339 GB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007587/10.01, allocations: 215.3 kB / 3.34 GB, free: 10.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.492e-06/10.01, allocations: 4 kB / 3.34 GB, free: 10.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4077/10.42, allocations: 35.87 MB / 3.375 GB, free: 77.3 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002788/10.42, allocations: 187.2 kB / 3.375 GB, free: 77.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.328/14.75, allocations: 0 / 3.375 GB, free: 77.07 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat