Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") Notification: Performance of loadModel(ModelicaTest): time 2.149/2.149, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000435/0.0004351, allocations: 12 kB / 282.6 MB, free: 9.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2838, allocations: 48.7 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.801/6.085, allocations: 2.486 GB / 2.809 GB, free: 52.97 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00025/6.085, allocations: 83.95 kB / 2.81 GB, free: 52.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.22/8.305, allocations: 0.538 GB / 3.348 GB, free: 7.055 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.773e-06/8.305, allocations: 4 kB / 3.348 GB, free: 7.051 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.815e-05/8.306, allocations: 23.28 kB / 3.348 GB, free: 7.031 MB / 442.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.00705/8.313, allocations: 2.08 MB / 3.35 GB, free: 4.934 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/8.313, allocations: 10.88 kB / 3.35 GB, free: 4.926 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003056/8.316, allocations: 310.5 kB / 3.35 GB, free: 4.621 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/8.318, allocations: 0.6933 MB / 3.351 GB, free: 3.891 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/8.318, allocations: 304.8 kB / 3.351 GB, free: 3.543 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/8.318, allocations: 86.53 kB / 3.351 GB, free: 3.461 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004152/8.322, allocations: 1.501 MB / 3.352 GB, free: 1.875 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.976e-05/8.322, allocations: 4 kB / 3.352 GB, free: 1.871 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/8.322, allocations: 40.69 kB / 3.352 GB, free: 1.832 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.469e-05/8.322, allocations: 41.94 kB / 3.352 GB, free: 1.789 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004403/8.327, allocations: 1.37 MB / 3.354 GB, free: 432 kB / 442.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.01229/8.339, allocations: 6.368 MB / 3.36 GB, free: 9.586 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00399/8.343, allocations: 0.9844 MB / 3.361 GB, free: 8.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.325/8.668, allocations: 18.54 MB / 3.379 GB, free: 43.64 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/8.668, allocations: 45.66 kB / 3.379 GB, free: 43.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=59): time 3.377e-06/8.668, allocations: 0 / 3.379 GB, free: 43.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=64): time 0.01078/8.679, allocations: 2.984 MB / 3.382 GB, free: 43.17 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.295e-05/8.679, allocations: 167 kB / 3.382 GB, free: 42.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/8.68, allocations: 0.6995 MB / 3.383 GB, free: 42.86 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/8.681, allocations: 50.47 kB / 3.383 GB, free: 42.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000321/8.681, allocations: 472.5 kB / 3.383 GB, free: 42.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/8.681, allocations: 219.9 kB / 3.384 GB, free: 42.47 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.852e-05/8.681, allocations: 17.56 kB / 3.384 GB, free: 42.47 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.343e-05/8.681, allocations: 352.1 kB / 3.384 GB, free: 42.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/8.683, allocations: 450.8 kB / 3.384 GB, free: 42.16 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/8.684, allocations: 0.7206 MB / 3.385 GB, free: 41.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/8.686, allocations: 487 kB / 3.386 GB, free: 41.83 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.15e-06/8.686, allocations: 3 kB / 3.386 GB, free: 41.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003997/8.69, allocations: 1.223 MB / 3.387 GB, free: 41.76 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/8.69, allocations: 9.969 kB / 3.387 GB, free: 41.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/8.69, allocations: 8.031 kB / 3.387 GB, free: 41.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004541/8.69, allocations: 101.5 kB / 3.387 GB, free: 41.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004362/8.695, allocations: 421.8 kB / 3.387 GB, free: 41.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006801/8.701, allocations: 6.466 MB / 3.394 GB, free: 35.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/8.703, allocations: 143.1 kB / 3.394 GB, free: 35.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/8.703, allocations: 46.98 kB / 3.394 GB, free: 35.96 MB / 458.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 () * 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.0007498/8.704, allocations: 347.5 kB / 3.394 GB, free: 35.84 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002614/8.704, allocations: 87.22 kB / 3.394 GB, free: 35.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004035/8.708, allocations: 2.205 MB / 3.396 GB, free: 35.58 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/8.708, allocations: 20.45 kB / 3.396 GB, free: 35.58 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.284e-06/8.708, allocations: 3.953 kB / 3.396 GB, free: 35.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/8.708, allocations: 6.969 kB / 3.396 GB, free: 35.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00657/8.715, allocations: 3.433 MB / 3.4 GB, free: 35.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.004e-05/8.715, allocations: 0 / 3.4 GB, free: 35.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003996/8.719, allocations: 373.8 kB / 3.4 GB, free: 35.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004557/8.72, allocations: 94.81 kB / 3.4 GB, free: 35.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001358/8.72, allocations: 22.52 kB / 3.4 GB, free: 35.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006555/8.726, allocations: 6.446 MB / 3.407 GB, free: 29.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.751e-06/8.726, allocations: 0 / 3.407 GB, free: 29.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00436/8.731, allocations: 2.233 MB / 3.409 GB, free: 28.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006067/8.731, allocations: 318.2 kB / 3.409 GB, free: 28.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/8.732, allocations: 28.61 kB / 3.409 GB, free: 28.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/8.733, allocations: 113.3 kB / 3.409 GB, free: 28.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003389/8.733, allocations: 132.7 kB / 3.409 GB, free: 28.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.429e-05/8.733, allocations: 25.94 kB / 3.409 GB, free: 28.76 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001241/8.734, allocations: 0.7814 MB / 3.41 GB, free: 28.65 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.94e-07/8.735, allocations: 3 kB / 3.41 GB, free: 28.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005496/8.74, allocations: 1.283 MB / 3.411 GB, free: 28.65 MB / 458.7 MB 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.008569/8.749, allocations: 1.885 MB / 3.413 GB, free: 28.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005621/8.754, allocations: 1.329 MB / 3.414 GB, free: 28.44 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.485e-06/8.754, allocations: 3.875 kB / 3.414 GB, free: 28.44 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00433/8.759, allocations: 0.901 MB / 3.415 GB, free: 28.43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/8.762, allocations: 0.5035 MB / 3.416 GB, free: 28.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/8.767, allocations: 3.009 MB / 3.419 GB, free: 27.17 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007619/8.768, allocations: 1.223 MB / 3.42 GB, free: 26.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004549/8.768, allocations: 91.58 kB / 3.42 GB, free: 26.45 MB / 458.7 MB Notification: Performance of SimCode: time 1.599e-06/8.768, allocations: 0 / 3.42 GB, free: 26.45 MB / 458.7 MB Notification: Performance of Templates: time 0.08105/8.849, allocations: 63.58 MB / 3.482 GB, free: 23.07 MB / 458.7 MB