Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 2.134/2.134, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.678e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3177/0.3178, allocations: 54.86 MB / 364.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6325/0.9503, allocations: 330.3 MB / 0.6785 GB, free: 4.637 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.9506, allocations: 83.89 kB / 0.6786 GB, free: 4.594 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6997/1.65, allocations: 141.6 MB / 0.8168 GB, free: 72.81 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.65, allocations: 7.984 kB / 0.8169 GB, free: 72.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.026e-05/1.65, allocations: 23.98 kB / 0.8169 GB, free: 72.78 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.002654/1.653, allocations: 1.171 MB / 0.818 GB, free: 71.55 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/1.653, allocations: 8.031 kB / 0.818 GB, free: 71.55 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005123/1.654, allocations: 110.9 kB / 0.8181 GB, free: 71.44 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/1.655, allocations: 0.7062 MB / 0.8188 GB, free: 70.69 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/1.655, allocations: 112.7 kB / 0.8189 GB, free: 70.56 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/1.656, allocations: 59.98 kB / 0.819 GB, free: 70.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/1.658, allocations: 0.9959 MB / 0.82 GB, free: 69.46 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/1.658, allocations: 0 / 0.82 GB, free: 69.46 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/1.658, allocations: 27.98 kB / 0.82 GB, free: 69.43 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.974e-05/1.658, allocations: 57.22 kB / 0.82 GB, free: 69.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/1.66, allocations: 0.8874 MB / 0.8209 GB, free: 68.49 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006897/1.666, allocations: 4.018 MB / 0.8248 GB, free: 64.28 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/1.668, allocations: 0.6253 MB / 0.8254 GB, free: 63.64 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006539/1.668, allocations: 386.3 kB / 0.8258 GB, free: 63.26 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003551/1.672, allocations: 2.377 MB / 0.8281 GB, free: 60.64 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007391/1.673, allocations: 435.4 kB / 0.8285 GB, free: 60.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=47): time 3.866e-06/1.673, allocations: 4 kB / 0.8286 GB, free: 60.19 MB / 474.7 MB Notification: Performance of matching and sorting (n=52): time 0.004497/1.677, allocations: 1.957 MB / 0.8305 GB, free: 58.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/1.677, allocations: 162.6 kB / 0.8306 GB, free: 57.96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/1.678, allocations: 0.6796 MB / 0.8313 GB, free: 57.28 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.142e-05/1.678, allocations: 37.7 kB / 0.8313 GB, free: 57.23 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/1.679, allocations: 461.6 kB / 0.8318 GB, free: 56.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/1.679, allocations: 173.6 kB / 0.8319 GB, free: 56.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.035e-05/1.679, allocations: 16 kB / 0.8319 GB, free: 56.59 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.932e-05/1.679, allocations: 342.8 kB / 0.8323 GB, free: 56.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006799/1.68, allocations: 353.6 kB / 0.8326 GB, free: 55.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007977/1.681, allocations: 0.6265 MB / 0.8332 GB, free: 55.15 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007821/1.681, allocations: 452.8 kB / 0.8336 GB, free: 54.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.08e-06/1.681, allocations: 4 kB / 0.8336 GB, free: 54.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002505/1.684, allocations: 1.173 MB / 0.8348 GB, free: 53.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006678/1.685, allocations: 3.429 MB / 0.8381 GB, free: 49.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/1.685, allocations: 8 kB / 0.8382 GB, free: 49.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/1.686, allocations: 341.5 kB / 0.8385 GB, free: 49.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007929/1.687, allocations: 155.7 kB / 0.8386 GB, free: 49.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/1.688, allocations: 1.444 MB / 0.84 GB, free: 47.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/1.689, allocations: 56.03 kB / 0.8401 GB, free: 47.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/1.689, allocations: 51.97 kB / 0.8401 GB, free: 47.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/1.689, allocations: 4 kB / 0.8401 GB, free: 47.7 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00231/1.692, allocations: 1.067 MB / 0.8412 GB, free: 46.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/1.692, allocations: 8 kB / 0.8412 GB, free: 46.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007654/1.693, allocations: 249.9 kB / 0.8414 GB, free: 46.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007362/1.693, allocations: 163.7 kB / 0.8416 GB, free: 46.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/1.695, allocations: 2.332 MB / 0.8439 GB, free: 43.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006699/1.696, allocations: 43.98 kB / 0.8439 GB, free: 43.67 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001075/1.696, allocations: 47.98 kB / 0.844 GB, free: 43.62 MB / 474.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: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * 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.0002966/1.696, allocations: 198.5 kB / 0.8441 GB, free: 43.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/1.697, allocations: 82.97 kB / 0.8442 GB, free: 43.33 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002464/1.699, allocations: 1.038 MB / 0.8452 GB, free: 42.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.846e-06/1.699, allocations: 4 kB / 0.8452 GB, free: 42.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.205e-06/1.699, allocations: 64 / 0.8452 GB, free: 42.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/1.699, allocations: 11.98 kB / 0.8452 GB, free: 42.25 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003443/1.703, allocations: 1.837 MB / 0.847 GB, free: 40.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.106e-06/1.703, allocations: 3.938 kB / 0.847 GB, free: 40.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/1.703, allocations: 75.89 kB / 0.8471 GB, free: 40.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/1.704, allocations: 337.4 kB / 0.8474 GB, free: 39.93 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.301e-05/1.704, allocations: 15.98 kB / 0.8475 GB, free: 39.92 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/1.706, allocations: 1.432 MB / 0.8489 GB, free: 38.43 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.376e-06/1.706, allocations: 0 / 0.8489 GB, free: 38.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/1.708, allocations: 1.49 MB / 0.8503 GB, free: 36.92 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005086/1.709, allocations: 248 kB / 0.8505 GB, free: 36.66 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/1.709, allocations: 12 kB / 0.8506 GB, free: 36.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006953/1.71, allocations: 47.88 kB / 0.8506 GB, free: 36.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/1.71, allocations: 48.36 kB / 0.8506 GB, free: 36.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-05/1.71, allocations: 27.98 kB / 0.8507 GB, free: 36.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007817/1.711, allocations: 0.5186 MB / 0.8512 GB, free: 36.01 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.195e-06/1.711, allocations: 0 / 0.8512 GB, free: 36.01 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002279/1.713, allocations: 0.6595 MB / 0.8518 GB, free: 35.35 MB / 474.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: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,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.001526/1.715, allocations: 0.6174 MB / 0.8524 GB, free: 34.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003103/1.718, allocations: 1.596 MB / 0.854 GB, free: 33.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.071e-06/1.718, allocations: 448 / 0.854 GB, free: 33.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/1.719, allocations: 473.9 kB / 0.8544 GB, free: 32.62 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/1.72, allocations: 273.3 kB / 0.8547 GB, free: 32.36 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/1.724, allocations: 1.4 MB / 0.8561 GB, free: 30.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005339/1.724, allocations: 1.018 MB / 0.8571 GB, free: 29.88 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/1.725, allocations: 87.34 kB / 0.8571 GB, free: 29.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.761e-06/1.725, allocations: 0 / 0.8571 GB, free: 29.8 MB / 474.7 MB Notification: Performance of Templates: time 0.02964/1.754, allocations: 21.85 MB / 0.8785 GB, free: 7.949 MB / 474.7 MB