Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.0003429, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09516/0.09554, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.507/8.602, allocations: 2.845 GB / 3.146 GB, free: 18.75 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03332/8.636, allocations: 11 MB / 3.157 GB, free: 10.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7834/9.419, allocations: 113 MB / 3.267 GB, free: 68.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.565e-06/9.419, allocations: 0 / 3.267 GB, free: 68.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/9.419, allocations: 4 kB / 3.267 GB, free: 68.98 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.006903/9.426, allocations: 1.146 MB / 3.268 GB, free: 67.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.251e-05/9.426, allocations: 8.031 kB / 3.268 GB, free: 67.78 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/9.426, allocations: 54.55 kB / 3.268 GB, free: 67.72 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003131/9.43, allocations: 187.6 kB / 3.268 GB, free: 67.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005418/9.43, allocations: 254.7 kB / 3.269 GB, free: 67.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.696e-05/9.43, allocations: 20.44 kB / 3.269 GB, free: 67.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.643e-05/9.43, allocations: 21.11 kB / 3.269 GB, free: 67.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00702/9.437, allocations: 0.8895 MB / 3.269 GB, free: 66.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.26e-05/9.437, allocations: 0 / 3.269 GB, free: 66.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.007e-05/9.438, allocations: 12 kB / 3.269 GB, free: 66.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/9.438, allocations: 7.953 kB / 3.269 GB, free: 66.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007317/9.445, allocations: 0.9617 MB / 3.27 GB, free: 65.32 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.002777/9.448, allocations: 1.347 MB / 3.272 GB, free: 63.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005058/9.453, allocations: 0.7048 MB / 3.272 GB, free: 63.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1137/9.567, allocations: 37.22 MB / 3.309 GB, free: 21.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.009e-05/9.567, allocations: 34.84 kB / 3.309 GB, free: 21.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.978e-06/9.567, allocations: 4 kB / 3.309 GB, free: 21.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.007883/9.575, allocations: 1.331 MB / 3.31 GB, free: 20.07 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/9.575, allocations: 51.41 kB / 3.31 GB, free: 20.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/9.575, allocations: 109.1 kB / 3.31 GB, free: 19.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/9.575, allocations: 33.7 kB / 3.31 GB, free: 19.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.044e-05/9.575, allocations: 179.2 kB / 3.31 GB, free: 19.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/9.575, allocations: 126.2 kB / 3.311 GB, free: 19.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.752e-05/9.575, allocations: 8 kB / 3.311 GB, free: 19.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.957e-05/9.575, allocations: 326.8 kB / 3.311 GB, free: 19.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009461/9.576, allocations: 331.8 kB / 3.311 GB, free: 18.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009959/9.577, allocations: 399.5 kB / 3.312 GB, free: 18.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009642/9.578, allocations: 335.8 kB / 3.312 GB, free: 18.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/9.578, allocations: 0 / 3.312 GB, free: 18.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002823/9.581, allocations: 0.8652 MB / 3.313 GB, free: 17.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/9.581, allocations: 8 kB / 3.313 GB, free: 17.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/9.581, allocations: 0 / 3.313 GB, free: 17.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/9.581, allocations: 7.953 kB / 3.313 GB, free: 17.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/9.583, allocations: 179.8 kB / 3.313 GB, free: 17.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/9.583, allocations: 4.375 kB / 3.313 GB, free: 17.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007833/9.583, allocations: 47.92 kB / 3.313 GB, free: 17.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/9.584, allocations: 63.92 kB / 3.313 GB, free: 16.97 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.0003104/9.584, allocations: 145.7 kB / 3.313 GB, free: 16.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/9.584, allocations: 11.91 kB / 3.313 GB, free: 16.81 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009489/9.593, allocations: 7.806 MB / 3.321 GB, free: 8.988 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.204e-05/9.594, allocations: 31.94 kB / 3.321 GB, free: 8.957 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/9.594, allocations: 3.953 kB / 3.321 GB, free: 8.953 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/9.594, allocations: 3.984 kB / 3.321 GB, free: 8.949 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003674/9.597, allocations: 3.498 MB / 3.324 GB, free: 5.199 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/9.597, allocations: 8 kB / 3.324 GB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/9.599, allocations: 111.8 kB / 3.324 GB, free: 5.082 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-06/9.599, allocations: 0 / 3.324 GB, free: 5.082 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.339e-05/9.599, allocations: 11.98 kB / 3.324 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/9.599, allocations: 7.938 kB / 3.324 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/9.599, allocations: 3.953 kB / 3.324 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003425/9.602, allocations: 1.846 MB / 3.326 GB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/9.602, allocations: 148.1 kB / 3.326 GB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.113e-05/9.602, allocations: 11.98 kB / 3.326 GB, free: 3.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005832/9.603, allocations: 28.05 kB / 3.326 GB, free: 2.992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/9.603, allocations: 27.95 kB / 3.326 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-05/9.603, allocations: 15.95 kB / 3.326 GB, free: 2.949 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.601e-05/9.603, allocations: 95.2 kB / 3.327 GB, free: 2.855 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/9.603, allocations: 0 / 3.327 GB, free: 2.855 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005073/9.608, allocations: 0.9951 MB / 3.327 GB, free: 1.859 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.299/9.908, allocations: 3.538 MB / 3.331 GB, free: 84.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00279/9.91, allocations: 0.8954 MB / 3.332 GB, free: 84.17 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/9.91, allocations: 2.125 kB / 3.332 GB, free: 84.17 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/9.912, allocations: 0.5903 MB / 3.332 GB, free: 84.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009343/9.913, allocations: 80.56 kB / 3.332 GB, free: 84.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/9.924, allocations: 4.577 MB / 3.337 GB, free: 82.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/9.924, allocations: 0.8634 MB / 3.338 GB, free: 81.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007945/9.925, allocations: 223.2 kB / 3.338 GB, free: 81.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/9.925, allocations: 0 / 3.338 GB, free: 81.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.485/13.41, allocations: 26.86 MB / 3.364 GB, free: 79.66 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat