Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 2.347/2.347, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.0003877, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1151, allocations: 44.51 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.172, allocations: 319.7 MB / 0.614 GB, free: 63.05 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003458/1.172, allocations: 106 kB / 0.6141 GB, free: 63 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.511/2.683, allocations: 280 MB / 0.8876 GB, free: 58.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.464e-06/2.683, allocations: 2.656 kB / 0.8876 GB, free: 58.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001707/2.683, allocations: 41.84 kB / 0.8876 GB, free: 58.14 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007736/2.691, allocations: 1.953 MB / 0.8895 GB, free: 57.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/2.691, allocations: 10.97 kB / 0.8895 GB, free: 57.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/2.692, allocations: 171.9 kB / 0.8897 GB, free: 57.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004064/2.696, allocations: 1.087 MB / 0.8907 GB, free: 56.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/2.697, allocations: 85.3 kB / 0.8908 GB, free: 56.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003574/2.697, allocations: 90.86 kB / 0.8909 GB, free: 56.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004296/2.701, allocations: 1.619 MB / 0.8925 GB, free: 56.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.03e-05/2.701, allocations: 4.125 kB / 0.8925 GB, free: 56.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002471/2.702, allocations: 46.44 kB / 0.8925 GB, free: 56.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001999/2.702, allocations: 100.5 kB / 0.8926 GB, free: 56.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004504/2.706, allocations: 1.616 MB / 0.8942 GB, free: 56.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01616/2.723, allocations: 6.515 MB / 0.9006 GB, free: 53.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/2.725, allocations: 0.9003 MB / 0.9015 GB, free: 53.55 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005888/2.731, allocations: 2.727 MB / 0.9041 GB, free: 52.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.588e-05/2.731, allocations: 47.38 kB / 0.9042 GB, free: 52.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 3.897e-06/2.731, allocations: 0 / 0.9042 GB, free: 52.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01436/2.746, allocations: 3.645 MB / 0.9077 GB, free: 51.19 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.918e-05/2.746, allocations: 192.4 kB / 0.9079 GB, free: 50.97 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002193/2.748, allocations: 1.194 MB / 0.9091 GB, free: 50.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000328/2.748, allocations: 49.3 kB / 0.9091 GB, free: 50.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006215/2.749, allocations: 0.6654 MB / 0.9098 GB, free: 50.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004217/2.749, allocations: 325.2 kB / 0.9101 GB, free: 50.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/2.749, allocations: 27.56 kB / 0.9101 GB, free: 50.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001188/2.75, allocations: 359.7 kB / 0.9105 GB, free: 49.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/2.751, allocations: 0.5471 MB / 0.911 GB, free: 49.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/2.753, allocations: 1.024 MB / 0.912 GB, free: 49.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/2.755, allocations: 0.674 MB / 0.9126 GB, free: 49.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.281e-05/2.755, allocations: 3.562 kB / 0.9126 GB, free: 49.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.005114/2.76, allocations: 1.868 MB / 0.9145 GB, free: 49.24 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003394/2.76, allocations: 0.5084 MB / 0.915 GB, free: 48.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/2.76, allocations: 13.56 kB / 0.915 GB, free: 48.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006543/2.767, allocations: 0.656 MB / 0.9156 GB, free: 48.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002275/2.769, allocations: 303 kB / 0.9159 GB, free: 48.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002654/2.772, allocations: 2.145 MB / 0.918 GB, free: 47.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002452/2.774, allocations: 107.1 kB / 0.9181 GB, free: 47.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002841/2.775, allocations: 67.92 kB / 0.9182 GB, free: 47.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.064e-05/2.775, allocations: 3.938 kB / 0.9182 GB, free: 47.06 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004683/2.779, allocations: 1.668 MB / 0.9198 GB, free: 46.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.193e-05/2.779, allocations: 14.91 kB / 0.9198 GB, free: 46.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005396/2.785, allocations: 0.5086 MB / 0.9203 GB, free: 46.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002311/2.787, allocations: 304.5 kB / 0.9206 GB, free: 46.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/2.789, allocations: 1.989 MB / 0.9226 GB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002367/2.792, allocations: 105.8 kB / 0.9227 GB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/2.792, allocations: 71.03 kB / 0.9227 GB, free: 45.35 MB / 410.7 MB 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 (171): * Single equations (assignments): 168 * 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.001188/2.793, allocations: 470.4 kB / 0.9232 GB, free: 45.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004256/2.794, allocations: 136.3 kB / 0.9233 GB, free: 45.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004671/2.798, allocations: 1.51 MB / 0.9248 GB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/2.798, allocations: 11.12 kB / 0.9248 GB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/2.798, allocations: 2.688 kB / 0.9248 GB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.086e-05/2.799, allocations: 14.61 kB / 0.9248 GB, free: 44.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007543/2.806, allocations: 2.748 MB / 0.9275 GB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/2.806, allocations: 0 / 0.9275 GB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/2.807, allocations: 151.3 kB / 0.9276 GB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004977/2.812, allocations: 0.6212 MB / 0.9282 GB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003295/2.813, allocations: 24.72 kB / 0.9283 GB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00245/2.815, allocations: 2.105 MB / 0.9303 GB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/2.815, allocations: 3.938 kB / 0.9303 GB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005241/2.821, allocations: 2.072 MB / 0.9323 GB, free: 41.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007252/2.821, allocations: 232.2 kB / 0.9326 GB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004202/2.822, allocations: 29.75 kB / 0.9326 GB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/2.823, allocations: 73.69 kB / 0.9327 GB, free: 41.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002941/2.824, allocations: 96.97 kB / 0.9328 GB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/2.824, allocations: 34.7 kB / 0.9328 GB, free: 41.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001635/2.825, allocations: 0.8071 MB / 0.9336 GB, free: 41.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/2.825, allocations: 3.844 kB / 0.9336 GB, free: 41.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00532/2.831, allocations: 1.18 MB / 0.9347 GB, free: 40.93 MB / 410.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 (84): * Single equations (assignments): 81 * 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.003828/2.835, allocations: 1.105 MB / 0.9358 GB, free: 40.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006919/2.842, allocations: 2.219 MB / 0.938 GB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/2.842, allocations: 3.594 kB / 0.938 GB, free: 39.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002406/2.844, allocations: 0.6972 MB / 0.9387 GB, free: 39.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004218/2.848, allocations: 0.4945 MB / 0.9391 GB, free: 39.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0073/2.856, allocations: 3.239 MB / 0.9423 GB, free: 38 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009084/2.857, allocations: 1.284 MB / 0.9436 GB, free: 37.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003276/2.86, allocations: 0.5557 MB / 0.9441 GB, free: 37.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005205/2.86, allocations: 113.5 kB / 0.9442 GB, free: 37.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.372e-06/2.86, allocations: 0 / 0.9442 GB, free: 37.18 MB / 410.7 MB Notification: Performance of Templates: time 0.08421/2.945, allocations: 35.53 MB / 0.9789 GB, free: 17.39 MB / 410.7 MB