Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 1.799/1.799, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.969e-05/2.979e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.0853, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9147/1, allocations: 323.8 MB / 0.6351 GB, free: 43.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/1, allocations: 82.89 kB / 0.6352 GB, free: 43.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6985/1.699, allocations: 141.5 MB / 0.7733 GB, free: 76.31 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.076e-06/1.699, allocations: 0 / 0.7733 GB, free: 76.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.247e-05/1.699, allocations: 20 kB / 0.7733 GB, free: 76.29 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002642/1.702, allocations: 1.168 MB / 0.7745 GB, free: 75.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/1.702, allocations: 12.03 kB / 0.7745 GB, free: 75.05 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005563/1.702, allocations: 118.8 kB / 0.7746 GB, free: 74.94 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/1.704, allocations: 0.7023 MB / 0.7753 GB, free: 74.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/1.704, allocations: 104.7 kB / 0.7754 GB, free: 74.08 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/1.704, allocations: 56 kB / 0.7754 GB, free: 74.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/1.706, allocations: 0.9959 MB / 0.7764 GB, free: 72.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/1.706, allocations: 4 kB / 0.7764 GB, free: 72.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/1.706, allocations: 27.98 kB / 0.7764 GB, free: 72.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.274e-05/1.706, allocations: 53.23 kB / 0.7765 GB, free: 72.9 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/1.708, allocations: 0.8873 MB / 0.7774 GB, free: 72.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007073/1.715, allocations: 3.976 MB / 0.7812 GB, free: 67.85 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/1.717, allocations: 0.6332 MB / 0.7819 GB, free: 67.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007127/1.717, allocations: 378 kB / 0.7822 GB, free: 66.83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003732/1.721, allocations: 2.369 MB / 0.7845 GB, free: 64.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007504/1.722, allocations: 433.6 kB / 0.785 GB, free: 63.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 3.799e-06/1.722, allocations: 0 / 0.785 GB, free: 63.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.004847/1.727, allocations: 2.008 MB / 0.7869 GB, free: 61.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/1.727, allocations: 170.2 kB / 0.7871 GB, free: 61.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/1.728, allocations: 0.6757 MB / 0.7877 GB, free: 60.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/1.728, allocations: 37.7 kB / 0.7878 GB, free: 60.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002592/1.728, allocations: 457.6 kB / 0.7882 GB, free: 60.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/1.728, allocations: 161.8 kB / 0.7884 GB, free: 60.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.942e-05/1.729, allocations: 16 kB / 0.7884 GB, free: 60.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.911e-05/1.729, allocations: 350.7 kB / 0.7887 GB, free: 59.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006758/1.729, allocations: 345.6 kB / 0.789 GB, free: 59.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007889/1.73, allocations: 0.6227 MB / 0.7897 GB, free: 58.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007822/1.731, allocations: 448.6 kB / 0.7901 GB, free: 58.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.596e-06/1.731, allocations: 4 kB / 0.7901 GB, free: 58.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002586/1.734, allocations: 1.216 MB / 0.7913 GB, free: 57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006698/1.734, allocations: 3.433 MB / 0.7946 GB, free: 53.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/1.734, allocations: 8 kB / 0.7946 GB, free: 53.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/1.735, allocations: 337.5 kB / 0.795 GB, free: 52.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008956/1.736, allocations: 159.7 kB / 0.7951 GB, free: 52.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/1.738, allocations: 1.44 MB / 0.7965 GB, free: 51.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/1.739, allocations: 51.91 kB / 0.7966 GB, free: 51.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/1.739, allocations: 47.98 kB / 0.7966 GB, free: 51.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/1.739, allocations: 8.125 kB / 0.7966 GB, free: 51.21 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002473/1.742, allocations: 1.106 MB / 0.7977 GB, free: 50.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/1.742, allocations: 12 kB / 0.7977 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008557/1.743, allocations: 245.6 kB / 0.7979 GB, free: 49.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008013/1.743, allocations: 159.7 kB / 0.7981 GB, free: 49.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/1.745, allocations: 2.332 MB / 0.8004 GB, free: 47.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007757/1.746, allocations: 44.14 kB / 0.8004 GB, free: 47.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/1.746, allocations: 47.98 kB / 0.8005 GB, free: 47.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003064/1.747, allocations: 202.1 kB / 0.8006 GB, free: 46.88 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/1.747, allocations: 86.97 kB / 0.8007 GB, free: 46.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/1.749, allocations: 1.072 MB / 0.8018 GB, free: 45.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.509e-06/1.75, allocations: 8 kB / 0.8018 GB, free: 45.69 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.394e-06/1.75, allocations: 3.953 kB / 0.8018 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/1.75, allocations: 3.984 kB / 0.8018 GB, free: 45.68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003509/1.753, allocations: 1.874 MB / 0.8036 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/1.753, allocations: 0 / 0.8036 GB, free: 43.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/1.754, allocations: 75.89 kB / 0.8037 GB, free: 43.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/1.755, allocations: 333.5 kB / 0.804 GB, free: 43.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/1.755, allocations: 15.98 kB / 0.804 GB, free: 43.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/1.756, allocations: 1.429 MB / 0.8054 GB, free: 41.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/1.756, allocations: 4.031 kB / 0.8054 GB, free: 41.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/1.759, allocations: 1.519 MB / 0.8069 GB, free: 40.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005117/1.76, allocations: 251.9 kB / 0.8072 GB, free: 40.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/1.76, allocations: 11.95 kB / 0.8072 GB, free: 40 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007035/1.76, allocations: 35.97 kB / 0.8072 GB, free: 39.97 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/1.761, allocations: 52.36 kB / 0.8072 GB, free: 39.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.95e-05/1.761, allocations: 32.05 kB / 0.8073 GB, free: 39.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007944/1.762, allocations: 0.5108 MB / 0.8078 GB, free: 39.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.81e-07/1.762, allocations: 0 / 0.8078 GB, free: 39.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002332/1.764, allocations: 0.6596 MB / 0.8084 GB, free: 38.72 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00155/1.765, allocations: 0.6445 MB / 0.8091 GB, free: 38.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00315/1.769, allocations: 1.534 MB / 0.8105 GB, free: 36.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.143e-06/1.769, allocations: 0 / 0.8105 GB, free: 36.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/1.77, allocations: 442.4 kB / 0.811 GB, free: 36.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001542/1.771, allocations: 284.6 kB / 0.8112 GB, free: 35.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/1.775, allocations: 1.37 MB / 0.8126 GB, free: 34.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005263/1.775, allocations: 1.021 MB / 0.8136 GB, free: 33.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/1.775, allocations: 79.34 kB / 0.8137 GB, free: 33.26 MB / 426.7 MB Notification: Performance of SimCode: time 1.652e-06/1.775, allocations: 4 kB / 0.8137 GB, free: 33.25 MB / 426.7 MB Notification: Performance of Templates: time 0.0295/1.805, allocations: 21.7 MB / 0.8348 GB, free: 11.56 MB / 426.7 MB