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.Vessels.TestTankWithTopPorts.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: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.h|tank.aboveLevel.1.|tank.aboveLevel.2.|tank.aboveLevel.3.|tank.aboveLevel.4.|tank.ports_m_flow_out.1.|tank.ports_m_flow_out.2.|tank.ports_m_flow_out.3.|tank.ports_m_flow_out.4.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.525/2.525, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005831/0.0005832, allocations: 12 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3667, allocations: 54.87 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.878/8.245, allocations: 2.597 GB / 2.958 GB, free: 101.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/8.245, allocations: 94.58 kB / 2.958 GB, free: 101.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.879/11.12, allocations: 0.5519 GB / 3.51 GB, free: 44.46 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.034e-06/11.12, allocations: 2.953 kB / 3.51 GB, free: 44.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.524e-05/11.12, allocations: 25 kB / 3.51 GB, free: 44.46 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.008922/11.13, allocations: 2.123 MB / 3.512 GB, free: 43.45 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/11.13, allocations: 10.97 kB / 3.512 GB, free: 43.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003382/11.14, allocations: 321.9 kB / 3.512 GB, free: 43.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002158/11.14, allocations: 0.6987 MB / 3.513 GB, free: 43.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002723/11.14, allocations: 301 kB / 3.513 GB, free: 42.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002325/11.14, allocations: 83.83 kB / 3.513 GB, free: 42.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005005/11.14, allocations: 1.504 MB / 3.515 GB, free: 42.59 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.584e-05/11.14, allocations: 5.25 kB / 3.515 GB, free: 42.59 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/11.14, allocations: 40.31 kB / 3.515 GB, free: 42.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-05/11.14, allocations: 41.42 kB / 3.515 GB, free: 42.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005205/11.15, allocations: 1.362 MB / 3.516 GB, free: 42.58 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.0123/11.16, allocations: 6.373 MB / 3.522 GB, free: 38.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004501/11.17, allocations: 0.9826 MB / 3.523 GB, free: 38.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05678/11.22, allocations: 18.64 MB / 3.541 GB, free: 26.65 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/11.22, allocations: 42.31 kB / 3.542 GB, free: 26.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=59): time 3.377e-06/11.22, allocations: 2.875 kB / 3.542 GB, free: 26.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=64): time 0.01369/11.24, allocations: 2.982 MB / 3.544 GB, free: 26.03 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.618e-05/11.24, allocations: 165.3 kB / 3.545 GB, free: 25.84 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/11.24, allocations: 0.7951 MB / 3.545 GB, free: 25.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002548/11.24, allocations: 48.94 kB / 3.545 GB, free: 25.67 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003688/11.24, allocations: 463.9 kB / 3.546 GB, free: 25.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00028/11.24, allocations: 227 kB / 3.546 GB, free: 25.26 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.752e-05/11.24, allocations: 17.78 kB / 3.546 GB, free: 25.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/11.24, allocations: 347.1 kB / 3.546 GB, free: 24.95 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001626/11.24, allocations: 457.9 kB / 3.547 GB, free: 24.94 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001801/11.24, allocations: 0.7179 MB / 3.548 GB, free: 24.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/11.25, allocations: 489 kB / 3.548 GB, free: 24.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/11.25, allocations: 3.906 kB / 3.548 GB, free: 24.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004353/11.25, allocations: 1.228 MB / 3.549 GB, free: 24.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.151e-05/11.25, allocations: 8.5 kB / 3.549 GB, free: 24.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/11.25, allocations: 7.594 kB / 3.549 GB, free: 24.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005527/11.25, allocations: 93.83 kB / 3.549 GB, free: 24.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007197/11.26, allocations: 428.7 kB / 3.55 GB, free: 24.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/11.27, allocations: 6.464 MB / 3.556 GB, free: 34.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002258/11.27, allocations: 145.1 kB / 3.556 GB, free: 34.66 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002244/11.27, allocations: 51.2 kB / 3.556 GB, free: 34.65 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.001062/11.27, allocations: 351.4 kB / 3.557 GB, free: 34.52 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003352/11.27, allocations: 87.33 kB / 3.557 GB, free: 34.48 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005288/11.28, allocations: 2.195 MB / 3.559 GB, free: 34.2 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.952e-05/11.28, allocations: 22.09 kB / 3.559 GB, free: 34.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/11.28, allocations: 0 / 3.559 GB, free: 34.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/11.28, allocations: 3.75 kB / 3.559 GB, free: 34.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008246/11.29, allocations: 3.431 MB / 3.562 GB, free: 33.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/11.29, allocations: 6.75 kB / 3.562 GB, free: 33.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00678/11.29, allocations: 366.4 kB / 3.563 GB, free: 33.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005555/11.29, allocations: 98.7 kB / 3.563 GB, free: 33.74 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000174/11.29, allocations: 23.45 kB / 3.563 GB, free: 33.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00943/11.3, allocations: 6.449 MB / 3.569 GB, free: 27.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/11.3, allocations: 3.938 kB / 3.569 GB, free: 27.89 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005609/11.31, allocations: 2.178 MB / 3.571 GB, free: 27.51 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007103/11.31, allocations: 311.2 kB / 3.571 GB, free: 27.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003374/11.31, allocations: 26.38 kB / 3.571 GB, free: 27.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/11.31, allocations: 115.3 kB / 3.572 GB, free: 27.31 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004117/11.31, allocations: 129.3 kB / 3.572 GB, free: 27.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.098e-05/11.31, allocations: 29.73 kB / 3.572 GB, free: 27.31 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001491/11.31, allocations: 0.7814 MB / 3.572 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.8e-07/11.31, allocations: 0 / 3.572 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006843/11.32, allocations: 1.291 MB / 3.574 GB, free: 27.04 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01077/11.33, allocations: 1.902 MB / 3.576 GB, free: 26.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009199/11.34, allocations: 1.363 MB / 3.577 GB, free: 26.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/11.34, allocations: 0 / 3.577 GB, free: 26.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007428/11.35, allocations: 0.9397 MB / 3.578 GB, free: 26.13 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004639/11.35, allocations: 0.5055 MB / 3.578 GB, free: 26 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006462/11.36, allocations: 3.014 MB / 3.581 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009431/11.36, allocations: 1.22 MB / 3.582 GB, free: 23.56 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005621/11.36, allocations: 91.98 kB / 3.583 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of SimCode: time 1.342e-06/11.36, allocations: 0 / 3.583 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of Templates: time 0.5034/11.86, allocations: 63.75 MB / 3.645 GB, free: 74.1 MB / 0.5105 GB