Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.098/2.098, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005865/0.0005866, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.4061, allocations: 48.7 MB / 331.8 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.098/7.504, allocations: 2.486 GB / 2.81 GB, free: 36.41 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/7.505, allocations: 94.08 kB / 2.81 GB, free: 36.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.748/10.25, allocations: 0.538 GB / 3.348 GB, free: 9.898 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.265e-06/10.25, allocations: 0 / 3.348 GB, free: 9.898 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.836e-05/10.25, allocations: 23.28 kB / 3.348 GB, free: 9.879 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.009319/10.26, allocations: 2.078 MB / 3.35 GB, free: 7.801 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/10.26, allocations: 8.031 kB / 3.35 GB, free: 7.793 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003432/10.27, allocations: 313.6 kB / 3.35 GB, free: 7.488 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002142/10.27, allocations: 0.7022 MB / 3.351 GB, free: 6.754 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/10.27, allocations: 303.4 kB / 3.351 GB, free: 6.414 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002064/10.27, allocations: 87.89 kB / 3.351 GB, free: 6.328 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005054/10.27, allocations: 1.504 MB / 3.353 GB, free: 4.738 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.756e-05/10.27, allocations: 8 kB / 3.353 GB, free: 4.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001692/10.27, allocations: 36.69 kB / 3.353 GB, free: 4.695 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.315e-05/10.27, allocations: 41.98 kB / 3.353 GB, free: 4.656 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005406/10.28, allocations: 1.366 MB / 3.354 GB, free: 3.285 MB / 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.01326/10.29, allocations: 6.36 MB / 3.361 GB, free: 12.51 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004957/10.3, allocations: 0.9851 MB / 3.362 GB, free: 11.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4114/10.71, allocations: 18.54 MB / 3.38 GB, free: 44.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.816e-05/10.71, allocations: 43.2 kB / 3.38 GB, free: 44.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=59): time 4.207e-06/10.71, allocations: 1.562 kB / 3.38 GB, free: 44.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=64): time 0.0149/10.72, allocations: 2.996 MB / 3.383 GB, free: 44.47 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.777e-05/10.72, allocations: 162.6 kB / 3.383 GB, free: 44.28 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/10.73, allocations: 0.789 MB / 3.384 GB, free: 44.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002799/10.73, allocations: 49.58 kB / 3.384 GB, free: 44.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003734/10.73, allocations: 468.1 kB / 3.384 GB, free: 43.87 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002946/10.73, allocations: 218.7 kB / 3.384 GB, free: 43.76 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.951e-05/10.73, allocations: 17.88 kB / 3.384 GB, free: 43.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/10.73, allocations: 355.3 kB / 3.385 GB, free: 43.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001691/10.73, allocations: 448.3 kB / 3.385 GB, free: 43.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001988/10.73, allocations: 0.7223 MB / 3.386 GB, free: 43.13 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001881/10.73, allocations: 486.4 kB / 3.386 GB, free: 43.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/10.73, allocations: 2.344 kB / 3.386 GB, free: 43.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004929/10.74, allocations: 1.232 MB / 3.387 GB, free: 43.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/10.74, allocations: 8.312 kB / 3.387 GB, free: 43.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.423e-05/10.74, allocations: 8.344 kB / 3.387 GB, free: 43.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005834/10.74, allocations: 97.72 kB / 3.388 GB, free: 43.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007537/10.75, allocations: 420.7 kB / 3.388 GB, free: 43.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009403/10.76, allocations: 6.469 MB / 3.394 GB, free: 37.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/10.76, allocations: 145 kB / 3.394 GB, free: 37.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001809/10.76, allocations: 46.97 kB / 3.394 GB, free: 37.25 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.000961/10.76, allocations: 342.5 kB / 3.395 GB, free: 37.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003368/10.76, allocations: 90.7 kB / 3.395 GB, free: 37.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005608/10.77, allocations: 2.204 MB / 3.397 GB, free: 36.87 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.63e-05/10.77, allocations: 20.22 kB / 3.397 GB, free: 36.87 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/10.77, allocations: 6.578 kB / 3.397 GB, free: 36.87 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/10.77, allocations: 4.391 kB / 3.397 GB, free: 36.87 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008532/10.77, allocations: 3.429 MB / 3.4 GB, free: 36.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/10.77, allocations: 3.812 kB / 3.4 GB, free: 36.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007035/10.78, allocations: 370.9 kB / 3.401 GB, free: 36.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005904/10.78, allocations: 100.8 kB / 3.401 GB, free: 36.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001669/10.78, allocations: 18.69 kB / 3.401 GB, free: 36.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008793/10.79, allocations: 6.442 MB / 3.407 GB, free: 30.67 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/10.79, allocations: 2.438 kB / 3.407 GB, free: 30.67 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005774/10.8, allocations: 2.169 MB / 3.409 GB, free: 30.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000742/10.8, allocations: 317.7 kB / 3.41 GB, free: 30.14 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003995/10.8, allocations: 30.52 kB / 3.41 GB, free: 30.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/10.8, allocations: 109.7 kB / 3.41 GB, free: 30.14 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004441/10.8, allocations: 133.2 kB / 3.41 GB, free: 30.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.673e-05/10.8, allocations: 34.22 kB / 3.41 GB, free: 30.14 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001546/10.8, allocations: 0.7747 MB / 3.411 GB, free: 30.03 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.61e-07/10.8, allocations: 0 / 3.411 GB, free: 30.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007069/10.81, allocations: 1.29 MB / 3.412 GB, free: 30.03 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.01131/10.82, allocations: 1.89 MB / 3.414 GB, free: 29.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009442/10.83, allocations: 1.354 MB / 3.415 GB, free: 29.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/10.83, allocations: 3.906 kB / 3.415 GB, free: 29.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007703/10.84, allocations: 0.9431 MB / 3.416 GB, free: 29.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004888/10.84, allocations: 0.5096 MB / 3.416 GB, free: 29.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006965/10.85, allocations: 3.002 MB / 3.419 GB, free: 28.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000828/10.85, allocations: 1.224 MB / 3.421 GB, free: 27.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005705/10.85, allocations: 84 kB / 3.421 GB, free: 27.83 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/10.85, allocations: 0 / 3.421 GB, free: 27.83 MB / 458.7 MB Notification: Performance of Templates: time 0.1092/10.96, allocations: 63.6 MB / 3.483 GB, free: 24.58 MB / 458.7 MB