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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.071/1.071, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.366e-05/2.369e-05, allocations: 4 kB / 148.1 MB, free: 6.219 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04481/0.04486, allocations: 25.18 MB / 173.3 MB, free: 13 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6137/0.6586, allocations: 240.1 MB / 413.4 MB, free: 78.13 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001742/0.6589, allocations: 69.73 kB / 413.5 MB, free: 78.11 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.294/1.953, allocations: 299.2 MB / 0.696 GB, free: 19.8 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.746e-06/1.953, allocations: 0 / 0.696 GB, free: 19.8 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001331/1.953, allocations: 47.12 kB / 0.696 GB, free: 19.79 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.005004/1.958, allocations: 1.932 MB / 0.6979 GB, free: 18.91 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/1.958, allocations: 8.344 kB / 0.6979 GB, free: 18.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005484/1.959, allocations: 185.3 kB / 0.6981 GB, free: 18.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00285/1.962, allocations: 1.187 MB / 0.6993 GB, free: 18.45 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.462e-05/1.962, allocations: 43.94 kB / 0.6993 GB, free: 18.45 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002448/1.962, allocations: 66.91 kB / 0.6994 GB, free: 18.45 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003152/1.965, allocations: 1.586 MB / 0.7009 GB, free: 18.43 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/1.969, allocations: 1.669 MB / 0.7025 GB, free: 18.15 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.367e-05/1.969, allocations: 1.594 kB / 0.7025 GB, free: 18.15 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002094/1.969, allocations: 3.969 kB / 0.7026 GB, free: 18.15 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001631/1.969, allocations: 110 kB / 0.7027 GB, free: 18.14 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/1.981, allocations: 7.171 MB / 0.7097 GB, free: 14.59 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/1.983, allocations: 1.088 MB / 0.7107 GB, free: 14.56 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/1.985, allocations: 0.68 MB / 0.7114 GB, free: 14.55 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005734/1.99, allocations: 3.278 MB / 0.7146 GB, free: 12.89 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/1.99, allocations: 49.66 kB / 0.7146 GB, free: 12.86 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 4.557e-06/1.99, allocations: 0 / 0.7146 GB, free: 12.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.0213/2.012, allocations: 4.502 MB / 0.719 GB, free: 12.21 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/2.012, allocations: 172.7 kB / 0.7192 GB, free: 12.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/2.013, allocations: 0.8715 MB / 0.72 GB, free: 11.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001742/2.013, allocations: 32.92 kB / 0.7201 GB, free: 11.83 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004556/2.014, allocations: 0.7037 MB / 0.7208 GB, free: 11.44 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003793/2.014, allocations: 440.5 kB / 0.7212 GB, free: 11.16 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/2.014, allocations: 2.156 kB / 0.7212 GB, free: 11.16 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/2.015, allocations: 378.8 kB / 0.7215 GB, free: 10.84 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/2.016, allocations: 0.6595 MB / 0.7222 GB, free: 10.84 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/2.017, allocations: 1.097 MB / 0.7233 GB, free: 10.33 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005839/2.023, allocations: 1.154 MB / 0.7244 GB, free: 10.3 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.665e-05/2.023, allocations: 3.844 kB / 0.7244 GB, free: 10.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.008951/2.032, allocations: 2.379 MB / 0.7267 GB, free: 10.18 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/2.032, allocations: 10.19 kB / 0.7267 GB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/2.032, allocations: 19.45 kB / 0.7267 GB, free: 10.17 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/2.034, allocations: 433 kB / 0.7272 GB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001672/2.036, allocations: 339.9 kB / 0.7275 GB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005266/2.041, allocations: 3.208 MB / 0.7306 GB, free: 8.059 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/2.043, allocations: 96.7 kB / 0.7307 GB, free: 8.055 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002912/2.043, allocations: 78.39 kB / 0.7308 GB, free: 8.055 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.0005383/2.044, allocations: 214.2 kB / 0.731 GB, free: 7.934 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003169/2.044, allocations: 152.9 kB / 0.7311 GB, free: 7.859 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007756/2.052, allocations: 2.322 MB / 0.7334 GB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-05/2.052, allocations: 15.03 kB / 0.7334 GB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/2.052, allocations: 3.375 kB / 0.7334 GB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/2.052, allocations: 6.234 kB / 0.7334 GB, free: 7.695 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01043/2.063, allocations: 3.737 MB / 0.7371 GB, free: 7.289 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/2.063, allocations: 3.719 kB / 0.7371 GB, free: 7.289 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/2.064, allocations: 234.7 kB / 0.7373 GB, free: 7.289 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/2.066, allocations: 438.4 kB / 0.7377 GB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/2.066, allocations: 23.03 kB / 0.7377 GB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004809/2.071, allocations: 3.023 MB / 0.7407 GB, free: 21.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/2.071, allocations: 3.406 kB / 0.7407 GB, free: 21.16 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008019/2.079, allocations: 3.155 MB / 0.7438 GB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005564/2.08, allocations: 231.1 kB / 0.744 GB, free: 20.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000293/2.08, allocations: 11.06 kB / 0.744 GB, free: 20.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/2.081, allocations: 79.58 kB / 0.7441 GB, free: 20.51 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003242/2.082, allocations: 154 kB / 0.7442 GB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001844/2.082, allocations: 56.2 kB / 0.7443 GB, free: 20.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001115/2.083, allocations: 0.6512 MB / 0.7449 GB, free: 20.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.82e-07/2.083, allocations: 1.312 kB / 0.7449 GB, free: 20.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.002862/2.086, allocations: 0.8253 MB / 0.7457 GB, free: 20.25 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.002352/2.088, allocations: 1.049 MB / 0.7468 GB, free: 19.97 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003642/2.092, allocations: 1.713 MB / 0.7484 GB, free: 19.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.877e-06/2.092, allocations: 0 / 0.7484 GB, free: 19.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002007/2.094, allocations: 0.9968 MB / 0.7494 GB, free: 19.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003665/2.098, allocations: 0.6781 MB / 0.7501 GB, free: 19.92 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00566/2.103, allocations: 2.758 MB / 0.7528 GB, free: 19.08 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001247/2.104, allocations: 1.411 MB / 0.7541 GB, free: 18.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007075/2.105, allocations: 153.9 kB / 0.7543 GB, free: 18.34 MB / 266.7 MB Notification: Performance of SimCode: time 1.904e-06/2.105, allocations: 0 / 0.7543 GB, free: 18.34 MB / 266.7 MB Notification: Performance of Templates: time 0.2361/2.341, allocations: 55.84 MB / 0.8088 GB, free: 33.71 MB / 266.7 MB