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 1.88/1.88, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004436/0.0004438, allocations: 16 kB / 282.5 MB, free: 9.629 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2844, allocations: 48.7 MB / 331.2 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts): time 0.07039/0.3548, allocations: 49.28 MB / 380.5 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02405/0.3789, allocations: 14.01 MB / 394.5 MB, free: 15.12 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.3801, allocations: 27.75 kB / 394.5 MB, free: 15.09 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001386/0.3815, allocations: 386.2 kB / 394.9 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0143/0.3958, allocations: 3.837 MB / 398.7 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006795/0.4026, allocations: 1.87 MB / 400.6 MB, free: 8.992 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003002/0.4057, allocations: 1.666 MB / 402.3 MB, free: 7.32 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.407, allocations: 0.6899 MB / 403 MB, free: 6.613 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007859/0.4149, allocations: 3.582 MB / 406.5 MB, free: 3.027 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006697/0.4217, allocations: 3.251 MB / 409.8 MB, free: 15.77 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002306/0.4219, allocations: 52 kB / 409.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01749/0.4394, allocations: 7.004 MB / 416.8 MB, free: 8.711 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004819/0.44, allocations: 255.2 kB / 417.1 MB, free: 8.461 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004709/0.4405, allocations: 233.2 kB / 417.3 MB, free: 8.227 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008188/0.4487, allocations: 3.695 MB / 421 MB, free: 4.523 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.4487, allocations: 4 kB / 421 MB, free: 4.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.73e-06/0.4487, allocations: 0 / 421 MB, free: 4.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.264e-05/0.4488, allocations: 0 / 421 MB, free: 4.52 MB / 346.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.005249/0.454, allocations: 1.688 MB / 422.7 MB, free: 2.781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.4541, allocations: 8.031 kB / 422.7 MB, free: 2.773 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003112/0.4572, allocations: 318.5 kB / 423 MB, free: 2.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.4588, allocations: 0.6406 MB / 423.7 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000335/0.4592, allocations: 299.6 kB / 424 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.4594, allocations: 83.97 kB / 424 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004641/0.464, allocations: 1.527 MB / 425.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/0.4641, allocations: 3.938 kB / 425.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.4643, allocations: 36 kB / 425.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-05/0.4644, allocations: 38 kB / 425.6 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004683/0.4691, allocations: 1.377 MB / 427 MB, free: 14.29 MB / 362.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.01189/0.481, allocations: 6.409 MB / 433.4 MB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003926/0.485, allocations: 0.9999 MB / 434.4 MB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04462/0.5296, allocations: 18.8 MB / 453.2 MB, free: 1.305 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.737e-05/0.5297, allocations: 43.12 kB / 453.3 MB, free: 1.254 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.45e-06/0.5297, allocations: 0 / 453.3 MB, free: 1.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.01141/0.5412, allocations: 3.02 MB / 456.3 MB, free: 14.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.5413, allocations: 166.7 kB / 456.5 MB, free: 13.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.5427, allocations: 0.7933 MB / 457.2 MB, free: 13.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/0.5429, allocations: 53.69 kB / 457.3 MB, free: 13.12 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/0.5434, allocations: 465.5 kB / 457.8 MB, free: 12.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000302/0.5437, allocations: 224.9 kB / 458 MB, free: 12.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.952e-05/0.5438, allocations: 16 kB / 458 MB, free: 12.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.544, allocations: 354.8 kB / 458.3 MB, free: 12.07 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/0.5454, allocations: 453.7 kB / 458.8 MB, free: 11.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.547, allocations: 0.7312 MB / 459.5 MB, free: 10.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.5485, allocations: 490.8 kB / 460 MB, free: 10.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.923e-06/0.5485, allocations: 4 kB / 460 MB, free: 10.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003656/0.5522, allocations: 1.239 MB / 461.2 MB, free: 9.035 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/0.5522, allocations: 12 kB / 461.2 MB, free: 9.023 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.5523, allocations: 8 kB / 461.3 MB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004743/0.5528, allocations: 96.69 kB / 461.3 MB, free: 8.918 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/0.5568, allocations: 363.8 kB / 461.7 MB, free: 8.562 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008433/0.5653, allocations: 6.418 MB / 468.1 MB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.5667, allocations: 136 kB / 468.3 MB, free: 1.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.5669, allocations: 47.94 kB / 468.3 MB, free: 1.41 MB / 394.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.0007292/0.5676, allocations: 343.6 kB / 468.6 MB, free: 1.066 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000253/0.5679, allocations: 86.97 kB / 468.7 MB, free: 0.9805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004614/0.5725, allocations: 2.207 MB / 470.9 MB, free: 14.75 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.626e-05/0.5726, allocations: 23.97 kB / 470.9 MB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.071e-06/0.5726, allocations: 3.953 kB / 471 MB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.5726, allocations: 7.922 kB / 471 MB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007537/0.5802, allocations: 3.442 MB / 474.4 MB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.5802, allocations: 4 kB / 474.4 MB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003797/0.584, allocations: 303.6 kB / 474.7 MB, free: 10.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005033/0.5846, allocations: 104.8 kB / 474.8 MB, free: 10.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/0.5847, allocations: 15.98 kB / 474.8 MB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008441/0.5932, allocations: 6.41 MB / 481.2 MB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.822e-06/0.5932, allocations: 0 / 481.2 MB, free: 3.828 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005012/0.5982, allocations: 2.183 MB / 483.4 MB, free: 1.609 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006319/0.5989, allocations: 314.9 kB / 483.7 MB, free: 1.281 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002421/0.5992, allocations: 28.05 kB / 483.7 MB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.6002, allocations: 111.8 kB / 483.9 MB, free: 1.145 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/0.6006, allocations: 140.2 kB / 484 MB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.234e-05/0.6007, allocations: 27.97 kB / 484 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001473/0.6022, allocations: 0.7735 MB / 484.8 MB, free: 204 kB / 410.7 MB Notification: Performance of sort global known variables: time 7.67e-07/0.6022, allocations: 0 / 484.8 MB, free: 204 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.2263/0.8285, allocations: 1.21 MB / 486 MB, free: 135.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.level,tank.medium.h) * 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.005528/0.8341, allocations: 1.28 MB / 487.3 MB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00599/0.8401, allocations: 1.313 MB / 488.6 MB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.464e-06/0.8402, allocations: 4.219 kB / 488.6 MB, free: 135.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004589/0.8448, allocations: 0.8946 MB / 489.5 MB, free: 135.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003003/0.8478, allocations: 0.5088 MB / 490 MB, free: 135.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005009/0.8528, allocations: 3.017 MB / 493 MB, free: 133.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008199/0.8537, allocations: 1.221 MB / 494.2 MB, free: 133.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004127/0.8541, allocations: 90.92 kB / 494.3 MB, free: 133.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.645e-06/0.8541, allocations: 0 / 494.3 MB, free: 133.1 MB / 410.7 MB Notification: Performance of Templates: time 0.07595/0.9301, allocations: 61.75 MB / 0.5431 GB, free: 79.11 MB / 410.7 MB