Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.415/2.415, allocations: 234.9 MB / 250.5 MB, free: 9.562 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006669/0.0006671, allocations: 8 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4154, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.048/8.464, allocations: 2.627 GB / 2.987 GB, free: 68.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000323/8.464, allocations: 98.12 kB / 2.988 GB, free: 68.32 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.919/11.38, allocations: 0.4919 GB / 3.479 GB, free: 48.95 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.635e-06/11.38, allocations: 0 / 3.479 GB, free: 48.95 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.863e-05/11.38, allocations: 19.06 kB / 3.479 GB, free: 48.95 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.00879/11.39, allocations: 1.844 MB / 3.481 GB, free: 48.19 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/11.39, allocations: 7.812 kB / 3.481 GB, free: 48.19 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004166/11.39, allocations: 121.9 kB / 3.481 GB, free: 48.15 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003396/11.4, allocations: 317.1 kB / 3.482 GB, free: 48.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/11.4, allocations: 0.6125 MB / 3.482 GB, free: 47.85 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001438/11.4, allocations: 113.7 kB / 3.482 GB, free: 47.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/11.4, allocations: 65.39 kB / 3.482 GB, free: 47.79 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003789/11.4, allocations: 1.199 MB / 3.484 GB, free: 47.49 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.953e-05/11.4, allocations: 10.12 kB / 3.484 GB, free: 47.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/11.4, allocations: 31.91 kB / 3.484 GB, free: 47.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.238e-05/11.4, allocations: 44.48 kB / 3.484 GB, free: 47.48 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003989/11.41, allocations: 1.044 MB / 3.485 GB, free: 47.48 MB / 490.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.008603/11.42, allocations: 5.598 MB / 3.49 GB, free: 43.77 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003545/11.42, allocations: 0.7891 MB / 3.491 GB, free: 43.72 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05674/11.48, allocations: 18.81 MB / 3.509 GB, free: 32.06 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/11.48, allocations: 42.34 kB / 3.509 GB, free: 32.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=45): time 3.797e-06/11.48, allocations: 2.281 kB / 3.509 GB, free: 32.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=49): time 0.01123/11.49, allocations: 2.358 MB / 3.512 GB, free: 31.53 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.427e-05/11.49, allocations: 160.2 kB / 3.512 GB, free: 31.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009957/11.49, allocations: 0.5296 MB / 3.512 GB, free: 31.21 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/11.49, allocations: 32.45 kB / 3.512 GB, free: 31.18 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002768/11.49, allocations: 427.7 kB / 3.513 GB, free: 30.9 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002262/11.49, allocations: 176.8 kB / 3.513 GB, free: 30.79 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.987e-05/11.49, allocations: 16.69 kB / 3.513 GB, free: 30.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/11.49, allocations: 347.9 kB / 3.513 GB, free: 30.48 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001076/11.49, allocations: 297.5 kB / 3.514 GB, free: 30.48 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/11.49, allocations: 0.6393 MB / 3.514 GB, free: 30.04 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/11.49, allocations: 385.8 kB / 3.515 GB, free: 30.04 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/11.49, allocations: 3.438 kB / 3.515 GB, free: 30.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003036/11.5, allocations: 0.9668 MB / 3.516 GB, free: 29.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/11.5, allocations: 10.66 kB / 3.516 GB, free: 29.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.08e-05/11.5, allocations: 14.86 kB / 3.516 GB, free: 29.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004652/11.5, allocations: 67.3 kB / 3.516 GB, free: 29.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/11.5, allocations: 316.2 kB / 3.516 GB, free: 29.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001909/11.5, allocations: 1.987 MB / 3.518 GB, free: 28.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/11.5, allocations: 88.67 kB / 3.518 GB, free: 28.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/11.5, allocations: 42.89 kB / 3.518 GB, free: 28.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006533/11.5, allocations: 278.6 kB / 3.518 GB, free: 28 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002135/11.5, allocations: 70.44 kB / 3.518 GB, free: 27.96 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004833/11.51, allocations: 2.599 MB / 3.521 GB, free: 27.65 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-05/11.51, allocations: 38.41 kB / 3.521 GB, free: 27.65 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/11.51, allocations: 3.656 kB / 3.521 GB, free: 27.65 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/11.51, allocations: 3.797 kB / 3.521 GB, free: 27.65 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007005/11.52, allocations: 3.785 MB / 3.525 GB, free: 27.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/11.52, allocations: 3.875 kB / 3.525 GB, free: 27.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002168/11.52, allocations: 239.8 kB / 3.525 GB, free: 27.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006436/11.52, allocations: 86.05 kB / 3.525 GB, free: 27.14 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/11.52, allocations: 24.16 kB / 3.525 GB, free: 27.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001696/11.52, allocations: 2.005 MB / 3.527 GB, free: 25.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/11.52, allocations: 0 / 3.527 GB, free: 25.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004621/11.52, allocations: 2.376 MB / 3.529 GB, free: 24.94 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007615/11.53, allocations: 338.9 kB / 3.53 GB, free: 24.74 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/11.53, allocations: 10.69 kB / 3.53 GB, free: 24.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/11.53, allocations: 60.92 kB / 3.53 GB, free: 24.74 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/11.53, allocations: 44.58 kB / 3.53 GB, free: 24.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.496e-05/11.53, allocations: 24.03 kB / 3.53 GB, free: 24.74 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001067/11.53, allocations: 0.5435 MB / 3.53 GB, free: 24.64 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.91e-07/11.53, allocations: 0 / 3.53 GB, free: 24.64 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006205/11.53, allocations: 1.133 MB / 3.531 GB, free: 24.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].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 (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.01547/11.55, allocations: 4.453 MB / 3.536 GB, free: 23.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003874/11.55, allocations: 1.092 MB / 3.537 GB, free: 23.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/11.55, allocations: 4.438 kB / 3.537 GB, free: 23.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002417/11.56, allocations: 0.8019 MB / 3.537 GB, free: 23.34 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003333/11.56, allocations: 373.1 kB / 3.538 GB, free: 23.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0216/11.58, allocations: 13.97 MB / 3.551 GB, free: 29.46 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009638/11.58, allocations: 1.181 MB / 3.553 GB, free: 28.76 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008842/11.58, allocations: 444.2 kB / 3.553 GB, free: 28.75 MB / 0.4948 GB Notification: Performance of SimCode: time 2.865e-06/11.58, allocations: 0 / 3.553 GB, free: 28.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.028/15.61, allocations: 46.12 MB / 3.598 GB, free: 21.07 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat