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.WaterIF97OnePhase_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.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.653/1.653, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003494, allocations: 8 kB / 233.3 MB, free: 0.8242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08063/0.08101, allocations: 38.77 MB / 272.1 MB, free: 9.969 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.327/7.408, allocations: 2.466 GB / 2.732 GB, free: 56.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/7.408, allocations: 81.83 kB / 2.732 GB, free: 56.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.201/9.609, allocations: 420.3 MB / 3.143 GB, free: 27.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.264e-05/9.609, allocations: 0 / 3.143 GB, free: 27.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.308e-05/9.609, allocations: 10.19 kB / 3.143 GB, free: 27.59 MB / 362.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.006044/9.615, allocations: 1.226 MB / 3.144 GB, free: 26.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.165e-05/9.616, allocations: 10.62 kB / 3.144 GB, free: 26.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001791/9.616, allocations: 67.67 kB / 3.144 GB, free: 26.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002822/9.619, allocations: 154.5 kB / 3.144 GB, free: 26.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000723/9.619, allocations: 327 kB / 3.144 GB, free: 26.62 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.795e-05/9.619, allocations: 23.58 kB / 3.144 GB, free: 26.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.807e-05/9.62, allocations: 33.31 kB / 3.144 GB, free: 26.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/9.622, allocations: 0.5217 MB / 3.145 GB, free: 26.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.785e-05/9.622, allocations: 0 / 3.145 GB, free: 26.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.474e-05/9.622, allocations: 19.62 kB / 3.145 GB, free: 26.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.612e-05/9.622, allocations: 7.594 kB / 3.145 GB, free: 26.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00127/9.623, allocations: 323.9 kB / 3.145 GB, free: 26.37 MB / 362.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.005038/9.629, allocations: 2.571 MB / 3.148 GB, free: 24.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/9.63, allocations: 273.3 kB / 3.148 GB, free: 24.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09983/9.73, allocations: 30.76 MB / 3.178 GB, free: 20.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.547e-05/9.73, allocations: 37.84 kB / 3.178 GB, free: 20.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 3.697e-06/9.73, allocations: 0 / 3.178 GB, free: 20.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.004873/9.735, allocations: 1.211 MB / 3.179 GB, free: 20.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/9.735, allocations: 56.36 kB / 3.179 GB, free: 20.03 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/9.735, allocations: 227.5 kB / 3.179 GB, free: 19.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.694e-05/9.735, allocations: 33.17 kB / 3.18 GB, free: 19.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/9.735, allocations: 249.3 kB / 3.18 GB, free: 19.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.4e-05/9.735, allocations: 111 kB / 3.18 GB, free: 19.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/9.735, allocations: 12 kB / 3.18 GB, free: 19.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/9.736, allocations: 322.7 kB / 3.18 GB, free: 19.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/9.736, allocations: 95 kB / 3.18 GB, free: 19.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/9.736, allocations: 212.4 kB / 3.18 GB, free: 19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/9.736, allocations: 125.9 kB / 3.181 GB, free: 18.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/9.736, allocations: 0 / 3.181 GB, free: 18.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001082/9.738, allocations: 399.6 kB / 3.181 GB, free: 18.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/9.738, allocations: 11.14 kB / 3.181 GB, free: 18.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/9.738, allocations: 7.047 kB / 3.181 GB, free: 18.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004098/9.738, allocations: 64 kB / 3.181 GB, free: 18.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006036/9.739, allocations: 94.34 kB / 3.181 GB, free: 18.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/9.741, allocations: 2.422 MB / 3.184 GB, free: 16.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/9.741, allocations: 33.97 kB / 3.184 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/9.741, allocations: 18 kB / 3.184 GB, free: 16.23 MB / 378.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): 42 * 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: 2 * 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: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003247/9.742, allocations: 169.8 kB / 3.184 GB, free: 16.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.086e-05/9.742, allocations: 27.44 kB / 3.184 GB, free: 16.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/9.743, allocations: 0.87 MB / 3.185 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/9.743, allocations: 7.625 kB / 3.185 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/9.743, allocations: 7.953 kB / 3.185 GB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001209/9.745, allocations: 1.046 MB / 3.186 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/9.747, allocations: 1.483 MB / 3.187 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/9.747, allocations: 7.188 kB / 3.187 GB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000397/9.747, allocations: 53.14 kB / 3.187 GB, free: 14.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005399/9.748, allocations: 82.12 kB / 3.187 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/9.748, allocations: 13.22 kB / 3.187 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005029/9.749, allocations: 0.582 MB / 3.188 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/9.749, allocations: 0 / 3.188 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/9.75, allocations: 0.8307 MB / 3.189 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/9.75, allocations: 133.4 kB / 3.189 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.011e-05/9.75, allocations: 7.219 kB / 3.189 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006204/9.751, allocations: 41.25 kB / 3.189 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.985e-05/9.751, allocations: 23.05 kB / 3.189 GB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.377e-05/9.751, allocations: 15.47 kB / 3.189 GB, free: 12.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003757/9.751, allocations: 230.8 kB / 3.189 GB, free: 12.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/9.751, allocations: 0 / 3.189 GB, free: 12.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004491/9.756, allocations: 0.8966 MB / 3.19 GB, free: 12.52 MB / 378.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: 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 (32): * Single equations (assignments): 29 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01015/9.766, allocations: 2.584 MB / 3.192 GB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001286/9.767, allocations: 489.5 kB / 3.193 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/9.768, allocations: 0 / 3.193 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005024/9.768, allocations: 246.5 kB / 3.193 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/9.77, allocations: 184.3 kB / 3.193 GB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008756/9.779, allocations: 5.06 MB / 3.198 GB, free: 22.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/9.779, allocations: 0.8278 MB / 3.199 GB, free: 22.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/9.779, allocations: 149 kB / 3.199 GB, free: 22.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.373e-06/9.779, allocations: 0 / 3.199 GB, free: 22.09 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.492/13.27, allocations: 27.85 MB / 3.226 GB, free: 4.84 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat