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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.07/2.07, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.677e-05/1.689e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3246, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.882/6.207, allocations: 2.485 GB / 2.798 GB, free: 21.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/6.207, allocations: 82.64 kB / 2.798 GB, free: 21.26 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.612/8.819, allocations: 0.5313 GB / 3.329 GB, free: 39.56 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.14e-06/8.819, allocations: 0 / 3.329 GB, free: 39.56 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.142e-05/8.82, allocations: 24.23 kB / 3.329 GB, free: 39.56 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.006949/8.827, allocations: 2.002 MB / 3.331 GB, free: 38.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/8.827, allocations: 9.844 kB / 3.331 GB, free: 38.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003179/8.83, allocations: 309.2 kB / 3.331 GB, free: 38.75 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/8.832, allocations: 0.6977 MB / 3.332 GB, free: 38.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/8.832, allocations: 270.4 kB / 3.332 GB, free: 38.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002066/8.832, allocations: 47.78 kB / 3.332 GB, free: 38.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002045/8.834, allocations: 0.9766 MB / 3.333 GB, free: 38.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/8.836, allocations: 1.139 MB / 3.334 GB, free: 37.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.85e-05/8.836, allocations: 11.16 kB / 3.334 GB, free: 37.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/8.836, allocations: 2.938 kB / 3.334 GB, free: 37.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.586e-05/8.837, allocations: 40.27 kB / 3.334 GB, free: 37.94 MB / 442.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.05525/8.892, allocations: 27.18 MB / 3.361 GB, free: 20.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/8.893, allocations: 0.5059 MB / 3.361 GB, free: 20.88 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005975/8.894, allocations: 323.5 kB / 3.362 GB, free: 20.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003289/8.894, allocations: 403.1 kB / 3.362 GB, free: 20.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/8.894, allocations: 45.83 kB / 3.362 GB, free: 20.46 MB / 442.7 MB Notification: Performance of pre-optimization done (n=54): time 3.96e-06/8.894, allocations: 0 / 3.362 GB, free: 20.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=59): time 0.006001/8.9, allocations: 1.874 MB / 3.364 GB, free: 20.03 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/8.9, allocations: 141 kB / 3.364 GB, free: 19.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008269/8.901, allocations: 0.5142 MB / 3.365 GB, free: 19.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/8.901, allocations: 40.39 kB / 3.365 GB, free: 19.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003069/8.901, allocations: 0.5034 MB / 3.365 GB, free: 19.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/8.902, allocations: 193.2 kB / 3.365 GB, free: 19.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.012e-05/8.902, allocations: 0 / 3.365 GB, free: 19.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.936e-05/8.902, allocations: 353.9 kB / 3.366 GB, free: 18.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007407/8.902, allocations: 357.1 kB / 3.366 GB, free: 18.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000893/8.903, allocations: 0.6217 MB / 3.367 GB, free: 18.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00108/8.905, allocations: 409.7 kB / 3.367 GB, free: 18.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.203e-06/8.905, allocations: 3.812 kB / 3.367 GB, free: 18.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002642/8.907, allocations: 1.009 MB / 3.368 GB, free: 18.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/8.907, allocations: 11.64 kB / 3.368 GB, free: 18.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/8.907, allocations: 7.719 kB / 3.368 GB, free: 18.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003982/8.908, allocations: 92.52 kB / 3.368 GB, free: 18.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004262/8.912, allocations: 422.3 kB / 3.369 GB, free: 18.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007678/8.92, allocations: 6.212 MB / 3.375 GB, free: 28.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/8.921, allocations: 131.4 kB / 3.375 GB, free: 28.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/8.921, allocations: 47.97 kB / 3.375 GB, free: 28.97 MB / 458.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003794/8.922, allocations: 155.9 kB / 3.375 GB, free: 28.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/8.922, allocations: 75.92 kB / 3.375 GB, free: 28.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002604/8.925, allocations: 1.559 MB / 3.377 GB, free: 28.64 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.906e-05/8.925, allocations: 17.67 kB / 3.377 GB, free: 28.64 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.831e-06/8.925, allocations: 2.594 kB / 3.377 GB, free: 28.64 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/8.925, allocations: 3.797 kB / 3.377 GB, free: 28.64 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004983/8.93, allocations: 2.697 MB / 3.379 GB, free: 28.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-06/8.93, allocations: 1.312 kB / 3.379 GB, free: 28.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004631/8.934, allocations: 346.1 kB / 3.38 GB, free: 28.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004301/8.935, allocations: 97 kB / 3.38 GB, free: 28.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/8.935, allocations: 7.109 kB / 3.38 GB, free: 28.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007742/8.943, allocations: 6.188 MB / 3.386 GB, free: 22.67 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.359e-06/8.943, allocations: 5.5 kB / 3.386 GB, free: 22.67 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003065/8.946, allocations: 1.731 MB / 3.387 GB, free: 22.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004465/8.946, allocations: 220 kB / 3.388 GB, free: 22.13 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/8.947, allocations: 19.89 kB / 3.388 GB, free: 22.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/8.948, allocations: 98.66 kB / 3.388 GB, free: 22.12 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003236/8.948, allocations: 118.7 kB / 3.388 GB, free: 22.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-05/8.948, allocations: 32.66 kB / 3.388 GB, free: 22.12 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008099/8.949, allocations: 0.4899 MB / 3.388 GB, free: 22.03 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.709e-06/8.949, allocations: 0 / 3.388 GB, free: 22.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005505/8.955, allocations: 1.218 MB / 3.39 GB, free: 21.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.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) * 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 (57): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.008812/8.963, allocations: 2.037 MB / 3.392 GB, free: 21.52 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004691/8.968, allocations: 1.095 MB / 3.393 GB, free: 21.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/8.968, allocations: 4.125 kB / 3.393 GB, free: 21.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003779/8.972, allocations: 0.7344 MB / 3.393 GB, free: 21.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/8.974, allocations: 342.2 kB / 3.394 GB, free: 21.47 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003523/8.978, allocations: 1.673 MB / 3.395 GB, free: 20.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009287/8.979, allocations: 1.156 MB / 3.396 GB, free: 20.24 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003916/8.979, allocations: 80.72 kB / 3.396 GB, free: 20.23 MB / 458.7 MB Notification: Performance of SimCode: time 2.208e-06/8.979, allocations: 0 / 3.396 GB, free: 20.23 MB / 458.7 MB Notification: Performance of Templates: time 0.07841/9.058, allocations: 58.41 MB / 3.454 GB, free: 11.82 MB / 458.7 MB