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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.243/2.243, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004323/0.0004324, allocations: 20 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2769, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.145/6.422, allocations: 2.597 GB / 2.957 GB, free: 148.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/6.422, allocations: 89.7 kB / 2.957 GB, free: 148.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.109/8.531, allocations: 0.5519 GB / 3.509 GB, free: 56 kB / 490.7 MB Notification: Performance of FrontEnd: time 2.551e-06/8.531, allocations: 0 / 3.509 GB, free: 56 kB / 490.7 MB Notification: Performance of Transformations before backend: time 6.491e-05/8.531, allocations: 20 kB / 3.509 GB, free: 36 kB / 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.008205/8.539, allocations: 2.127 MB / 3.511 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/8.539, allocations: 8.031 kB / 3.511 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00326/8.543, allocations: 324.5 kB / 3.512 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/8.545, allocations: 0.692 MB / 3.512 GB, free: 12.85 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003458/8.545, allocations: 311 kB / 3.513 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002991/8.545, allocations: 83.95 kB / 3.513 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004937/8.55, allocations: 1.502 MB / 3.514 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.073e-05/8.55, allocations: 3.938 kB / 3.514 GB, free: 10.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/8.551, allocations: 39.05 kB / 3.514 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.037e-05/8.551, allocations: 38 kB / 3.514 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004992/8.556, allocations: 1.369 MB / 3.516 GB, free: 9.387 MB / 0.4948 GB 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.01257/8.568, allocations: 6.359 MB / 3.522 GB, free: 2.594 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004031/8.572, allocations: 0.9763 MB / 3.523 GB, free: 1.602 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3532/8.926, allocations: 18.64 MB / 3.541 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.44e-05/8.926, allocations: 42.42 kB / 3.541 GB, free: 46.46 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=59): time 3.42e-06/8.926, allocations: 0 / 3.541 GB, free: 46.46 MB / 0.4948 GB Notification: Performance of matching and sorting (n=64): time 0.01082/8.937, allocations: 2.979 MB / 3.544 GB, free: 46.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/8.937, allocations: 165.7 kB / 3.544 GB, free: 45.85 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/8.938, allocations: 0.7038 MB / 3.545 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001276/8.938, allocations: 48.36 kB / 3.545 GB, free: 45.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/8.938, allocations: 467.9 kB / 3.545 GB, free: 45.44 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/8.938, allocations: 226.3 kB / 3.545 GB, free: 45.34 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.804e-05/8.939, allocations: 16.47 kB / 3.545 GB, free: 45.34 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.501e-05/8.939, allocations: 343.4 kB / 3.546 GB, free: 45.03 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/8.94, allocations: 457.1 kB / 3.546 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/8.941, allocations: 0.7158 MB / 3.547 GB, free: 44.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/8.943, allocations: 492.2 kB / 3.547 GB, free: 44.7 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.65e-06/8.943, allocations: 5.75 kB / 3.547 GB, free: 44.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003547/8.946, allocations: 1.228 MB / 3.549 GB, free: 44.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/8.946, allocations: 7.75 kB / 3.549 GB, free: 44.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/8.946, allocations: 16.34 kB / 3.549 GB, free: 44.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004385/8.947, allocations: 103.4 kB / 3.549 GB, free: 44.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005138/8.952, allocations: 416.9 kB / 3.549 GB, free: 44.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006978/8.959, allocations: 6.48 MB / 3.555 GB, free: 38.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/8.961, allocations: 141.7 kB / 3.556 GB, free: 38.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001546/8.961, allocations: 42.48 kB / 3.556 GB, free: 38.82 MB / 0.4948 GB 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.0007225/8.962, allocations: 346.3 kB / 3.556 GB, free: 38.7 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000259/8.962, allocations: 84.16 kB / 3.556 GB, free: 38.66 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004166/8.966, allocations: 2.201 MB / 3.558 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.407e-05/8.966, allocations: 21.62 kB / 3.558 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/8.966, allocations: 1.875 kB / 3.558 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/8.966, allocations: 3.516 kB / 3.558 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006913/8.973, allocations: 3.428 MB / 3.562 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/8.973, allocations: 6.875 kB / 3.562 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005058/8.978, allocations: 365.5 kB / 3.562 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000499/8.979, allocations: 108.9 kB / 3.562 GB, free: 38.03 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/8.979, allocations: 23.2 kB / 3.562 GB, free: 38.03 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006531/8.986, allocations: 6.432 MB / 3.568 GB, free: 32.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.675e-06/8.986, allocations: 7.891 kB / 3.568 GB, free: 32.23 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004688/8.99, allocations: 2.237 MB / 3.571 GB, free: 31.79 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005975/8.991, allocations: 311.2 kB / 3.571 GB, free: 31.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002889/8.991, allocations: 32.39 kB / 3.571 GB, free: 31.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/8.992, allocations: 122.7 kB / 3.571 GB, free: 31.62 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003333/8.993, allocations: 131.5 kB / 3.571 GB, free: 31.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/8.993, allocations: 24.42 kB / 3.571 GB, free: 31.61 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001222/8.994, allocations: 0.7806 MB / 3.572 GB, free: 31.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.92e-07/8.994, allocations: 0 / 3.572 GB, free: 31.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00547/9, allocations: 1.295 MB / 3.573 GB, free: 31.5 MB / 0.4948 GB 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.008538/9.008, allocations: 1.894 MB / 3.575 GB, free: 31.34 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005612/9.014, allocations: 1.324 MB / 3.576 GB, free: 31.33 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.072e-06/9.014, allocations: 3.5 kB / 3.576 GB, free: 31.33 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004245/9.018, allocations: 0.9029 MB / 3.577 GB, free: 31.33 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/9.021, allocations: 0.514 MB / 3.578 GB, free: 31.31 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004775/9.026, allocations: 3.008 MB / 3.581 GB, free: 30.05 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00076/9.027, allocations: 1.217 MB / 3.582 GB, free: 29.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004544/9.027, allocations: 91.78 kB / 3.582 GB, free: 29.33 MB / 0.4948 GB Notification: Performance of SimCode: time 1.526e-06/9.027, allocations: 2.625 kB / 3.582 GB, free: 29.33 MB / 0.4948 GB Notification: Performance of Templates: time 0.08315/9.111, allocations: 63.75 MB / 3.644 GB, free: 25.82 MB / 0.4948 GB