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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.273/2.273, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.749e-05, allocations: 7.984 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3467, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.123/6.47, allocations: 2.596 GB / 2.946 GB, free: 28.17 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/6.47, allocations: 84.56 kB / 2.946 GB, free: 28.09 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.373/8.843, allocations: 0.5449 GB / 3.491 GB, free: 31.29 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.149e-06/8.843, allocations: 0 / 3.491 GB, free: 31.29 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.168e-05/8.843, allocations: 27.94 kB / 3.491 GB, free: 31.27 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.006983/8.85, allocations: 2.031 MB / 3.493 GB, free: 29.23 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/8.85, allocations: 8.031 kB / 3.493 GB, free: 29.23 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00309/8.853, allocations: 320.6 kB / 3.493 GB, free: 28.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/8.855, allocations: 0.7095 MB / 3.494 GB, free: 28.17 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001771/8.855, allocations: 267.6 kB / 3.494 GB, free: 27.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/8.856, allocations: 48.34 kB / 3.494 GB, free: 27.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002002/8.858, allocations: 0.976 MB / 3.495 GB, free: 26.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00219/8.86, allocations: 1.138 MB / 3.496 GB, free: 25.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.834e-05/8.86, allocations: 7.938 kB / 3.496 GB, free: 25.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/8.86, allocations: 8 kB / 3.496 GB, free: 25.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.846e-05/8.86, allocations: 34 kB / 3.496 GB, free: 25.56 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.05403/8.914, allocations: 27.31 MB / 3.523 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/8.916, allocations: 0.4993 MB / 3.523 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006893/8.916, allocations: 322.6 kB / 3.523 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004725/8.917, allocations: 404 kB / 3.524 GB, free: 10.01 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/8.917, allocations: 39 kB / 3.524 GB, free: 9.957 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=54): time 4.163e-06/8.917, allocations: 0 / 3.524 GB, free: 9.957 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59): time 0.006811/8.924, allocations: 1.9 MB / 3.526 GB, free: 8.004 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.495e-05/8.924, allocations: 137.1 kB / 3.526 GB, free: 7.84 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/8.925, allocations: 0.5177 MB / 3.526 GB, free: 7.316 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001923/8.925, allocations: 33.7 kB / 3.526 GB, free: 7.277 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005046/8.926, allocations: 0.503 MB / 3.527 GB, free: 6.77 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002976/8.926, allocations: 193.4 kB / 3.527 GB, free: 6.578 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.237e-05/8.926, allocations: 0 / 3.527 GB, free: 6.578 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002038/8.926, allocations: 346.8 kB / 3.527 GB, free: 6.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008494/8.927, allocations: 365.8 kB / 3.528 GB, free: 5.875 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0011/8.928, allocations: 0.6265 MB / 3.528 GB, free: 5.129 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/8.929, allocations: 403.8 kB / 3.529 GB, free: 4.738 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/8.929, allocations: 7.984 kB / 3.529 GB, free: 4.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003042/8.932, allocations: 1.008 MB / 3.53 GB, free: 3.715 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.211e-05/8.933, allocations: 8 kB / 3.53 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/8.933, allocations: 8 kB / 3.53 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004386/8.933, allocations: 93.14 kB / 3.53 GB, free: 3.609 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004672/8.938, allocations: 433.9 kB / 3.53 GB, free: 3.188 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.32/9.258, allocations: 6.197 MB / 3.536 GB, free: 61.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/9.259, allocations: 140.9 kB / 3.536 GB, free: 61.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/9.26, allocations: 45.95 kB / 3.536 GB, free: 61.84 MB / 0.4948 GB 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.0003534/9.26, allocations: 151.5 kB / 3.537 GB, free: 61.73 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002318/9.26, allocations: 71.69 kB / 3.537 GB, free: 61.73 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003183/9.263, allocations: 1.559 MB / 3.538 GB, free: 61.62 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.613e-05/9.264, allocations: 17.75 kB / 3.538 GB, free: 61.62 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.947e-06/9.264, allocations: 1.906 kB / 3.538 GB, free: 61.62 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/9.264, allocations: 7.109 kB / 3.538 GB, free: 61.62 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005399/9.269, allocations: 2.689 MB / 3.541 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.781e-06/9.269, allocations: 0 / 3.541 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004024/9.273, allocations: 352.3 kB / 3.541 GB, free: 61.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004269/9.274, allocations: 93.41 kB / 3.541 GB, free: 61.26 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/9.274, allocations: 13.94 kB / 3.541 GB, free: 61.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006119/9.28, allocations: 6.19 MB / 3.547 GB, free: 55.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.364e-06/9.28, allocations: 7.656 kB / 3.547 GB, free: 55.74 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003016/9.283, allocations: 1.723 MB / 3.549 GB, free: 55.37 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004125/9.283, allocations: 222.4 kB / 3.549 GB, free: 55.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001914/9.284, allocations: 15.25 kB / 3.549 GB, free: 55.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009826/9.285, allocations: 96.86 kB / 3.549 GB, free: 55.22 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/9.285, allocations: 130.1 kB / 3.549 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/9.285, allocations: 24.92 kB / 3.549 GB, free: 55.21 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0007645/9.286, allocations: 0.496 MB / 3.55 GB, free: 55.11 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.35e-07/9.286, allocations: 0.875 kB / 3.55 GB, free: 55.11 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005263/9.291, allocations: 1.235 MB / 3.551 GB, free: 55.11 MB / 0.4948 GB 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.008971/9.3, allocations: 2.018 MB / 3.553 GB, free: 54.97 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004755/9.305, allocations: 1.097 MB / 3.554 GB, free: 54.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.973e-06/9.305, allocations: 0 / 3.554 GB, free: 54.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003877/9.309, allocations: 0.7409 MB / 3.555 GB, free: 54.96 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/9.311, allocations: 336.2 kB / 3.555 GB, free: 54.95 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003522/9.315, allocations: 1.665 MB / 3.557 GB, free: 54.53 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000713/9.315, allocations: 1.16 MB / 3.558 GB, free: 53.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004283/9.316, allocations: 80.95 kB / 3.558 GB, free: 53.82 MB / 0.4948 GB Notification: Performance of SimCode: time 2.493e-06/9.316, allocations: 0 / 3.558 GB, free: 53.82 MB / 0.4948 GB Notification: Performance of Templates: time 0.07934/9.395, allocations: 58.6 MB / 3.615 GB, free: 51.18 MB / 0.4948 GB