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.Tests.MediaTestModels.Water.WaterIF97_pT.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.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005285/0.0005284, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1015, allocations: 44.51 MB / 308.6 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.287/8.388, allocations: 2.574 GB / 2.876 GB, free: 93.01 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004282/8.389, allocations: 95.25 kB / 2.876 GB, free: 93.01 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.621/10.01, allocations: 297.3 MB / 3.166 GB, free: 53.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/10.01, allocations: 0 / 3.166 GB, free: 53.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.707e-05/10.01, allocations: 7 kB / 3.166 GB, free: 53.19 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003676/10.01, allocations: 0.9468 MB / 3.167 GB, free: 52.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.204e-05/10.01, allocations: 8.781 kB / 3.167 GB, free: 52.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001572/10.01, allocations: 70.2 kB / 3.167 GB, free: 52.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/10.02, allocations: 85.61 kB / 3.167 GB, free: 52.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005915/10.02, allocations: 297 kB / 3.167 GB, free: 52.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/10.02, allocations: 23.03 kB / 3.167 GB, free: 52.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.499e-05/10.02, allocations: 33.31 kB / 3.167 GB, free: 52.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/10.02, allocations: 440.8 kB / 3.168 GB, free: 52.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.792e-05/10.02, allocations: 3.781 kB / 3.168 GB, free: 52.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.022e-05/10.02, allocations: 11.84 kB / 3.168 GB, free: 52.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/10.02, allocations: 7.719 kB / 3.168 GB, free: 52.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009437/10.02, allocations: 317.7 kB / 3.168 GB, free: 52.41 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.004144/10.02, allocations: 2.635 MB / 3.171 GB, free: 50.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009216/10.02, allocations: 246.8 kB / 3.171 GB, free: 50.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05252/10.08, allocations: 15.33 MB / 3.186 GB, free: 41.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/10.08, allocations: 39.69 kB / 3.186 GB, free: 41.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.675e-06/10.08, allocations: 0 / 3.186 GB, free: 41.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.008772/10.08, allocations: 1.29 MB / 3.187 GB, free: 40.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/10.08, allocations: 55.44 kB / 3.187 GB, free: 40.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005673/10.09, allocations: 237.9 kB / 3.188 GB, free: 40.63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.395e-05/10.09, allocations: 31.05 kB / 3.188 GB, free: 40.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/10.09, allocations: 258.1 kB / 3.188 GB, free: 40.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/10.09, allocations: 109 kB / 3.188 GB, free: 40.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/10.09, allocations: 8.312 kB / 3.188 GB, free: 40.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/10.09, allocations: 325.8 kB / 3.188 GB, free: 40.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000385/10.09, allocations: 99.59 kB / 3.188 GB, free: 40.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/10.09, allocations: 214.6 kB / 3.189 GB, free: 39.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004791/10.09, allocations: 143.2 kB / 3.189 GB, free: 39.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/10.09, allocations: 0 / 3.189 GB, free: 39.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001642/10.09, allocations: 426.8 kB / 3.189 GB, free: 39.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/10.09, allocations: 10.36 kB / 3.189 GB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/10.09, allocations: 6.781 kB / 3.189 GB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009637/10.1, allocations: 258.7 kB / 3.189 GB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007451/10.1, allocations: 78.66 kB / 3.189 GB, free: 39.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/10.1, allocations: 1.878 MB / 3.191 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007222/10.1, allocations: 29.72 kB / 3.191 GB, free: 38.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.645e-05/10.1, allocations: 15.53 kB / 3.191 GB, free: 38.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003601/10.1, allocations: 171.9 kB / 3.192 GB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/10.1, allocations: 31.28 kB / 3.192 GB, free: 37.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/10.11, allocations: 0.9459 MB / 3.192 GB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/10.11, allocations: 10.5 kB / 3.192 GB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/10.11, allocations: 0 / 3.192 GB, free: 37.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001767/10.11, allocations: 1.113 MB / 3.194 GB, free: 37.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003524/10.11, allocations: 1.588 MB / 3.195 GB, free: 36.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/10.11, allocations: 0.5625 kB / 3.195 GB, free: 36.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005002/10.11, allocations: 56.7 kB / 3.195 GB, free: 36.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004136/10.12, allocations: 287.1 kB / 3.195 GB, free: 36.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.89e-05/10.12, allocations: 15.64 kB / 3.195 GB, free: 36.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008793/10.12, allocations: 0.6631 MB / 3.196 GB, free: 36.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/10.12, allocations: 0 / 3.196 GB, free: 36.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/10.12, allocations: 0.9627 MB / 3.197 GB, free: 36.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003061/10.12, allocations: 142.1 kB / 3.197 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/10.12, allocations: 7.281 kB / 3.197 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/10.12, allocations: 12.56 kB / 3.197 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.538e-05/10.12, allocations: 18 kB / 3.197 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.721e-05/10.12, allocations: 19.08 kB / 3.197 GB, free: 36.11 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004867/10.12, allocations: 236.5 kB / 3.197 GB, free: 36.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.42e-07/10.12, allocations: 1.125 kB / 3.197 GB, free: 36.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0039/10.12, allocations: 0.5448 MB / 3.198 GB, free: 35.98 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008497/10.13, allocations: 2.251 MB / 3.2 GB, free: 35.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001692/10.14, allocations: 0.5168 MB / 3.201 GB, free: 35.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/10.14, allocations: 0 / 3.201 GB, free: 35.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008111/10.14, allocations: 291.9 kB / 3.201 GB, free: 35.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/10.14, allocations: 186 kB / 3.201 GB, free: 35.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008935/10.15, allocations: 4.983 MB / 3.206 GB, free: 31.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/10.15, allocations: 0.8387 MB / 3.207 GB, free: 30.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/10.15, allocations: 138.4 kB / 3.207 GB, free: 30.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.493e-06/10.15, allocations: 0 / 3.207 GB, free: 30.95 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.517/13.67, allocations: 20.12 MB / 3.227 GB, free: 29.6 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat