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_pT.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_pT,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003621, allocations: 12 kB / 233.3 MB, free: 2.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08484/0.08524, allocations: 38.77 MB / 272 MB, free: 12.1 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.04579/0.1311, allocations: 26.91 MB / 298.9 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2522/0.3834, allocations: 13.18 MB / 312.1 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.3839, allocations: 2.406 kB / 312.1 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.3851, allocations: 231.8 kB / 312.4 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009533/0.3861, allocations: 252.9 kB / 312.6 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0212/0.4073, allocations: 4.48 MB / 317.1 MB, free: 9.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001437/0.4088, allocations: 0.6191 MB / 317.7 MB, free: 9.047 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/0.409, allocations: 77.23 kB / 317.8 MB, free: 9.035 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009089/0.4181, allocations: 3.213 MB / 321 MB, free: 8.688 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003717/0.4186, allocations: 199.9 kB / 321.2 MB, free: 8.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.956e-05/0.4186, allocations: 18.59 kB / 321.2 MB, free: 8.613 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009111/0.4277, allocations: 3.35 MB / 324.6 MB, free: 7.711 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001998/0.428, allocations: 77.03 kB / 324.6 MB, free: 7.684 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002527/0.4283, allocations: 105.9 kB / 324.7 MB, free: 7.641 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003792/0.4321, allocations: 1.636 MB / 326.4 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4321, allocations: 0 / 326.4 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.4321, allocations: 0 / 326.4 MB, free: 6.734 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.4321, allocations: 0 / 326.4 MB, free: 6.734 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.0019/0.4341, allocations: 0.7413 MB / 327.1 MB, free: 6.137 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4341, allocations: 12.28 kB / 327.1 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.45e-05/0.4342, allocations: 67.28 kB / 327.2 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000887/0.4351, allocations: 81.75 kB / 327.3 MB, free: 6.039 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004617/0.4356, allocations: 307.1 kB / 327.6 MB, free: 5.738 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.4356, allocations: 27.03 kB / 327.6 MB, free: 5.727 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.909e-05/0.4357, allocations: 28.94 kB / 327.6 MB, free: 5.719 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.4368, allocations: 442.6 kB / 328.1 MB, free: 5.398 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.4368, allocations: 7.188 kB / 328.1 MB, free: 5.395 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.031e-05/0.4369, allocations: 19.55 kB / 328.1 MB, free: 5.379 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.4369, allocations: 9.281 kB / 328.1 MB, free: 5.379 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008374/0.4377, allocations: 311.9 kB / 328.4 MB, free: 5.23 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.003522/0.4413, allocations: 2.628 MB / 331 MB, free: 2.605 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007126/0.442, allocations: 250.6 kB / 331.3 MB, free: 2.352 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05641/0.4984, allocations: 15.5 MB / 346.8 MB, free: 1.066 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.434e-05/0.4985, allocations: 39.66 kB / 346.8 MB, free: 1.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.4986, allocations: 0 / 346.8 MB, free: 1.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=30): time 0.006654/0.5052, allocations: 1.31 MB / 348.1 MB, free: 15.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.5053, allocations: 55.41 kB / 348.2 MB, free: 15.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.5057, allocations: 262.5 kB / 348.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.5058, allocations: 29.7 kB / 348.5 MB, free: 15.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.506, allocations: 256.7 kB / 348.7 MB, free: 15.02 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.5061, allocations: 108.8 kB / 348.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.5061, allocations: 4 kB / 348.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5063, allocations: 326.8 kB / 349.1 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.5066, allocations: 104.8 kB / 349.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.507, allocations: 226.8 kB / 349.5 MB, free: 14.2 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.5074, allocations: 131.9 kB / 349.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5074, allocations: 0 / 349.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001226/0.5086, allocations: 430.7 kB / 350 MB, free: 13.64 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.5087, allocations: 8.625 kB / 350 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.5087, allocations: 4 kB / 350 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005365/0.5141, allocations: 269.9 kB / 350.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006077/0.5147, allocations: 79.89 kB / 350.4 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002204/0.5169, allocations: 1.884 MB / 352.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004941/0.5175, allocations: 36.19 kB / 352.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-05/0.5175, allocations: 16 kB / 352.3 MB, free: 11.19 MB / 282.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.0002986/0.5178, allocations: 165.6 kB / 352.5 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.181e-05/0.5179, allocations: 31.62 kB / 352.5 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001849/0.5198, allocations: 0.9443 MB / 353.4 MB, free: 10.03 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/0.5199, allocations: 7.984 kB / 353.4 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.5199, allocations: 4 kB / 353.4 MB, free: 10.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001616/0.5215, allocations: 1.122 MB / 354.6 MB, free: 8.809 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003027/0.5246, allocations: 1.589 MB / 356.2 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.5246, allocations: 0 / 356.2 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.525, allocations: 51.92 kB / 356.2 MB, free: 7.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002957/0.528, allocations: 291.8 kB / 356.5 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.428e-05/0.5281, allocations: 19.94 kB / 356.5 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008245/0.5289, allocations: 0.6578 MB / 357.2 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.529, allocations: 0 / 357.2 MB, free: 6.117 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.5309, allocations: 0.9524 MB / 358.1 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002321/0.5312, allocations: 144.5 kB / 358.3 MB, free: 4.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.719e-05/0.5313, allocations: 4 kB / 358.3 MB, free: 4.977 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003809/0.5317, allocations: 15.98 kB / 358.3 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.5317, allocations: 19.97 kB / 358.3 MB, free: 4.941 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.069e-05/0.5318, allocations: 12 kB / 358.3 MB, free: 4.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003968/0.5322, allocations: 235 kB / 358.5 MB, free: 4.703 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5322, allocations: 4 kB / 358.5 MB, free: 4.699 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002119/0.5343, allocations: 499.8 kB / 359 MB, free: 4.211 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.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.005573/0.5399, allocations: 1.918 MB / 361 MB, free: 2.297 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.5415, allocations: 0.514 MB / 361.5 MB, free: 1.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.5416, allocations: 3.938 kB / 361.5 MB, free: 1.766 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007578/0.5423, allocations: 297.3 kB / 361.8 MB, free: 1.477 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.5443, allocations: 180.9 kB / 361.9 MB, free: 1.301 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006675/0.551, allocations: 2.573 MB / 364.5 MB, free: 14.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000513/0.5515, allocations: 0.8364 MB / 365.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003237/0.5519, allocations: 147.4 kB / 365.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of SimCode: time 1.413e-06/0.5519, allocations: 0 / 365.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.301/3.853, allocations: 17.99 MB / 383.5 MB, free: 11.61 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_pT_res.mat does not exist to compare? outputFormat=mat