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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.15/1.15, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002669, allocations: 11.94 kB / 158.3 MB, free: 15.17 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04608/0.04637, allocations: 25.16 MB / 183.5 MB, free: 5.977 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6366/0.683, allocations: 238.6 MB / 422.1 MB, free: 54.99 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.6833, allocations: 70.59 kB / 422.1 MB, free: 54.96 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.227/1.91, allocations: 260.4 MB / 0.6665 GB, free: 22.04 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.303e-06/1.91, allocations: 0 / 0.6665 GB, free: 22.04 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001334/1.91, allocations: 39.34 kB / 0.6666 GB, free: 22.04 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.004868/1.915, allocations: 1.855 MB / 0.6684 GB, free: 21.21 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/1.915, allocations: 8.5 kB / 0.6684 GB, free: 21.21 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005449/1.916, allocations: 153 kB / 0.6686 GB, free: 21.14 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002567/1.918, allocations: 1.037 MB / 0.6696 GB, free: 20.8 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.911e-05/1.918, allocations: 77.22 kB / 0.6696 GB, free: 20.8 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/1.919, allocations: 87.44 kB / 0.6697 GB, free: 20.8 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003212/1.922, allocations: 1.529 MB / 0.6712 GB, free: 20.56 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.905e-05/1.922, allocations: 5.844 kB / 0.6712 GB, free: 20.56 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001826/1.922, allocations: 41.2 kB / 0.6713 GB, free: 20.56 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001685/1.922, allocations: 94.36 kB / 0.6713 GB, free: 20.56 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003217/1.925, allocations: 1.476 MB / 0.6728 GB, free: 20.55 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01055/1.936, allocations: 6.404 MB / 0.679 GB, free: 17.21 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00188/1.938, allocations: 0.8832 MB / 0.6799 GB, free: 17.18 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004257/1.942, allocations: 2.707 MB / 0.6826 GB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/1.942, allocations: 48.06 kB / 0.6826 GB, free: 15.58 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 4.34e-06/1.942, allocations: 1.406 kB / 0.6826 GB, free: 15.58 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.009967/1.952, allocations: 3.537 MB / 0.6861 GB, free: 14.73 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/1.952, allocations: 198.6 kB / 0.6862 GB, free: 14.51 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/1.954, allocations: 0.9825 MB / 0.6872 GB, free: 14.35 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001386/1.954, allocations: 47.75 kB / 0.6872 GB, free: 14.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004192/1.955, allocations: 0.6351 MB / 0.6879 GB, free: 13.96 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/1.955, allocations: 313.3 kB / 0.6882 GB, free: 13.77 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/1.955, allocations: 29.16 kB / 0.6882 GB, free: 13.77 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/1.955, allocations: 366.2 kB / 0.6885 GB, free: 13.46 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/1.956, allocations: 0.5071 MB / 0.689 GB, free: 13.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/1.958, allocations: 0.9743 MB / 0.69 GB, free: 12.89 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/1.959, allocations: 0.6403 MB / 0.6906 GB, free: 12.88 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/1.959, allocations: 6.953 kB / 0.6906 GB, free: 12.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003773/1.963, allocations: 1.691 MB / 0.6923 GB, free: 12.77 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/1.963, allocations: 16.61 kB / 0.6923 GB, free: 12.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/1.963, allocations: 15.91 kB / 0.6923 GB, free: 12.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004947/1.968, allocations: 0.6418 MB / 0.6929 GB, free: 12.75 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/1.969, allocations: 280.6 kB / 0.6932 GB, free: 12.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/1.972, allocations: 2.114 MB / 0.6953 GB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/1.973, allocations: 112.1 kB / 0.6954 GB, free: 11.18 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/1.974, allocations: 67.38 kB / 0.6954 GB, free: 11.18 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" fixed = true 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true 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" fixed = true 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: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009741/1.975, allocations: 429.8 kB / 0.6958 GB, free: 11.04 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/1.975, allocations: 134.5 kB / 0.696 GB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/1.979, allocations: 1.499 MB / 0.6974 GB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/1.979, allocations: 13.06 kB / 0.6974 GB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/1.979, allocations: 0 / 0.6974 GB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/1.979, allocations: 9.891 kB / 0.6975 GB, free: 10.85 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006203/1.985, allocations: 2.682 MB / 0.7001 GB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/1.985, allocations: 8.266 kB / 0.7001 GB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009709/1.986, allocations: 150.7 kB / 0.7002 GB, free: 10.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003991/1.99, allocations: 0.5966 MB / 0.7008 GB, free: 10.43 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002341/1.991, allocations: 28.73 kB / 0.7008 GB, free: 10.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/1.993, allocations: 2.095 MB / 0.7029 GB, free: 8.867 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.044e-06/1.993, allocations: 2.719 kB / 0.7029 GB, free: 8.867 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004479/1.997, allocations: 2.093 MB / 0.7049 GB, free: 8.508 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005968/1.998, allocations: 219.1 kB / 0.7051 GB, free: 8.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003212/1.998, allocations: 24.48 kB / 0.7052 GB, free: 8.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/1.999, allocations: 84.36 kB / 0.7052 GB, free: 8.328 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/2, allocations: 89.67 kB / 0.7053 GB, free: 8.328 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/2, allocations: 43.36 kB / 0.7054 GB, free: 8.328 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001305/2.001, allocations: 0.7459 MB / 0.7061 GB, free: 8.219 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.99e-07/2.001, allocations: 0 / 0.7061 GB, free: 8.219 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00298/2.004, allocations: 0.7606 MB / 0.7068 GB, free: 8.086 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002413/2.006, allocations: 0.9526 MB / 0.7078 GB, free: 7.828 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003239/2.01, allocations: 1.299 MB / 0.709 GB, free: 7.805 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.736e-06/2.01, allocations: 6.734 kB / 0.709 GB, free: 7.805 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/2.012, allocations: 0.6864 MB / 0.7097 GB, free: 7.797 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003418/2.015, allocations: 0.5527 MB / 0.7103 GB, free: 7.777 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005726/2.021, allocations: 3.231 MB / 0.7134 GB, free: 6.535 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/2.022, allocations: 1.267 MB / 0.7146 GB, free: 21.81 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005615/2.023, allocations: 118.3 kB / 0.7148 GB, free: 21.8 MB / 266.7 MB Notification: Performance of SimCode: time 2.461e-06/2.023, allocations: 2.781 kB / 0.7148 GB, free: 21.8 MB / 266.7 MB Notification: Performance of Templates: time 0.05935/2.082, allocations: 41.28 MB / 0.7551 GB, free: 8.16 MB / 266.7 MB