Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.3/2.3, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.805e-05/3.829e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3228, allocations: 54.85 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.873/6.195, allocations: 2.597 GB / 2.953 GB, free: 83.51 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/6.196, allocations: 84.66 kB / 2.953 GB, free: 83.43 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.391/8.586, allocations: 0.5503 GB / 3.503 GB, free: 43.07 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.888e-06/8.586, allocations: 4.812 kB / 3.503 GB, free: 43.07 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.412e-05/8.587, allocations: 27.03 kB / 3.503 GB, free: 43.06 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.007144/8.594, allocations: 2.031 MB / 3.505 GB, free: 42.06 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/8.594, allocations: 9.812 kB / 3.505 GB, free: 42.06 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003115/8.597, allocations: 326.2 kB / 3.505 GB, free: 42.01 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/8.599, allocations: 0.6996 MB / 3.506 GB, free: 41.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/8.599, allocations: 300.8 kB / 3.506 GB, free: 41.48 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002202/8.599, allocations: 88.86 kB / 3.506 GB, free: 41.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003639/8.603, allocations: 1.467 MB / 3.508 GB, free: 41.21 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.886e-05/8.603, allocations: 10.27 kB / 3.508 GB, free: 41.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001572/8.603, allocations: 38.03 kB / 3.508 GB, free: 41.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.452e-05/8.603, allocations: 36.25 kB / 3.508 GB, free: 41.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003553/8.607, allocations: 1.272 MB / 3.509 GB, free: 41.2 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.009689/8.616, allocations: 6.367 MB / 3.515 GB, free: 37.11 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002771/8.619, allocations: 0.8848 MB / 3.516 GB, free: 37.05 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006978/8.62, allocations: 370.2 kB / 3.517 GB, free: 37.04 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04095/8.661, allocations: 18.7 MB / 3.535 GB, free: 25.06 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/8.661, allocations: 46.77 kB / 3.535 GB, free: 25.01 MB / 490.7 MB Notification: Performance of pre-optimization done (n=59): time 3.989e-06/8.661, allocations: 0 / 3.535 GB, free: 25.01 MB / 490.7 MB Notification: Performance of matching and sorting (n=64): time 0.008325/8.669, allocations: 2.473 MB / 3.537 GB, free: 23.94 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.876e-05/8.669, allocations: 161.4 kB / 3.537 GB, free: 23.75 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/8.67, allocations: 0.7031 MB / 3.538 GB, free: 23.46 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/8.671, allocations: 48.88 kB / 3.538 GB, free: 23.41 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/8.671, allocations: 466.1 kB / 3.539 GB, free: 23.02 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/8.671, allocations: 215.8 kB / 3.539 GB, free: 22.86 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.312e-05/8.671, allocations: 23.78 kB / 3.539 GB, free: 22.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.551e-05/8.671, allocations: 348 kB / 3.539 GB, free: 22.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008511/8.672, allocations: 384.2 kB / 3.54 GB, free: 22.38 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009142/8.673, allocations: 0.6494 MB / 3.54 GB, free: 21.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007843/8.674, allocations: 427 kB / 3.541 GB, free: 21.74 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.646e-06/8.674, allocations: 7.781 kB / 3.541 GB, free: 21.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002372/8.676, allocations: 1.104 MB / 3.542 GB, free: 21.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/8.676, allocations: 9.125 kB / 3.542 GB, free: 21.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/8.676, allocations: 8.469 kB / 3.542 GB, free: 21.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004283/8.677, allocations: 97.97 kB / 3.542 GB, free: 21.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005245/8.682, allocations: 424.3 kB / 3.542 GB, free: 21.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0066/8.689, allocations: 6.408 MB / 3.548 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001663/8.69, allocations: 136.8 kB / 3.549 GB, free: 15.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/8.691, allocations: 46.88 kB / 3.549 GB, free: 15.04 MB / 490.7 MB 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 () * 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.0003069/8.691, allocations: 184.2 kB / 3.549 GB, free: 14.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002348/8.691, allocations: 89 kB / 3.549 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003169/8.694, allocations: 2.075 MB / 3.551 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.313e-05/8.694, allocations: 24.84 kB / 3.551 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.641e-06/8.694, allocations: 0 / 3.551 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/8.694, allocations: 3.047 kB / 3.551 GB, free: 13.86 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005697/8.7, allocations: 3.313 MB / 3.554 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.296e-06/8.7, allocations: 2.5 kB / 3.554 GB, free: 12.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004971/8.705, allocations: 360 kB / 3.555 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00046/8.706, allocations: 101.9 kB / 3.555 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/8.706, allocations: 22.75 kB / 3.555 GB, free: 12.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007557/8.713, allocations: 6.393 MB / 3.561 GB, free: 22.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/8.713, allocations: 0 / 3.561 GB, free: 22.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003482/8.717, allocations: 2.041 MB / 3.563 GB, free: 21.05 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006118/8.718, allocations: 312.4 kB / 3.563 GB, free: 20.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002702/8.718, allocations: 26.48 kB / 3.563 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/8.719, allocations: 118.8 kB / 3.563 GB, free: 20.78 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003268/8.719, allocations: 132.6 kB / 3.563 GB, free: 20.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-05/8.72, allocations: 24.61 kB / 3.563 GB, free: 20.76 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001293/8.721, allocations: 0.7663 MB / 3.564 GB, free: 20.44 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.002e-06/8.721, allocations: 0 / 3.564 GB, free: 20.44 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005451/8.726, allocations: 1.292 MB / 3.565 GB, free: 20.18 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]) * 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.008453/8.735, allocations: 1.896 MB / 3.567 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005513/8.74, allocations: 1.199 MB / 3.568 GB, free: 19.32 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.82e-06/8.74, allocations: 0 / 3.568 GB, free: 19.32 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003996/8.744, allocations: 0.8459 MB / 3.569 GB, free: 18.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003005/8.748, allocations: 0.5004 MB / 3.57 GB, free: 18.38 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003737/8.751, allocations: 1.936 MB / 3.572 GB, free: 16.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009531/8.752, allocations: 1.222 MB / 3.573 GB, free: 15.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004066/8.753, allocations: 90.66 kB / 3.573 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of SimCode: time 1.761e-06/8.753, allocations: 0 / 3.573 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of Templates: time 0.3994/9.152, allocations: 63.49 MB / 3.635 GB, free: 54.57 MB / 0.4948 GB