Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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.Fluid.TestComponents.Machines.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.475/2.475, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.323e-05/3.34e-05, allocations: 0 / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4043, allocations: 54.85 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.097/8.501, allocations: 2.613 GB / 2.969 GB, free: 115.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/8.502, allocations: 86.81 kB / 2.969 GB, free: 115.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.177/10.68, allocations: 436.6 MB / 3.395 GB, free: 52.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.034e-06/10.68, allocations: 3.969 kB / 3.395 GB, free: 52.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.808e-05/10.68, allocations: 20 kB / 3.395 GB, free: 52.4 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.007645/10.69, allocations: 1.758 MB / 3.397 GB, free: 51.47 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/10.69, allocations: 10.47 kB / 3.397 GB, free: 51.47 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002067/10.69, allocations: 102.1 kB / 3.397 GB, free: 51.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003478/10.69, allocations: 321.3 kB / 3.397 GB, free: 51.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/10.69, allocations: 0.5822 MB / 3.398 GB, free: 50.98 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-05/10.69, allocations: 54 kB / 3.398 GB, free: 50.95 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001337/10.69, allocations: 62.34 kB / 3.398 GB, free: 50.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002891/10.7, allocations: 0.9642 MB / 3.399 GB, free: 50.49 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/10.7, allocations: 0 / 3.399 GB, free: 50.49 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/10.7, allocations: 23.41 kB / 3.399 GB, free: 50.48 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.029e-05/10.7, allocations: 22.94 kB / 3.399 GB, free: 50.47 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002682/10.7, allocations: 0.8026 MB / 3.4 GB, free: 50.25 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.006113/10.7, allocations: 4.447 MB / 3.404 GB, free: 46.48 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/10.71, allocations: 0.7108 MB / 3.405 GB, free: 46.26 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005335/10.71, allocations: 241.1 kB / 3.405 GB, free: 46.16 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3126/11.02, allocations: 83.25 MB / 3.486 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6e-05/11.02, allocations: 35 kB / 3.486 GB, free: 19.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=48): time 3.446e-06/11.02, allocations: 4 kB / 3.486 GB, free: 19.74 MB / 0.5105 GB Notification: Performance of matching and sorting (n=52): time 0.007407/11.03, allocations: 1.821 MB / 3.488 GB, free: 18.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.873e-05/11.03, allocations: 107.2 kB / 3.488 GB, free: 18.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007429/11.03, allocations: 418.2 kB / 3.489 GB, free: 17.63 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001391/11.03, allocations: 33.7 kB / 3.489 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/11.03, allocations: 383.3 kB / 3.489 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000189/11.03, allocations: 179.1 kB / 3.489 GB, free: 17.08 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.767e-05/11.03, allocations: 16 kB / 3.489 GB, free: 17.06 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001616/11.03, allocations: 333.7 kB / 3.489 GB, free: 16.73 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005207/11.03, allocations: 204.2 kB / 3.49 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005932/11.03, allocations: 382.5 kB / 3.49 GB, free: 16.11 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/11.03, allocations: 248.7 kB / 3.49 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/11.03, allocations: 4 kB / 3.49 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002564/11.03, allocations: 0.792 MB / 3.491 GB, free: 15.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009277/11.03, allocations: 2.179 MB / 3.493 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/11.03, allocations: 4 kB / 3.493 GB, free: 12.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002945/11.04, allocations: 377 kB / 3.494 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/11.04, allocations: 146.2 kB / 3.494 GB, free: 12.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/11.04, allocations: 0.862 MB / 3.495 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/11.04, allocations: 110 kB / 3.495 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/11.04, allocations: 35.42 kB / 3.495 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/11.04, allocations: 4 kB / 3.495 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002924/11.05, allocations: 0.7722 MB / 3.495 GB, free: 10.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/11.05, allocations: 11.89 kB / 3.495 GB, free: 10.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/11.05, allocations: 270.9 kB / 3.496 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/11.05, allocations: 143.2 kB / 3.496 GB, free: 10.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/11.05, allocations: 0.8171 MB / 3.497 GB, free: 9.605 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/11.05, allocations: 93.5 kB / 3.497 GB, free: 9.531 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.04e-05/11.05, allocations: 35.09 kB / 3.497 GB, free: 9.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {2 20} Notification: Performance of prepare postOptimizeDAE: time 0.0003137/11.05, allocations: 140.8 kB / 3.497 GB, free: 9.355 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/11.05, allocations: 66.11 kB / 3.497 GB, free: 9.293 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00494/11.06, allocations: 2.842 MB / 3.5 GB, free: 6.719 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.328e-05/11.06, allocations: 41.48 kB / 3.5 GB, free: 6.695 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/11.06, allocations: 7.688 kB / 3.5 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/11.06, allocations: 3.516 kB / 3.5 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007526/11.06, allocations: 3.958 MB / 3.504 GB, free: 3.168 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/11.06, allocations: 0 / 3.504 GB, free: 3.168 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/11.07, allocations: 166.4 kB / 3.504 GB, free: 3.039 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005032/11.07, allocations: 71.48 kB / 3.504 GB, free: 2.98 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/11.07, allocations: 19.56 kB / 3.504 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/11.07, allocations: 1.177 MB / 3.505 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/11.07, allocations: 0 / 3.505 GB, free: 1.754 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3808/11.45, allocations: 2.516 MB / 3.507 GB, free: 84.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008536/11.45, allocations: 317.2 kB / 3.508 GB, free: 84.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/11.45, allocations: 12.02 kB / 3.508 GB, free: 84.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009947/11.45, allocations: 73.92 kB / 3.508 GB, free: 84.24 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/11.45, allocations: 54.36 kB / 3.508 GB, free: 84.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.4e-05/11.45, allocations: 28.83 kB / 3.508 GB, free: 84.24 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0007536/11.45, allocations: 382.5 kB / 3.508 GB, free: 84.14 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.11e-07/11.45, allocations: 0 / 3.508 GB, free: 84.14 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007427/11.46, allocations: 1.386 MB / 3.51 GB, free: 84.14 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 25 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse17.phase,$cse17.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * 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.01599/11.47, allocations: 4.547 MB / 3.514 GB, free: 83.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004131/11.48, allocations: 1.279 MB / 3.515 GB, free: 83.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/11.48, allocations: 0 / 3.515 GB, free: 83.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002166/11.48, allocations: 0.8031 MB / 3.516 GB, free: 83.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/11.48, allocations: 303.7 kB / 3.516 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2522/11.74, allocations: 77.75 MB / 3.592 GB, free: 81.27 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000678/11.74, allocations: 1.162 MB / 3.594 GB, free: 80.54 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008188/11.74, allocations: 454.6 kB / 3.594 GB, free: 80.54 MB / 0.5105 GB Notification: Performance of SimCode: time 1.142e-06/11.74, allocations: 0 / 3.594 GB, free: 80.54 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.497/16.24, allocations: 44.79 MB / 3.638 GB, free: 69.96 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage_res.mat does not exist to compare? outputFormat=mat