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.218/2.218, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.034e-05/3.044e-05, allocations: 4 kB / 309.8 MB, free: 1.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4128/0.4129, allocations: 54.85 MB / 364.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.96/8.373, allocations: 2.627 GB / 2.983 GB, free: 121.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/8.373, allocations: 93.62 kB / 2.983 GB, free: 121.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434/10.81, allocations: 0.4906 GB / 3.473 GB, free: 23.87 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.064e-06/10.81, allocations: 0 / 3.473 GB, free: 23.87 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.787e-05/10.81, allocations: 23.75 kB / 3.473 GB, free: 23.85 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.008092/10.82, allocations: 1.758 MB / 3.475 GB, free: 22.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/10.82, allocations: 8.031 kB / 3.475 GB, free: 22.05 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002123/10.82, allocations: 114.3 kB / 3.475 GB, free: 21.93 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003261/10.82, allocations: 328.1 kB / 3.476 GB, free: 21.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/10.82, allocations: 0.5985 MB / 3.476 GB, free: 20.99 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/10.82, allocations: 116.7 kB / 3.476 GB, free: 20.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/10.82, allocations: 63.42 kB / 3.476 GB, free: 20.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003352/10.82, allocations: 1.186 MB / 3.478 GB, free: 19.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/10.82, allocations: 8 kB / 3.478 GB, free: 19.51 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/10.82, allocations: 35.89 kB / 3.478 GB, free: 19.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.072e-05/10.82, allocations: 41.23 kB / 3.478 GB, free: 19.44 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003138/10.83, allocations: 0.9885 MB / 3.479 GB, free: 18.45 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.008539/10.84, allocations: 5.602 MB / 3.484 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002616/10.84, allocations: 0.7126 MB / 3.485 GB, free: 11.78 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005457/10.84, allocations: 253.6 kB / 3.485 GB, free: 11.53 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06155/10.9, allocations: 18.86 MB / 3.503 GB, free: 6.379 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.13e-05/10.9, allocations: 39.06 kB / 3.503 GB, free: 6.332 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=45): time 3.005e-06/10.9, allocations: 4 kB / 3.503 GB, free: 6.328 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.008762/10.91, allocations: 2.029 MB / 3.505 GB, free: 4.238 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/10.91, allocations: 162.7 kB / 3.506 GB, free: 4.043 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001181/10.91, allocations: 0.5227 MB / 3.506 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001001/10.91, allocations: 33.7 kB / 3.506 GB, free: 3.477 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004622/10.91, allocations: 425.5 kB / 3.507 GB, free: 3.062 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002593/10.91, allocations: 177.1 kB / 3.507 GB, free: 2.891 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-05/10.91, allocations: 16 kB / 3.507 GB, free: 2.875 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000217/10.91, allocations: 338.8 kB / 3.507 GB, free: 2.535 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007113/10.91, allocations: 249.9 kB / 3.507 GB, free: 2.293 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/10.91, allocations: 0.5882 MB / 3.508 GB, free: 1.539 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009164/10.92, allocations: 349.3 kB / 3.508 GB, free: 1.195 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/10.92, allocations: 4 kB / 3.508 GB, free: 1.191 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002391/10.92, allocations: 0.8713 MB / 3.509 GB, free: 316 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/10.92, allocations: 12 kB / 3.509 GB, free: 304 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/10.92, allocations: 12 kB / 3.509 GB, free: 292 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004239/10.92, allocations: 64.77 kB / 3.509 GB, free: 224 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3899/11.31, allocations: 311.1 kB / 3.509 GB, free: 66.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/11.31, allocations: 1.979 MB / 3.511 GB, free: 64.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/11.31, allocations: 88.59 kB / 3.511 GB, free: 64.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/11.31, allocations: 42.11 kB / 3.511 GB, free: 64.42 MB / 0.4948 GB 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 () * 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.0004415/11.31, allocations: 165.6 kB / 3.512 GB, free: 64.31 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004257/11.31, allocations: 70.91 kB / 3.512 GB, free: 64.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008103/11.32, allocations: 2.569 MB / 3.514 GB, free: 64.11 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.41e-05/11.32, allocations: 37.34 kB / 3.514 GB, free: 64.11 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/11.32, allocations: 2.219 kB / 3.514 GB, free: 64.11 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-05/11.32, allocations: 9.016 kB / 3.514 GB, free: 64.11 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/11.33, allocations: 3.731 MB / 3.518 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/11.33, allocations: 0 / 3.518 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003492/11.34, allocations: 242.2 kB / 3.518 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008101/11.34, allocations: 91.38 kB / 3.518 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/11.34, allocations: 16.8 kB / 3.518 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002344/11.34, allocations: 1.989 MB / 3.52 GB, free: 61.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/11.34, allocations: 4.312 kB / 3.52 GB, free: 61.82 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004307/11.34, allocations: 2.228 MB / 3.522 GB, free: 61.46 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008475/11.34, allocations: 331.2 kB / 3.523 GB, free: 61.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/11.34, allocations: 9.906 kB / 3.523 GB, free: 61.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/11.35, allocations: 71.31 kB / 3.523 GB, free: 61.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/11.35, allocations: 47.14 kB / 3.523 GB, free: 61.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.858e-05/11.35, allocations: 17.77 kB / 3.523 GB, free: 61.29 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001168/11.35, allocations: 0.5406 MB / 3.523 GB, free: 61.19 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.41e-07/11.35, allocations: 0 / 3.523 GB, free: 61.19 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006435/11.35, allocations: 1.131 MB / 3.524 GB, free: 61.19 MB / 0.4948 GB 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 () * 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.01475/11.37, allocations: 4.309 MB / 3.529 GB, free: 60.21 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003429/11.37, allocations: 1.012 MB / 3.53 GB, free: 60.18 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/11.37, allocations: 1.375 kB / 3.53 GB, free: 60.18 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002164/11.37, allocations: 0.7527 MB / 3.53 GB, free: 60.18 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00334/11.38, allocations: 363.2 kB / 3.531 GB, free: 60.18 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008625/11.39, allocations: 2.505 MB / 3.533 GB, free: 59.69 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000769/11.39, allocations: 1.183 MB / 3.534 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007551/11.39, allocations: 445.8 kB / 3.535 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of SimCode: time 1.433e-06/11.39, allocations: 1.625 kB / 3.535 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.991/15.38, allocations: 46.8 MB / 3.58 GB, free: 56.77 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