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.299/2.299, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004368/0.0004369, allocations: 8 kB / 314.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.372, allocations: 54.86 MB / 369.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.305/8.677, allocations: 2.627 GB / 2.987 GB, free: 67.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/8.677, allocations: 94.12 kB / 2.988 GB, free: 67.75 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.907/11.58, allocations: 0.492 GB / 3.48 GB, free: 48.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.236e-06/11.58, allocations: 3.094 kB / 3.48 GB, free: 48.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.996e-05/11.58, allocations: 22.72 kB / 3.48 GB, free: 48.54 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.01055/11.59, allocations: 1.788 MB / 3.481 GB, free: 47.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/11.59, allocations: 11.53 kB / 3.481 GB, free: 47.79 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005152/11.6, allocations: 118.8 kB / 3.481 GB, free: 47.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005858/11.6, allocations: 321.9 kB / 3.482 GB, free: 47.7 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002926/11.6, allocations: 0.6089 MB / 3.482 GB, free: 47.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/11.6, allocations: 108.5 kB / 3.482 GB, free: 47.38 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003195/11.6, allocations: 70.66 kB / 3.482 GB, free: 47.38 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005871/11.61, allocations: 1.153 MB / 3.484 GB, free: 47.08 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.479e-05/11.61, allocations: 6.438 kB / 3.484 GB, free: 47.08 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002441/11.61, allocations: 34.56 kB / 3.484 GB, free: 47.08 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/11.61, allocations: 43.91 kB / 3.484 GB, free: 47.08 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004652/11.62, allocations: 0.8272 MB / 3.485 GB, free: 47.07 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.01423/11.63, allocations: 5.489 MB / 3.49 GB, free: 43.36 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/11.63, allocations: 0.5548 MB / 3.49 GB, free: 43.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1943/11.83, allocations: 49 MB / 3.538 GB, free: 29.52 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.454e-05/11.83, allocations: 41.88 kB / 3.538 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 3.126e-06/11.83, allocations: 0 / 3.538 GB, free: 29.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.007339/11.83, allocations: 1.929 MB / 3.54 GB, free: 28.99 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/11.83, allocations: 161.4 kB / 3.54 GB, free: 28.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/11.84, allocations: 0.5385 MB / 3.541 GB, free: 28.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001894/11.84, allocations: 36.83 kB / 3.541 GB, free: 28.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004361/11.84, allocations: 430.8 kB / 3.541 GB, free: 28.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/11.84, allocations: 174.9 kB / 3.541 GB, free: 28.25 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.494e-05/11.84, allocations: 15.44 kB / 3.541 GB, free: 28.25 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002289/11.84, allocations: 344.8 kB / 3.542 GB, free: 27.94 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008724/11.84, allocations: 227.4 kB / 3.542 GB, free: 27.94 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/11.84, allocations: 0.593 MB / 3.543 GB, free: 27.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/11.84, allocations: 336.5 kB / 3.543 GB, free: 27.44 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.484e-05/11.84, allocations: 3.938 kB / 3.543 GB, free: 27.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003477/11.84, allocations: 0.8503 MB / 3.544 GB, free: 27.37 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/11.84, allocations: 9.188 kB / 3.544 GB, free: 27.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.008e-05/11.84, allocations: 13.91 kB / 3.544 GB, free: 27.37 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006267/11.84, allocations: 66.02 kB / 3.544 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00341/11.85, allocations: 299.5 kB / 3.544 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/11.85, allocations: 1.992 MB / 3.546 GB, free: 25.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/11.85, allocations: 59.09 kB / 3.546 GB, free: 25.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/11.85, allocations: 42.62 kB / 3.546 GB, free: 25.51 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 () * 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.0008595/11.85, allocations: 277.1 kB / 3.546 GB, free: 25.38 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002962/11.85, allocations: 79.33 kB / 3.547 GB, free: 25.34 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005335/11.86, allocations: 2.211 MB / 3.549 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.8e-05/11.86, allocations: 30.5 kB / 3.549 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/11.86, allocations: 0 / 3.549 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.183e-05/11.86, allocations: 3.281 kB / 3.549 GB, free: 25.05 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007428/11.87, allocations: 3.283 MB / 3.552 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/11.87, allocations: 4.031 kB / 3.552 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/11.87, allocations: 188.8 kB / 3.552 GB, free: 24.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000793/11.87, allocations: 84.58 kB / 3.552 GB, free: 24.56 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.703e-05/11.87, allocations: 18.09 kB / 3.552 GB, free: 24.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002585/11.87, allocations: 2.008 MB / 3.554 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/11.87, allocations: 3.938 kB / 3.554 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004051/11.88, allocations: 1.983 MB / 3.556 GB, free: 22.36 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008258/11.88, allocations: 287.8 kB / 3.556 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002283/11.88, allocations: 14.95 kB / 3.556 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/11.88, allocations: 55.94 kB / 3.556 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/11.88, allocations: 32.69 kB / 3.556 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/11.88, allocations: 23.86 kB / 3.557 GB, free: 22.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001402/11.88, allocations: 0.4968 MB / 3.557 GB, free: 22.08 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.32e-07/11.88, allocations: 0 / 3.557 GB, free: 22.08 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00812/11.89, allocations: 1.129 MB / 3.558 GB, free: 21.93 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 () * Number of clocked 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.01756/11.91, allocations: 4.047 MB / 3.562 GB, free: 20.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003948/11.91, allocations: 0.9184 MB / 3.563 GB, free: 20.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/11.91, allocations: 0 / 3.563 GB, free: 20.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002353/11.91, allocations: 0.6546 MB / 3.564 GB, free: 20.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/11.92, allocations: 363.2 kB / 3.564 GB, free: 20.68 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03735/11.96, allocations: 13.85 MB / 3.577 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/11.96, allocations: 1.131 MB / 3.579 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008594/11.96, allocations: 397.4 kB / 3.579 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/11.96, allocations: 0 / 3.579 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.091/16.05, allocations: 44.42 MB / 3.622 GB, free: 9.004 MB / 0.5105 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