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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.917/1.917, allocations: 209.4 MB / 217.3 MB, free: 4.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.579e-05/1.585e-05, allocations: 0 / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2624, allocations: 48.7 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8636/1.126, allocations: 323.1 MB / 0.6281 GB, free: 107.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/1.126, allocations: 92.27 kB / 0.6281 GB, free: 107.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6645/1.791, allocations: 140.3 MB / 0.7652 GB, free: 96.92 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.471e-06/1.791, allocations: 0 / 0.7652 GB, free: 96.92 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.765e-05/1.791, allocations: 26.47 kB / 0.7652 GB, free: 96.92 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.002706/1.794, allocations: 1.169 MB / 0.7663 GB, free: 96.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/1.794, allocations: 14.69 kB / 0.7663 GB, free: 96.35 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005775/1.794, allocations: 105.2 kB / 0.7664 GB, free: 96.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/1.796, allocations: 0.7007 MB / 0.7671 GB, free: 96.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/1.796, allocations: 86.5 kB / 0.7672 GB, free: 95.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/1.796, allocations: 36.25 kB / 0.7672 GB, free: 95.99 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001813/1.798, allocations: 0.8082 MB / 0.768 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/1.8, allocations: 0.9113 MB / 0.7689 GB, free: 95.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.136e-05/1.8, allocations: 5.531 kB / 0.7689 GB, free: 95.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/1.8, allocations: 1.531 kB / 0.7689 GB, free: 95.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.124e-05/1.8, allocations: 54.12 kB / 0.769 GB, free: 95.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006969/1.807, allocations: 3.873 MB / 0.7728 GB, free: 94.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/1.809, allocations: 0.595 MB / 0.7733 GB, free: 94.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006434/1.809, allocations: 378.5 kB / 0.7737 GB, free: 94.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00378/1.813, allocations: 2.33 MB / 0.776 GB, free: 92.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006702/1.814, allocations: 411.2 kB / 0.7764 GB, free: 92.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 3.548e-06/1.814, allocations: 0 / 0.7764 GB, free: 92.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.008961/1.823, allocations: 2.449 MB / 0.7788 GB, free: 92.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.501e-05/1.823, allocations: 161.7 kB / 0.7789 GB, free: 92.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008207/1.824, allocations: 0.5475 MB / 0.7795 GB, free: 91.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.623e-05/1.824, allocations: 30.95 kB / 0.7795 GB, free: 91.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002767/1.824, allocations: 468.9 kB / 0.7799 GB, free: 91.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/1.824, allocations: 169.9 kB / 0.7801 GB, free: 91.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.566e-05/1.824, allocations: 0 / 0.7801 GB, free: 91.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.164e-05/1.824, allocations: 342.9 kB / 0.7804 GB, free: 91.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006452/1.825, allocations: 334.8 kB / 0.7807 GB, free: 91.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007675/1.826, allocations: 0.6056 MB / 0.7813 GB, free: 90.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005357/1.831, allocations: 1.04 MB / 0.7824 GB, free: 90.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/1.831, allocations: 3.938 kB / 0.7824 GB, free: 90.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.007526/1.839, allocations: 1.754 MB / 0.7841 GB, free: 90.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006858/1.84, allocations: 3.432 MB / 0.7874 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/1.84, allocations: 7.781 kB / 0.7874 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009051/1.84, allocations: 327 kB / 0.7877 GB, free: 87.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007794/1.841, allocations: 160.4 kB / 0.7879 GB, free: 87.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/1.844, allocations: 1.63 MB / 0.7895 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/1.845, allocations: 32.44 kB / 0.7895 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/1.845, allocations: 47.62 kB / 0.7896 GB, free: 86.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/1.845, allocations: 7.109 kB / 0.7896 GB, free: 86.11 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005981/1.851, allocations: 1.465 MB / 0.791 GB, free: 86.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/1.851, allocations: 8.875 kB / 0.791 GB, free: 86.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007508/1.852, allocations: 244.7 kB / 0.7912 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007811/1.853, allocations: 162 kB / 0.7914 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002009/1.855, allocations: 2.284 MB / 0.7936 GB, free: 84.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007526/1.856, allocations: 26.88 kB / 0.7936 GB, free: 84.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/1.856, allocations: 46.84 kB / 0.7937 GB, free: 84.28 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.000312/1.856, allocations: 183.8 kB / 0.7939 GB, free: 84.13 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/1.856, allocations: 80.66 kB / 0.7939 GB, free: 84.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004024/1.86, allocations: 1.182 MB / 0.7951 GB, free: 84.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.192e-06/1.86, allocations: 7.125 kB / 0.7951 GB, free: 84.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.641e-06/1.86, allocations: 0 / 0.7951 GB, free: 84.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/1.86, allocations: 10.56 kB / 0.7951 GB, free: 84.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004898/1.865, allocations: 1.91 MB / 0.797 GB, free: 83.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.556e-06/1.865, allocations: 0 / 0.797 GB, free: 83.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004899/1.866, allocations: 73.86 kB / 0.7971 GB, free: 83.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008953/1.867, allocations: 313.1 kB / 0.7974 GB, free: 83.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-05/1.867, allocations: 13.16 kB / 0.7974 GB, free: 83.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002355/1.869, allocations: 1.597 MB / 0.7989 GB, free: 82.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.544e-06/1.869, allocations: 0 / 0.7989 GB, free: 82.65 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004237/1.873, allocations: 1.637 MB / 0.8005 GB, free: 82.45 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004913/1.874, allocations: 232.7 kB / 0.8007 GB, free: 82.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/1.874, allocations: 2.812 kB / 0.8007 GB, free: 82.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000741/1.875, allocations: 43.69 kB / 0.8008 GB, free: 82.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/1.875, allocations: 42.89 kB / 0.8008 GB, free: 82.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.114e-05/1.875, allocations: 29.12 kB / 0.8009 GB, free: 82.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006032/1.876, allocations: 418.7 kB / 0.8013 GB, free: 82.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.8e-07/1.876, allocations: 0 / 0.8013 GB, free: 82.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002417/1.878, allocations: 0.6195 MB / 0.8019 GB, free: 82.11 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.00153/1.88, allocations: 0.6067 MB / 0.8025 GB, free: 81.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002839/1.883, allocations: 1.467 MB / 0.8039 GB, free: 81.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.483e-06/1.883, allocations: 3.219 kB / 0.8039 GB, free: 81.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001029/1.884, allocations: 434.1 kB / 0.8043 GB, free: 81.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/1.885, allocations: 246.9 kB / 0.8045 GB, free: 81.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/1.889, allocations: 1.334 MB / 0.8058 GB, free: 81.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005758/1.889, allocations: 1.023 MB / 0.8068 GB, free: 80.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003008/1.889, allocations: 74.78 kB / 0.8069 GB, free: 80.55 MB / 426.7 MB Notification: Performance of SimCode: time 2.556e-06/1.889, allocations: 0 / 0.8069 GB, free: 80.55 MB / 426.7 MB Notification: Performance of Templates: time 0.03103/1.92, allocations: 21.41 MB / 0.8278 GB, free: 79.53 MB / 426.7 MB