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.WaterIF97OnePhase_ph.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.254/2.254, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.117e-05/2.135e-05, allocations: 0 / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4548/0.4549, allocations: 54.86 MB / 358.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.554/8.009, allocations: 2.626 GB / 2.976 GB, free: 125.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/8.01, allocations: 94.22 kB / 2.976 GB, free: 125.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334/10.34, allocations: 497.4 MB / 3.462 GB, free: 20.67 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.463e-06/10.34, allocations: 4 kB / 3.462 GB, free: 20.67 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.917e-05/10.34, allocations: 20 kB / 3.462 GB, free: 20.65 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.00767/10.35, allocations: 1.717 MB / 3.463 GB, free: 18.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/10.35, allocations: 12.03 kB / 3.463 GB, free: 18.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003414/10.36, allocations: 330.7 kB / 3.464 GB, free: 18.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/10.36, allocations: 0.6013 MB / 3.464 GB, free: 17.94 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/10.36, allocations: 92.7 kB / 3.464 GB, free: 17.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/10.36, allocations: 43.95 kB / 3.464 GB, free: 17.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001603/10.36, allocations: 0.6468 MB / 3.465 GB, free: 17.15 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/10.36, allocations: 0.8838 MB / 3.466 GB, free: 16.17 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/10.36, allocations: 0 / 3.466 GB, free: 16.17 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/10.36, allocations: 4 kB / 3.466 GB, free: 16.16 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.598e-05/10.36, allocations: 45.23 kB / 3.466 GB, free: 16.12 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.6679/11.03, allocations: 83.06 MB / 3.547 GB, free: 26.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00086/11.03, allocations: 360.2 kB / 3.547 GB, free: 26.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003137/11.03, allocations: 151.6 kB / 3.547 GB, free: 26.76 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1106/11.14, allocations: 33.97 MB / 3.581 GB, free: 21.49 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.038e-05/11.14, allocations: 42.78 kB / 3.581 GB, free: 21.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=33): time 3.286e-06/11.14, allocations: 3.469 kB / 3.581 GB, free: 21.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=37): time 0.005418/11.15, allocations: 1.362 MB / 3.582 GB, free: 21.07 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.287e-05/11.15, allocations: 136.2 kB / 3.582 GB, free: 20.91 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008292/11.15, allocations: 495.1 kB / 3.583 GB, free: 20.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.015e-05/11.15, allocations: 33.05 kB / 3.583 GB, free: 20.76 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003376/11.15, allocations: 470.1 kB / 3.583 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/11.15, allocations: 135.6 kB / 3.583 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.394e-05/11.15, allocations: 0 / 3.583 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001658/11.15, allocations: 343.2 kB / 3.584 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000444/11.15, allocations: 198.2 kB / 3.584 GB, free: 20.11 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006235/11.15, allocations: 0.5617 MB / 3.584 GB, free: 19.65 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009416/11.15, allocations: 319.8 kB / 3.585 GB, free: 19.63 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/11.15, allocations: 5.688 kB / 3.585 GB, free: 19.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002021/11.15, allocations: 0.7511 MB / 3.585 GB, free: 19.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/11.15, allocations: 9.422 kB / 3.585 GB, free: 19.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/11.15, allocations: 14.5 kB / 3.585 GB, free: 19.56 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003058/11.15, allocations: 60.69 kB / 3.585 GB, free: 19.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/11.16, allocations: 293.4 kB / 3.586 GB, free: 19.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002088/11.16, allocations: 1.936 MB / 3.588 GB, free: 17.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/11.16, allocations: 49.53 kB / 3.588 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-05/11.16, allocations: 42.91 kB / 3.588 GB, free: 17.75 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.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.0002852/11.16, allocations: 142.7 kB / 3.588 GB, free: 17.64 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001147/11.16, allocations: 424.3 kB / 3.588 GB, free: 17.57 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/11.16, allocations: 67.98 kB / 3.588 GB, free: 17.53 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/11.16, allocations: 1.582 MB / 3.59 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.428e-05/11.16, allocations: 27.09 kB / 3.59 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/11.16, allocations: 0 / 3.59 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/11.16, allocations: 2.906 kB / 3.59 GB, free: 33.34 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003928/11.17, allocations: 2.435 MB / 3.592 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/11.17, allocations: 4 kB / 3.592 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/11.17, allocations: 181.1 kB / 3.592 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003574/11.17, allocations: 76.92 kB / 3.592 GB, free: 32.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/11.17, allocations: 7.844 kB / 3.592 GB, free: 32.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001962/11.17, allocations: 1.97 MB / 3.594 GB, free: 31.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/11.17, allocations: 3.953 kB / 3.594 GB, free: 31.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/11.17, allocations: 1.503 MB / 3.596 GB, free: 30.91 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004716/11.17, allocations: 224.5 kB / 3.596 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/11.17, allocations: 3.562 kB / 3.596 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008814/11.18, allocations: 48.39 kB / 3.596 GB, free: 30.76 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/11.18, allocations: 32.92 kB / 3.596 GB, free: 30.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.44e-05/11.18, allocations: 18.98 kB / 3.596 GB, free: 30.75 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0006116/11.18, allocations: 352.9 kB / 3.597 GB, free: 30.66 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/11.18, allocations: 0 / 3.597 GB, free: 30.66 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005666/11.18, allocations: 1.088 MB / 3.598 GB, free: 30.66 MB / 0.5261 GB 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: 12 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01249/11.19, allocations: 3.59 MB / 3.601 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002591/11.2, allocations: 0.779 MB / 3.602 GB, free: 29.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/11.2, allocations: 3.875 kB / 3.602 GB, free: 29.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001479/11.2, allocations: 0.5236 MB / 3.602 GB, free: 29.79 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002328/11.2, allocations: 274.9 kB / 3.603 GB, free: 29.77 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007567/11.21, allocations: 1.965 MB / 3.605 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008102/11.21, allocations: 1.073 MB / 3.606 GB, free: 28.56 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000593/11.21, allocations: 335.1 kB / 3.606 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of SimCode: time 1.292e-06/11.21, allocations: 0 / 3.606 GB, free: 28.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.919/15.13, allocations: 42.62 MB / 3.648 GB, free: 18.8 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat