Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 0.956/0.956, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.377e-05/2.389e-05, allocations: 4 kB / 154.3 MB, free: 13.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1407, allocations: 25.15 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5012/0.642, allocations: 240.7 MB / 420.2 MB, free: 7.988 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001748/0.6422, allocations: 68.03 kB / 420.3 MB, free: 7.957 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.492/2.134, allocations: 300.9 MB / 0.7043 GB, free: 18.62 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.15e-06/2.134, allocations: 0 / 0.7043 GB, free: 18.62 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001692/2.134, allocations: 41.69 kB / 0.7043 GB, free: 18.62 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.005723/2.14, allocations: 1.931 MB / 0.7062 GB, free: 17.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/2.14, allocations: 11.75 kB / 0.7062 GB, free: 17.75 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005822/2.141, allocations: 182.6 kB / 0.7064 GB, free: 17.66 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002931/2.143, allocations: 1.187 MB / 0.7075 GB, free: 17.28 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/2.144, allocations: 96.91 kB / 0.7076 GB, free: 17.28 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002591/2.144, allocations: 112.3 kB / 0.7077 GB, free: 17.28 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003562/2.147, allocations: 1.824 MB / 0.7095 GB, free: 16.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.229e-05/2.148, allocations: 5.906 kB / 0.7095 GB, free: 16.99 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002186/2.148, allocations: 48.77 kB / 0.7096 GB, free: 16.99 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001858/2.148, allocations: 119.5 kB / 0.7097 GB, free: 16.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003813/2.152, allocations: 1.779 MB / 0.7114 GB, free: 16.97 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/2.164, allocations: 7.416 MB / 0.7187 GB, free: 13.35 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002117/2.166, allocations: 1.135 MB / 0.7198 GB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/2.167, allocations: 0.7139 MB / 0.7205 GB, free: 13.31 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005653/2.173, allocations: 3.347 MB / 0.7237 GB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/2.173, allocations: 57.47 kB / 0.7238 GB, free: 11.62 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 4.298e-06/2.173, allocations: 0 / 0.7238 GB, free: 11.62 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.01061/2.184, allocations: 3.929 MB / 0.7276 GB, free: 10.97 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/2.184, allocations: 174.5 kB / 0.7278 GB, free: 10.78 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/2.185, allocations: 1.084 MB / 0.7289 GB, free: 10.61 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001894/2.186, allocations: 57.55 kB / 0.7289 GB, free: 10.57 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004461/2.186, allocations: 0.6833 MB / 0.7296 GB, free: 10.21 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004054/2.187, allocations: 459.6 kB / 0.73 GB, free: 9.934 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/2.187, allocations: 34.67 kB / 0.7301 GB, free: 9.934 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/2.187, allocations: 375.8 kB / 0.7304 GB, free: 9.621 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/2.188, allocations: 0.6919 MB / 0.7311 GB, free: 9.621 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/2.19, allocations: 1.139 MB / 0.7322 GB, free: 9.109 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001664/2.192, allocations: 0.821 MB / 0.733 GB, free: 9.078 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/2.192, allocations: 6.312 kB / 0.733 GB, free: 9.078 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.0048/2.197, allocations: 2.182 MB / 0.7351 GB, free: 8.945 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/2.197, allocations: 14 kB / 0.7352 GB, free: 8.945 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/2.197, allocations: 13.03 kB / 0.7352 GB, free: 8.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006882/2.204, allocations: 0.9172 MB / 0.7361 GB, free: 8.914 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/2.206, allocations: 341.6 kB / 0.7364 GB, free: 8.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002876/2.209, allocations: 2.848 MB / 0.7392 GB, free: 6.832 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002212/2.211, allocations: 136.1 kB / 0.7393 GB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002843/2.211, allocations: 81.02 kB / 0.7394 GB, free: 6.824 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007819/2.212, allocations: 270.9 kB / 0.7396 GB, free: 22.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003615/2.212, allocations: 156.2 kB / 0.7398 GB, free: 22.62 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005711/2.218, allocations: 2.277 MB / 0.742 GB, free: 22.45 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/2.218, allocations: 15.31 kB / 0.742 GB, free: 22.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.271e-06/2.218, allocations: 0 / 0.742 GB, free: 22.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/2.218, allocations: 13.36 kB / 0.742 GB, free: 22.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008746/2.227, allocations: 3.831 MB / 0.7458 GB, free: 22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/2.227, allocations: 8.141 kB / 0.7458 GB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/2.229, allocations: 237.6 kB / 0.746 GB, free: 21.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00566/2.234, allocations: 0.8493 MB / 0.7468 GB, free: 21.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003146/2.235, allocations: 45.2 kB / 0.7469 GB, free: 21.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/2.238, allocations: 2.806 MB / 0.7496 GB, free: 19.87 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.068e-06/2.238, allocations: 2.438 kB / 0.7496 GB, free: 19.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006146/2.244, allocations: 3.113 MB / 0.7527 GB, free: 19.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006704/2.245, allocations: 251.5 kB / 0.7529 GB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/2.245, allocations: 41.47 kB / 0.7529 GB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/2.246, allocations: 101.2 kB / 0.753 GB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003243/2.247, allocations: 151.4 kB / 0.7532 GB, free: 19.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001885/2.247, allocations: 53.3 kB / 0.7532 GB, free: 19.19 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001473/2.248, allocations: 0.8394 MB / 0.7541 GB, free: 19.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.76e-07/2.248, allocations: 0 / 0.7541 GB, free: 19.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003277/2.252, allocations: 0.8956 MB / 0.7549 GB, free: 18.92 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002724/2.255, allocations: 1.064 MB / 0.756 GB, free: 18.64 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.004315/2.259, allocations: 1.799 MB / 0.7577 GB, free: 18.61 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/2.259, allocations: 2.219 kB / 0.7577 GB, free: 18.61 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002523/2.261, allocations: 1.033 MB / 0.7587 GB, free: 18.6 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004738/2.266, allocations: 0.7218 MB / 0.7594 GB, free: 18.58 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006381/2.273, allocations: 2.864 MB / 0.7622 GB, free: 17.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/2.274, allocations: 1.418 MB / 0.7636 GB, free: 17.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007966/2.275, allocations: 160.2 kB / 0.7638 GB, free: 17.01 MB / 266.7 MB Notification: Performance of SimCode: time 1.826e-06/2.275, allocations: 0 / 0.7638 GB, free: 17.01 MB / 266.7 MB Notification: Performance of Templates: time 0.2413/2.516, allocations: 56.52 MB / 0.819 GB, free: 32.08 MB / 266.7 MB