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/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.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.341/2.341, allocations: 235 MB / 248 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.831e-05/3.844e-05, allocations: 4 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3921/0.3921, allocations: 54.85 MB / 364.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.828/8.22, allocations: 2.627 GB / 2.983 GB, free: 122.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/8.221, allocations: 92.8 kB / 2.983 GB, free: 122.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.491/10.71, allocations: 0.4907 GB / 3.474 GB, free: 22.13 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.276e-06/10.71, allocations: 0 / 3.474 GB, free: 22.13 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.526e-05/10.71, allocations: 27.14 kB / 3.474 GB, free: 22.11 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.008235/10.72, allocations: 1.709 MB / 3.475 GB, free: 20.37 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/10.72, allocations: 12.03 kB / 3.475 GB, free: 20.36 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002852/10.72, allocations: 109.1 kB / 3.475 GB, free: 20.25 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003461/10.72, allocations: 328.1 kB / 3.476 GB, free: 19.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/10.73, allocations: 0.6044 MB / 3.476 GB, free: 19.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/10.73, allocations: 112.7 kB / 3.476 GB, free: 19.17 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/10.73, allocations: 58.89 kB / 3.476 GB, free: 19.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003516/10.73, allocations: 1.19 MB / 3.478 GB, free: 17.83 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/10.73, allocations: 4 kB / 3.478 GB, free: 17.83 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/10.73, allocations: 32 kB / 3.478 GB, free: 17.8 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.574e-05/10.73, allocations: 45.28 kB / 3.478 GB, free: 17.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/10.73, allocations: 0.848 MB / 3.478 GB, free: 16.9 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.008599/10.74, allocations: 5.49 MB / 3.484 GB, free: 11.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/10.74, allocations: 0.5838 MB / 3.484 GB, free: 10.48 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/10.74, allocations: 213.7 kB / 3.485 GB, free: 10.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.602/11.35, allocations: 49.17 MB / 3.533 GB, free: 52.27 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.209e-05/11.35, allocations: 42.98 kB / 3.533 GB, free: 52.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 3.186e-06/11.35, allocations: 0 / 3.533 GB, free: 52.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.007041/11.35, allocations: 1.83 MB / 3.534 GB, free: 51.82 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/11.35, allocations: 164.4 kB / 3.535 GB, free: 51.64 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000905/11.35, allocations: 0.5269 MB / 3.535 GB, free: 51.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.12e-05/11.35, allocations: 37.05 kB / 3.535 GB, free: 51.47 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/11.35, allocations: 436.8 kB / 3.536 GB, free: 51.22 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000179/11.35, allocations: 173.4 kB / 3.536 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.588e-05/11.35, allocations: 15.34 kB / 3.536 GB, free: 51.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.517e-05/11.35, allocations: 345.4 kB / 3.536 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005353/11.36, allocations: 214 kB / 3.536 GB, free: 50.82 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007285/11.36, allocations: 0.5853 MB / 3.537 GB, free: 50.37 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007228/11.36, allocations: 336 kB / 3.537 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-06/11.36, allocations: 3.688 kB / 3.537 GB, free: 50.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001981/11.36, allocations: 0.845 MB / 3.538 GB, free: 50.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/11.36, allocations: 7.75 kB / 3.538 GB, free: 50.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/11.36, allocations: 13.16 kB / 3.538 GB, free: 50.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003942/11.36, allocations: 66.05 kB / 3.538 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00234/11.36, allocations: 291 kB / 3.538 GB, free: 50.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/11.36, allocations: 1.979 MB / 3.54 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/11.36, allocations: 56.98 kB / 3.54 GB, free: 48.45 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/11.36, allocations: 44.66 kB / 3.54 GB, free: 48.45 MB / 0.4948 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.0002933/11.37, allocations: 170.1 kB / 3.541 GB, free: 48.35 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/11.37, allocations: 72.31 kB / 3.541 GB, free: 48.31 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/11.37, allocations: 2.217 MB / 3.543 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.043e-05/11.37, allocations: 26.91 kB / 3.543 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/11.37, allocations: 1.312 kB / 3.543 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/11.37, allocations: 3.75 kB / 3.543 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005053/11.37, allocations: 3.27 MB / 3.546 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/11.37, allocations: 0 / 3.546 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001861/11.38, allocations: 190.8 kB / 3.546 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005143/11.38, allocations: 86.84 kB / 3.546 GB, free: 47.59 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.476e-05/11.38, allocations: 11.03 kB / 3.546 GB, free: 47.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/11.38, allocations: 1.995 MB / 3.548 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/11.38, allocations: 6.281 kB / 3.548 GB, free: 45.75 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002999/11.38, allocations: 1.967 MB / 3.55 GB, free: 45.41 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006932/11.38, allocations: 283.8 kB / 3.55 GB, free: 45.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/11.38, allocations: 11.84 kB / 3.55 GB, free: 45.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/11.38, allocations: 60.28 kB / 3.551 GB, free: 45.25 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/11.38, allocations: 38.06 kB / 3.551 GB, free: 45.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.006e-05/11.38, allocations: 29.56 kB / 3.551 GB, free: 45.25 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009165/11.38, allocations: 499.6 kB / 3.551 GB, free: 45.14 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.41e-07/11.38, allocations: 0 / 3.551 GB, free: 45.14 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006055/11.39, allocations: 1.128 MB / 3.552 GB, free: 45.14 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: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01382/11.4, allocations: 4.029 MB / 3.556 GB, free: 44.16 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002946/11.41, allocations: 0.9232 MB / 3.557 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/11.41, allocations: 0 / 3.557 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001801/11.41, allocations: 0.654 MB / 3.558 GB, free: 44.13 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/11.41, allocations: 362.3 kB / 3.558 GB, free: 44.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008483/11.42, allocations: 2.291 MB / 3.56 GB, free: 43.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000662/11.42, allocations: 1.13 MB / 3.561 GB, free: 42.94 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007016/11.42, allocations: 393.9 kB / 3.562 GB, free: 42.93 MB / 0.4948 GB Notification: Performance of SimCode: time 1.783e-06/11.42, allocations: 3.703 kB / 3.562 GB, free: 42.93 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.059/15.48, allocations: 44.88 MB / 3.606 GB, free: 39.83 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.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat