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.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005513/0.0005514, allocations: 8 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1168, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.14/1.257, allocations: 318.4 MB / 0.5772 GB, free: 98.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/1.257, allocations: 93.39 kB / 0.5773 GB, free: 98.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9243/2.181, allocations: 165.2 MB / 0.7386 GB, free: 70.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.976e-06/2.181, allocations: 0 / 0.7386 GB, free: 70.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001104/2.182, allocations: 29.73 kB / 0.7386 GB, free: 70.34 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.005048/2.187, allocations: 1.212 MB / 0.7398 GB, free: 69.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/2.187, allocations: 10.19 kB / 0.7398 GB, free: 69.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002997/2.19, allocations: 98.42 kB / 0.7399 GB, free: 69.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002366/2.192, allocations: 0.6684 MB / 0.7406 GB, free: 69.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.255e-05/2.192, allocations: 43.17 kB / 0.7406 GB, free: 69.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/2.192, allocations: 56.56 kB / 0.7407 GB, free: 69.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/2.195, allocations: 0.8713 MB / 0.7415 GB, free: 69.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/2.195, allocations: 3.156 kB / 0.7415 GB, free: 69.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/2.195, allocations: 25.44 kB / 0.7415 GB, free: 69.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.342e-05/2.195, allocations: 48.78 kB / 0.7416 GB, free: 69.25 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/2.197, allocations: 0.791 MB / 0.7423 GB, free: 69.24 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007633/2.205, allocations: 3.834 MB / 0.7461 GB, free: 67.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/2.206, allocations: 486.7 kB / 0.7466 GB, free: 67.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003519/2.209, allocations: 1.907 MB / 0.7484 GB, free: 65.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/2.21, allocations: 39.31 kB / 0.7485 GB, free: 65.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.547e-06/2.21, allocations: 0 / 0.7485 GB, free: 65.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.004881/2.214, allocations: 1.498 MB / 0.7499 GB, free: 65.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/2.215, allocations: 134.9 kB / 0.75 GB, free: 65.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/2.216, allocations: 0.6881 MB / 0.7507 GB, free: 64.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001369/2.216, allocations: 40.23 kB / 0.7508 GB, free: 64.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003455/2.216, allocations: 435.9 kB / 0.7512 GB, free: 64.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/2.217, allocations: 153.1 kB / 0.7513 GB, free: 64.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.384e-05/2.217, allocations: 20.25 kB / 0.7513 GB, free: 64.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/2.217, allocations: 384.1 kB / 0.7517 GB, free: 64.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000686/2.217, allocations: 241.5 kB / 0.7519 GB, free: 64.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008065/2.218, allocations: 0.5544 MB / 0.7525 GB, free: 63.92 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007676/2.219, allocations: 328 kB / 0.7528 GB, free: 63.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/2.219, allocations: 3.938 kB / 0.7528 GB, free: 63.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002286/2.221, allocations: 0.8811 MB / 0.7537 GB, free: 63.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002246/2.222, allocations: 395.9 kB / 0.754 GB, free: 63.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/2.222, allocations: 10.91 kB / 0.754 GB, free: 63.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/2.223, allocations: 115.9 kB / 0.7542 GB, free: 63.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002148/2.225, allocations: 243.6 kB / 0.7544 GB, free: 63.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009869/2.226, allocations: 1.225 MB / 0.7556 GB, free: 62.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/2.227, allocations: 58.31 kB / 0.7556 GB, free: 62.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/2.227, allocations: 43.55 kB / 0.7557 GB, free: 62.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/2.227, allocations: 3.156 kB / 0.7557 GB, free: 62.26 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001927/2.229, allocations: 0.7865 MB / 0.7565 GB, free: 62.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/2.229, allocations: 12.28 kB / 0.7565 GB, free: 62.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/2.231, allocations: 115 kB / 0.7566 GB, free: 62.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/2.232, allocations: 230.5 kB / 0.7568 GB, free: 62.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004916/2.233, allocations: 0.5938 MB / 0.7574 GB, free: 61.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/2.234, allocations: 65.44 kB / 0.7574 GB, free: 61.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/2.234, allocations: 41.95 kB / 0.7575 GB, free: 61.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006479/2.235, allocations: 343.1 kB / 0.7578 GB, free: 61.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/2.235, allocations: 70.09 kB / 0.7579 GB, free: 61.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/2.237, allocations: 0.7462 MB / 0.7586 GB, free: 61.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/2.237, allocations: 11.67 kB / 0.7586 GB, free: 61.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/2.237, allocations: 0 / 0.7586 GB, free: 61.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/2.237, allocations: 3.469 kB / 0.7586 GB, free: 61.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003516/2.241, allocations: 1.426 MB / 0.76 GB, free: 61.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/2.241, allocations: 0 / 0.76 GB, free: 61.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/2.242, allocations: 147.2 kB / 0.7601 GB, free: 61.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007965/2.243, allocations: 89.09 kB / 0.7602 GB, free: 61.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/2.243, allocations: 19.02 kB / 0.7602 GB, free: 61.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007627/2.244, allocations: 1.183 MB / 0.7614 GB, free: 59.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/2.244, allocations: 9.484 kB / 0.7614 GB, free: 59.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/2.246, allocations: 0.9842 MB / 0.7624 GB, free: 59.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/2.247, allocations: 155.5 kB / 0.7625 GB, free: 59.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002001/2.247, allocations: 21.84 kB / 0.7625 GB, free: 59.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007534/2.248, allocations: 42.33 kB / 0.7626 GB, free: 59.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/2.248, allocations: 50.22 kB / 0.7626 GB, free: 59.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.058e-05/2.248, allocations: 21.41 kB / 0.7627 GB, free: 59.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000846/2.249, allocations: 477.8 kB / 0.7631 GB, free: 59.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.249, allocations: 0 / 0.7631 GB, free: 59.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002702/2.251, allocations: 0.6369 MB / 0.7637 GB, free: 59.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001975/2.253, allocations: 0.6538 MB / 0.7644 GB, free: 59.17 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003745/2.257, allocations: 1.092 MB / 0.7654 GB, free: 59.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/2.257, allocations: 3.844 kB / 0.7654 GB, free: 59.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/2.258, allocations: 342.6 kB / 0.7658 GB, free: 59.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/2.261, allocations: 287.8 kB / 0.766 GB, free: 59.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/2.265, allocations: 1.874 MB / 0.7679 GB, free: 58.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005313/2.265, allocations: 1.004 MB / 0.7688 GB, free: 57.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001986/2.267, allocations: 326 kB / 0.7692 GB, free: 57.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003194/2.268, allocations: 78.25 kB / 0.7692 GB, free: 57.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/2.268, allocations: 0 / 0.7692 GB, free: 57.64 MB / 362.7 MB Notification: Performance of Templates: time 0.04333/2.311, allocations: 18.08 MB / 0.7869 GB, free: 56.52 MB / 362.7 MB