Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.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.Tests.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.873/1.873, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003783, allocations: 12 kB / 233.3 MB, free: 2.961 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08592/0.08636, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.04622/0.1326, allocations: 26.92 MB / 299 MB, free: 1.117 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2503/0.383, allocations: 13.18 MB / 312.1 MB, free: 9.273 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005051/0.3836, allocations: 3.531 kB / 312.1 MB, free: 9.273 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001076/0.3847, allocations: 236.2 kB / 312.4 MB, free: 9.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009363/0.3856, allocations: 248.8 kB / 312.6 MB, free: 9.266 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02074/0.4064, allocations: 4.481 MB / 317.1 MB, free: 9.129 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001462/0.4079, allocations: 0.5979 MB / 317.7 MB, free: 9.109 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002579/0.4082, allocations: 79.88 kB / 317.8 MB, free: 9.098 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009478/0.4176, allocations: 3.237 MB / 321 MB, free: 8.742 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003762/0.4181, allocations: 198.9 kB / 321.2 MB, free: 8.676 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.173e-05/0.4182, allocations: 18.38 kB / 321.2 MB, free: 8.676 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01609/0.4343, allocations: 5.878 MB / 327.1 MB, free: 6.594 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.4345, allocations: 80.88 kB / 327.2 MB, free: 6.539 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.4348, allocations: 107.3 kB / 327.3 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006535/0.4413, allocations: 2.571 MB / 329.8 MB, free: 4.203 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4414, allocations: 0 / 329.8 MB, free: 4.203 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4414, allocations: 4 kB / 329.9 MB, free: 4.199 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.936e-06/0.4414, allocations: 0 / 329.9 MB, free: 4.199 MB / 250.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.002967/0.4444, allocations: 0.9507 MB / 330.8 MB, free: 3.203 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4444, allocations: 8.031 kB / 330.8 MB, free: 3.195 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.4446, allocations: 70.53 kB / 330.9 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00172/0.4463, allocations: 156.6 kB / 331 MB, free: 2.965 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.4468, allocations: 317.9 kB / 331.3 MB, free: 2.617 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.801e-05/0.4468, allocations: 28.66 kB / 331.4 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/0.4469, allocations: 32 kB / 331.4 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002019/0.4489, allocations: 0.5659 MB / 332 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.449, allocations: 0 / 332 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.887e-05/0.449, allocations: 12 kB / 332 MB, free: 1.949 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.098e-05/0.4491, allocations: 11.94 kB / 332 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002298/0.4514, allocations: 0.5407 MB / 332.5 MB, free: 1.395 MB / 250.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.004437/0.4558, allocations: 2.62 MB / 335.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/0.4584, allocations: 478.9 kB / 335.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001328/0.4597, allocations: 0.5589 MB / 336.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.298e-05/0.4598, allocations: 42.56 kB / 336.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.455e-06/0.4598, allocations: 0 / 336.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=34): time 0.008433/0.4683, allocations: 1.604 MB / 337.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.4684, allocations: 55.41 kB / 337.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004339/0.4688, allocations: 245 kB / 338.1 MB, free: 11.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.512e-05/0.4689, allocations: 33.7 kB / 338.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.4691, allocations: 246.5 kB / 338.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.4693, allocations: 109.6 kB / 338.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.4693, allocations: 11.94 kB / 338.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4695, allocations: 326.8 kB / 338.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007696/0.4703, allocations: 148.8 kB / 339 MB, free: 10.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008298/0.4711, allocations: 259.4 kB / 339.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007931/0.4719, allocations: 164 kB / 339.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.472, allocations: 0 / 339.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002379/0.4743, allocations: 0.5232 MB / 339.9 MB, free: 9.504 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.4744, allocations: 8 kB / 339.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.4745, allocations: 4 kB / 339.9 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/0.4753, allocations: 110.6 kB / 340 MB, free: 9.375 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007191/0.4761, allocations: 99.81 kB / 340.1 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.4792, allocations: 2.425 MB / 342.6 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007191/0.4799, allocations: 56.2 kB / 342.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.258e-05/0.48, allocations: 16 kB / 342.6 MB, free: 6.598 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003253/0.4804, allocations: 166 kB / 342.8 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.4805, allocations: 35.61 kB / 342.8 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003541/0.484, allocations: 1.367 MB / 344.2 MB, free: 5.016 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.403e-05/0.4841, allocations: 31.92 kB / 344.2 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4841, allocations: 0 / 344.2 MB, free: 4.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003169/0.4873, allocations: 1.452 MB / 345.7 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00475/0.4921, allocations: 2.141 MB / 347.8 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/0.4922, allocations: 0 / 347.8 MB, free: 1.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007833/0.493, allocations: 111.8 kB / 347.9 MB, free: 1.129 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005876/0.4936, allocations: 72.78 kB / 348 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/0.4937, allocations: 8 kB / 348 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005616/0.4942, allocations: 0.5952 MB / 348.6 MB, free: 436 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4942, allocations: 0 / 348.6 MB, free: 436 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00322/0.4975, allocations: 1.309 MB / 349.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.4977, allocations: 168.2 kB / 350.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.178e-05/0.4979, allocations: 8 kB / 350.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005697/0.4984, allocations: 39.91 kB / 350.1 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.4986, allocations: 39.94 kB / 350.2 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.462e-05/0.4986, allocations: 12 kB / 350.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003929/0.4991, allocations: 231 kB / 350.4 MB, free: 14.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4991, allocations: 4 kB / 350.4 MB, free: 14.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003542/0.5026, allocations: 0.8512 MB / 351.2 MB, free: 13.74 MB / 282.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.h) * Number of discrete variables: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009684/0.5123, allocations: 2.728 MB / 354 MB, free: 11.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.5147, allocations: 0.6736 MB / 354.7 MB, free: 10.37 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.5148, allocations: 0 / 354.7 MB, free: 10.37 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.5159, allocations: 422.4 kB / 355.1 MB, free: 9.957 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001892/0.5179, allocations: 184.8 kB / 355.2 MB, free: 9.777 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.5283, allocations: 3.204 MB / 358.4 MB, free: 6.473 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006478/0.529, allocations: 0.8766 MB / 359.3 MB, free: 5.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004644/0.5295, allocations: 195.4 kB / 359.5 MB, free: 5.383 MB / 282.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5296, allocations: 4 kB / 359.5 MB, free: 5.379 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.908/4.437, allocations: 28.75 MB / 388.3 MB, free: 8.59 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat