Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003684, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1045, allocations: 44.51 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.003/1.108, allocations: 316.5 MB / 0.6108 GB, free: 66.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/1.108, allocations: 85.77 kB / 0.6109 GB, free: 66.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7223/1.831, allocations: 130.7 MB / 0.7385 GB, free: 109.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.235e-06/1.831, allocations: 4 kB / 0.7385 GB, free: 109.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.804e-05/1.831, allocations: 20 kB / 0.7385 GB, free: 109.2 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.004005/1.835, allocations: 1.176 MB / 0.7397 GB, free: 108 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/1.835, allocations: 8.031 kB / 0.7397 GB, free: 108 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005364/1.835, allocations: 95.02 kB / 0.7398 GB, free: 107.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/1.837, allocations: 0.6592 MB / 0.7404 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/1.837, allocations: 107.1 kB / 0.7405 GB, free: 107.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/1.838, allocations: 55.36 kB / 0.7406 GB, free: 107.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002177/1.84, allocations: 0.9021 MB / 0.7414 GB, free: 106.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.351e-05/1.84, allocations: 3.906 kB / 0.7414 GB, free: 106.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/1.84, allocations: 18.89 kB / 0.7415 GB, free: 106.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/1.84, allocations: 61.22 kB / 0.7415 GB, free: 106.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002093/1.842, allocations: 0.8288 MB / 0.7423 GB, free: 105.2 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008293/1.851, allocations: 3.305 MB / 0.7456 GB, free: 101.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/1.852, allocations: 0.6591 MB / 0.7462 GB, free: 101.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004148/1.856, allocations: 2.051 MB / 0.7482 GB, free: 98.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.406e-05/1.856, allocations: 46.41 kB / 0.7483 GB, free: 98.86 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.897e-06/1.856, allocations: 0 / 0.7483 GB, free: 98.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.01117/1.868, allocations: 2.851 MB / 0.751 GB, free: 95.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/1.868, allocations: 85.67 kB / 0.7511 GB, free: 95.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/1.869, allocations: 0.6759 MB / 0.7518 GB, free: 95.15 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/1.869, allocations: 37.7 kB / 0.7518 GB, free: 95.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000221/1.869, allocations: 360.6 kB / 0.7522 GB, free: 94.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/1.869, allocations: 234.5 kB / 0.7524 GB, free: 94.53 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.525e-05/1.869, allocations: 16 kB / 0.7524 GB, free: 94.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.037e-05/1.87, allocations: 346.8 kB / 0.7527 GB, free: 94.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009207/1.87, allocations: 357.8 kB / 0.7531 GB, free: 93.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009974/1.872, allocations: 0.4988 MB / 0.7536 GB, free: 93.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000986/1.873, allocations: 411 kB / 0.7539 GB, free: 92.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/1.873, allocations: 0 / 0.7539 GB, free: 92.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002903/1.875, allocations: 1.103 MB / 0.755 GB, free: 91.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/1.876, allocations: 210.9 kB / 0.7552 GB, free: 91.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/1.876, allocations: 4 kB / 0.7552 GB, free: 91.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/1.878, allocations: 448.4 kB / 0.7557 GB, free: 91.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/1.879, allocations: 155.8 kB / 0.7558 GB, free: 90.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/1.881, allocations: 1.024 MB / 0.7568 GB, free: 89.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/1.882, allocations: 44.02 kB / 0.7568 GB, free: 89.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/1.882, allocations: 39.98 kB / 0.7569 GB, free: 89.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/1.882, allocations: 5.406 kB / 0.7569 GB, free: 89.75 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002447/1.884, allocations: 0.9294 MB / 0.7578 GB, free: 88.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/1.884, allocations: 4 kB / 0.7578 GB, free: 88.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009306/1.885, allocations: 245.2 kB / 0.758 GB, free: 88.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/1.886, allocations: 163.8 kB / 0.7582 GB, free: 88.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009794/1.887, allocations: 0.8094 MB / 0.759 GB, free: 87.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007394/1.888, allocations: 47.83 kB / 0.759 GB, free: 87.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.615e-05/1.888, allocations: 35.97 kB / 0.7591 GB, free: 87.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006999/1.889, allocations: 328.9 kB / 0.7594 GB, free: 87.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/1.889, allocations: 75.06 kB / 0.7594 GB, free: 87.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002925/1.892, allocations: 1.102 MB / 0.7605 GB, free: 85.98 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/1.892, allocations: 12.08 kB / 0.7605 GB, free: 85.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/1.892, allocations: 0 / 0.7605 GB, free: 85.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/1.892, allocations: 3.984 kB / 0.7605 GB, free: 85.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004614/1.897, allocations: 2.01 MB / 0.7625 GB, free: 83.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/1.897, allocations: 0 / 0.7625 GB, free: 83.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/1.898, allocations: 115.9 kB / 0.7626 GB, free: 83.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/1.9, allocations: 440.4 kB / 0.763 GB, free: 83.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.814e-05/1.9, allocations: 19.98 kB / 0.7631 GB, free: 83.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/1.902, allocations: 1.041 MB / 0.7641 GB, free: 82.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.902, allocations: 0 / 0.7641 GB, free: 82.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003681/1.905, allocations: 1.584 MB / 0.7656 GB, free: 80.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006186/1.906, allocations: 248 kB / 0.7659 GB, free: 80.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/1.906, allocations: 16 kB / 0.7659 GB, free: 80.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/1.907, allocations: 47.88 kB / 0.7659 GB, free: 80.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/1.908, allocations: 64.69 kB / 0.766 GB, free: 80.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/1.908, allocations: 31.97 kB / 0.766 GB, free: 80.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008386/1.909, allocations: 475 kB / 0.7665 GB, free: 79.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.2e-07/1.909, allocations: 0 / 0.7665 GB, free: 79.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002439/1.911, allocations: 0.6439 MB / 0.7671 GB, free: 79.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001847/1.913, allocations: 0.5878 MB / 0.7677 GB, free: 78.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004146/1.917, allocations: 1.352 MB / 0.769 GB, free: 77.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.917, allocations: 1.812 kB / 0.769 GB, free: 77.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001526/1.919, allocations: 467.3 kB / 0.7694 GB, free: 76.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/1.922, allocations: 352.6 kB / 0.7698 GB, free: 76.43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004949/1.926, allocations: 2.073 MB / 0.7718 GB, free: 74.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/1.927, allocations: 1.011 MB / 0.7728 GB, free: 73.28 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/1.928, allocations: 83.41 kB / 0.7729 GB, free: 73.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/1.928, allocations: 0 / 0.7729 GB, free: 73.2 MB / 410.7 MB Notification: Performance of Templates: time 0.03729/1.965, allocations: 19.22 MB / 0.7916 GB, free: 54 MB / 410.7 MB