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/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.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.662/2.662, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.419e-05/2.416e-05, allocations: 4 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3609, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.158/8.519, allocations: 2.612 GB / 2.962 GB, free: 127.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/8.519, allocations: 87.25 kB / 2.962 GB, free: 127.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.528/11.05, allocations: 432.3 MB / 3.384 GB, free: 62.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.144e-06/11.05, allocations: 0 / 3.384 GB, free: 62.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.37e-05/11.05, allocations: 25.58 kB / 3.384 GB, free: 62.5 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.007874/11.06, allocations: 1.744 MB / 3.386 GB, free: 61.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/11.06, allocations: 11.28 kB / 3.386 GB, free: 61.61 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003694/11.06, allocations: 333.7 kB / 3.386 GB, free: 61.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001702/11.06, allocations: 0.5801 MB / 3.387 GB, free: 61.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.174e-05/11.06, allocations: 25.64 kB / 3.387 GB, free: 61.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/11.06, allocations: 38.19 kB / 3.387 GB, free: 61.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001392/11.06, allocations: 0.532 MB / 3.387 GB, free: 61.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/11.06, allocations: 0.6502 MB / 3.388 GB, free: 60.65 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.463e-05/11.06, allocations: 3.938 kB / 3.388 GB, free: 60.64 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.729e-05/11.06, allocations: 3.969 kB / 3.388 GB, free: 60.64 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.434e-05/11.06, allocations: 22.92 kB / 3.388 GB, free: 60.64 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.01114/11.08, allocations: 5.765 MB / 3.393 GB, free: 56 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/11.08, allocations: 446.9 kB / 3.394 GB, free: 55.82 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004546/11.08, allocations: 216.4 kB / 3.394 GB, free: 55.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2743/11.35, allocations: 81.83 MB / 3.474 GB, free: 7.727 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.714e-05/11.35, allocations: 39 kB / 3.474 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=47): time 3.626e-06/11.35, allocations: 7.797 kB / 3.474 GB, free: 7.676 MB / 0.4948 GB Notification: Performance of matching and sorting (n=51): time 0.008807/11.36, allocations: 1.777 MB / 3.476 GB, free: 6.105 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.442e-05/11.36, allocations: 107.2 kB / 3.476 GB, free: 5.977 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006236/11.36, allocations: 382.3 kB / 3.476 GB, free: 5.629 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.711e-05/11.36, allocations: 29.7 kB / 3.476 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000239/11.36, allocations: 376.6 kB / 3.477 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/11.36, allocations: 179.2 kB / 3.477 GB, free: 5.082 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/11.36, allocations: 0 / 3.477 GB, free: 5.082 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001371/11.36, allocations: 338.1 kB / 3.477 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004807/11.36, allocations: 193 kB / 3.477 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005332/11.36, allocations: 372.6 kB / 3.478 GB, free: 4.141 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/11.36, allocations: 331.5 kB / 3.478 GB, free: 3.875 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/11.36, allocations: 4 kB / 3.478 GB, free: 3.871 MB / 0.4948 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003304/11.37, allocations: 0.8192 MB / 3.479 GB, free: 3.133 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000799/11.37, allocations: 2.179 MB / 3.481 GB, free: 0.7891 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/11.37, allocations: 4 kB / 3.481 GB, free: 0.7852 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001958/11.37, allocations: 288.3 kB / 3.481 GB, free: 0.5625 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/11.37, allocations: 143.4 kB / 3.481 GB, free: 456 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3694/11.74, allocations: 0.9384 MB / 3.482 GB, free: 78.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/11.74, allocations: 87.02 kB / 3.482 GB, free: 78.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/11.74, allocations: 33.09 kB / 3.482 GB, free: 78.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/11.74, allocations: 5.531 kB / 3.482 GB, free: 78.75 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003107/11.75, allocations: 0.6935 MB / 3.483 GB, free: 78.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/11.75, allocations: 8.062 kB / 3.483 GB, free: 78.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/11.75, allocations: 257.1 kB / 3.483 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/11.75, allocations: 145.7 kB / 3.483 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/11.75, allocations: 0.8526 MB / 3.484 GB, free: 78.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/11.75, allocations: 77.48 kB / 3.484 GB, free: 78.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.049e-05/11.75, allocations: 38.12 kB / 3.484 GB, free: 78.21 MB / 0.4948 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.0002731/11.75, allocations: 127.1 kB / 3.484 GB, free: 78.1 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002521/11.75, allocations: 0.5601 MB / 3.485 GB, free: 78.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/11.75, allocations: 59.81 kB / 3.485 GB, free: 78.06 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004923/11.76, allocations: 2.617 MB / 3.488 GB, free: 77.85 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.123e-05/11.76, allocations: 40.84 kB / 3.488 GB, free: 77.85 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/11.76, allocations: 1.422 kB / 3.488 GB, free: 77.85 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/11.76, allocations: 3.281 kB / 3.488 GB, free: 77.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006015/11.77, allocations: 3.576 MB / 3.491 GB, free: 77.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/11.77, allocations: 1.969 kB / 3.491 GB, free: 77.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001339/11.77, allocations: 164.8 kB / 3.491 GB, free: 77.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003305/11.77, allocations: 68.78 kB / 3.491 GB, free: 77.47 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.348e-05/11.77, allocations: 9.656 kB / 3.491 GB, free: 77.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007145/11.77, allocations: 1.213 MB / 3.493 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/11.77, allocations: 0 / 3.493 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004027/11.77, allocations: 2.253 MB / 3.495 GB, free: 76.08 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006013/11.77, allocations: 307.7 kB / 3.495 GB, free: 75.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001528/11.77, allocations: 10.75 kB / 3.495 GB, free: 75.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008777/11.77, allocations: 59.84 kB / 3.495 GB, free: 75.92 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/11.77, allocations: 59.53 kB / 3.495 GB, free: 75.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.294e-05/11.77, allocations: 18.23 kB / 3.495 GB, free: 75.92 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005725/11.77, allocations: 365.5 kB / 3.496 GB, free: 75.82 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.523e-06/11.77, allocations: 0 / 3.496 GB, free: 75.82 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006599/11.78, allocations: 1.333 MB / 3.497 GB, free: 75.82 MB / 0.4948 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: 23 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$cse16.phase,$cse16.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 (65): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.01495/11.8, allocations: 4.528 MB / 3.501 GB, free: 74.97 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003264/11.8, allocations: 1.188 MB / 3.502 GB, free: 74.95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/11.8, allocations: 2.656 kB / 3.502 GB, free: 74.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001573/11.8, allocations: 0.7359 MB / 3.503 GB, free: 74.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/11.8, allocations: 279.2 kB / 3.503 GB, free: 74.94 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1962/12, allocations: 55.78 MB / 3.558 GB, free: 73.22 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006496/12, allocations: 1.145 MB / 3.559 GB, free: 72.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008053/12, allocations: 437.3 kB / 3.559 GB, free: 72.49 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/12, allocations: 3.219 kB / 3.559 GB, free: 72.49 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.248/16.25, allocations: 44.88 MB / 3.603 GB, free: 60.81 MB / 0.4948 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