Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.702/1.702, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003562, allocations: 12 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08822/0.08859, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.205/1.293, allocations: 316.1 MB / 0.5749 GB, free: 99.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003513/1.294, allocations: 95.16 kB / 0.575 GB, free: 99.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9271/2.221, allocations: 141.9 MB / 0.7136 GB, free: 72.17 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.346e-06/2.221, allocations: 1.094 kB / 0.7136 GB, free: 72.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001519/2.221, allocations: 16.84 kB / 0.7136 GB, free: 72.17 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.004045/2.225, allocations: 1.167 MB / 0.7147 GB, free: 71.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/2.225, allocations: 9.516 kB / 0.7147 GB, free: 71.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006206/2.226, allocations: 96.59 kB / 0.7148 GB, free: 71.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/2.228, allocations: 0.641 MB / 0.7154 GB, free: 71.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/2.228, allocations: 91.31 kB / 0.7155 GB, free: 71.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/2.228, allocations: 49.88 kB / 0.7156 GB, free: 71.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002151/2.231, allocations: 0.7955 MB / 0.7164 GB, free: 71.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.342e-05/2.231, allocations: 5.125 kB / 0.7164 GB, free: 71.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/2.231, allocations: 26.12 kB / 0.7164 GB, free: 71.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.722e-05/2.231, allocations: 44.11 kB / 0.7164 GB, free: 71.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/2.233, allocations: 0.6682 MB / 0.7171 GB, free: 71.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006734/2.24, allocations: 3.404 MB / 0.7204 GB, free: 69.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/2.241, allocations: 397.9 kB / 0.7208 GB, free: 69.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002429/2.243, allocations: 1.293 MB / 0.722 GB, free: 68.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000665/2.244, allocations: 297.6 kB / 0.7223 GB, free: 68.31 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.076e-06/2.244, allocations: 0 / 0.7223 GB, free: 68.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.006041/2.25, allocations: 1.865 MB / 0.7242 GB, free: 67.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/2.25, allocations: 159.7 kB / 0.7243 GB, free: 67.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/2.251, allocations: 0.6902 MB / 0.725 GB, free: 67.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/2.251, allocations: 34.44 kB / 0.725 GB, free: 67.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/2.252, allocations: 419.8 kB / 0.7254 GB, free: 67.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/2.252, allocations: 138.5 kB / 0.7255 GB, free: 67.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.579e-05/2.252, allocations: 17.56 kB / 0.7256 GB, free: 67.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/2.252, allocations: 383 kB / 0.7259 GB, free: 66.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006895/2.253, allocations: 245.7 kB / 0.7262 GB, free: 66.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008115/2.254, allocations: 0.5272 MB / 0.7267 GB, free: 66.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007773/2.254, allocations: 353.7 kB / 0.727 GB, free: 66.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/2.254, allocations: 0 / 0.727 GB, free: 66.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002825/2.257, allocations: 0.9811 MB / 0.728 GB, free: 66.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002192/2.258, allocations: 385 kB / 0.7283 GB, free: 65.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/2.258, allocations: 13.52 kB / 0.7284 GB, free: 65.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008839/2.258, allocations: 124.4 kB / 0.7285 GB, free: 65.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/2.259, allocations: 152 kB / 0.7286 GB, free: 65.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008015/2.26, allocations: 0.6783 MB / 0.7293 GB, free: 65.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/2.261, allocations: 45.58 kB / 0.7293 GB, free: 65.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/2.262, allocations: 43.72 kB / 0.7294 GB, free: 65.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/2.262, allocations: 4.375 kB / 0.7294 GB, free: 65.27 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002808/2.264, allocations: 0.9203 MB / 0.7303 GB, free: 65.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/2.264, allocations: 10.97 kB / 0.7303 GB, free: 65.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007028/2.265, allocations: 111.7 kB / 0.7304 GB, free: 65.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009595/2.266, allocations: 150.2 kB / 0.7305 GB, free: 65.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006939/2.267, allocations: 0.6557 MB / 0.7312 GB, free: 64.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009577/2.268, allocations: 43.27 kB / 0.7312 GB, free: 64.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/2.268, allocations: 45.23 kB / 0.7313 GB, free: 64.69 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007875/2.269, allocations: 391.1 kB / 0.7316 GB, free: 64.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/2.269, allocations: 75.34 kB / 0.7317 GB, free: 64.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/2.271, allocations: 0.6981 MB / 0.7324 GB, free: 64.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/2.271, allocations: 8.906 kB / 0.7324 GB, free: 64.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/2.271, allocations: 0 / 0.7324 GB, free: 64.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/2.271, allocations: 4.938 kB / 0.7324 GB, free: 64.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003423/2.275, allocations: 1.381 MB / 0.7337 GB, free: 63.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/2.275, allocations: 0 / 0.7337 GB, free: 63.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/2.275, allocations: 56.14 kB / 0.7338 GB, free: 63.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007827/2.276, allocations: 127.4 kB / 0.7339 GB, free: 63.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/2.276, allocations: 12.27 kB / 0.7339 GB, free: 63.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007407/2.277, allocations: 0.6687 MB / 0.7346 GB, free: 63.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/2.277, allocations: 1.406 kB / 0.7346 GB, free: 63.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/2.279, allocations: 1.023 MB / 0.7356 GB, free: 63.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003066/2.28, allocations: 153 kB / 0.7357 GB, free: 63.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/2.28, allocations: 16.56 kB / 0.7357 GB, free: 63.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007076/2.28, allocations: 27.62 kB / 0.7358 GB, free: 63.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/2.281, allocations: 33.48 kB / 0.7358 GB, free: 63.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-05/2.281, allocations: 23.83 kB / 0.7358 GB, free: 63.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009083/2.282, allocations: 482.4 kB / 0.7363 GB, free: 63 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.6e-07/2.282, allocations: 0 / 0.7363 GB, free: 63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002648/2.284, allocations: 0.558 MB / 0.7368 GB, free: 62.99 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001935/2.286, allocations: 0.5792 MB / 0.7374 GB, free: 62.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003477/2.29, allocations: 1.125 MB / 0.7385 GB, free: 62.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/2.29, allocations: 6.188 kB / 0.7385 GB, free: 62.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009036/2.291, allocations: 315.5 kB / 0.7388 GB, free: 62.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001986/2.293, allocations: 240.4 kB / 0.739 GB, free: 62.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003378/2.296, allocations: 1.73 MB / 0.7407 GB, free: 61.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/2.297, allocations: 0.9796 MB / 0.7417 GB, free: 61.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001372/2.298, allocations: 241.7 kB / 0.7419 GB, free: 61.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/2.298, allocations: 53.59 kB / 0.742 GB, free: 61.25 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/2.298, allocations: 0 / 0.742 GB, free: 61.25 MB / 362.7 MB Notification: Performance of Templates: time 0.03788/2.336, allocations: 15.46 MB / 0.7571 GB, free: 60.72 MB / 362.7 MB