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.153/2.153, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004311/0.0004312, allocations: 8 kB / 314.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2705, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9804/1.251, allocations: 330.3 MB / 0.6832 GB, free: 127.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/1.251, allocations: 89.27 kB / 0.6833 GB, free: 127.9 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4293/1.681, allocations: 142 MB / 0.822 GB, free: 19.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.492e-06/1.681, allocations: 0 / 0.822 GB, free: 19.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.937e-05/1.681, allocations: 20 kB / 0.822 GB, free: 19.3 MB / 490.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.002979/1.684, allocations: 1.28 MB / 0.8233 GB, free: 17.96 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/1.684, allocations: 12.02 kB / 0.8233 GB, free: 17.95 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005947/1.684, allocations: 114.9 kB / 0.8234 GB, free: 17.84 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/1.686, allocations: 0.7101 MB / 0.8241 GB, free: 17.09 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/1.686, allocations: 112.7 kB / 0.8242 GB, free: 16.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/1.686, allocations: 52 kB / 0.8242 GB, free: 16.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/1.688, allocations: 1.007 MB / 0.8252 GB, free: 15.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/1.689, allocations: 7.938 kB / 0.8252 GB, free: 15.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/1.689, allocations: 27.98 kB / 0.8252 GB, free: 15.82 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.913e-05/1.689, allocations: 53.28 kB / 0.8253 GB, free: 15.77 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001861/1.691, allocations: 0.9068 MB / 0.8262 GB, free: 14.86 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007029/1.698, allocations: 4.002 MB / 0.8301 GB, free: 10.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/1.699, allocations: 0.6408 MB / 0.8307 GB, free: 10.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003594/1.703, allocations: 2.311 MB / 0.833 GB, free: 7.457 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007969/1.703, allocations: 443.1 kB / 0.8334 GB, free: 7.004 MB / 490.7 MB Notification: Performance of pre-optimization done (n=47): time 3.597e-06/1.703, allocations: 0 / 0.8334 GB, free: 7.004 MB / 490.7 MB Notification: Performance of matching and sorting (n=52): time 0.006536/1.71, allocations: 2.598 MB / 0.8359 GB, free: 4.27 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/1.71, allocations: 166.5 kB / 0.8361 GB, free: 4.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/1.711, allocations: 0.6951 MB / 0.8368 GB, free: 3.371 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.772e-05/1.711, allocations: 37.7 kB / 0.8368 GB, free: 3.328 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/1.712, allocations: 453.7 kB / 0.8372 GB, free: 2.879 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/1.712, allocations: 169.6 kB / 0.8374 GB, free: 2.711 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.907e-05/1.712, allocations: 16 kB / 0.8374 GB, free: 2.695 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.168e-05/1.712, allocations: 346.8 kB / 0.8377 GB, free: 2.348 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007382/1.713, allocations: 357.8 kB / 0.8381 GB, free: 2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008652/1.714, allocations: 0.6351 MB / 0.8387 GB, free: 1.234 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008409/1.714, allocations: 459.6 kB / 0.8391 GB, free: 0.7812 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.286e-06/1.714, allocations: 0 / 0.8391 GB, free: 0.7812 MB / 490.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.2667/1.981, allocations: 1.197 MB / 0.8403 GB, free: 119.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007384/1.982, allocations: 3.429 MB / 0.8437 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/1.982, allocations: 8.781 kB / 0.8437 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/1.983, allocations: 353.1 kB / 0.844 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009202/1.984, allocations: 158.7 kB / 0.8442 GB, free: 115.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/1.986, allocations: 1.432 MB / 0.8456 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/1.987, allocations: 52.11 kB / 0.8456 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/1.987, allocations: 48.64 kB / 0.8457 GB, free: 114.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/1.987, allocations: 6.641 kB / 0.8457 GB, free: 114.5 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002612/1.99, allocations: 1.081 MB / 0.8467 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/1.99, allocations: 9.25 kB / 0.8467 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008422/1.991, allocations: 251.2 kB / 0.847 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007594/1.991, allocations: 165.7 kB / 0.8471 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/1.994, allocations: 2.349 MB / 0.8494 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007687/1.995, allocations: 54.33 kB / 0.8495 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/1.995, allocations: 42.16 kB / 0.8495 GB, free: 112.6 MB / 490.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 () * Number of clocked 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.0007179/1.995, allocations: 400.8 kB / 0.8499 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/1.996, allocations: 87.75 kB / 0.85 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/1.998, allocations: 1.043 MB / 0.851 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/1.998, allocations: 5.094 kB / 0.851 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.805e-06/1.998, allocations: 0 / 0.851 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/1.998, allocations: 5.297 kB / 0.851 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003814/2.002, allocations: 1.857 MB / 0.8528 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.433e-06/2.002, allocations: 0 / 0.8528 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/2.003, allocations: 82.95 kB / 0.8529 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/2.004, allocations: 332.7 kB / 0.8532 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.088e-05/2.004, allocations: 26.5 kB / 0.8532 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/2.006, allocations: 1.427 MB / 0.8546 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.006, allocations: 3.531 kB / 0.8546 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/2.009, allocations: 1.498 MB / 0.8561 GB, free: 110.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005648/2.009, allocations: 253.9 kB / 0.8563 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/2.009, allocations: 15.34 kB / 0.8564 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007899/2.01, allocations: 52.56 kB / 0.8564 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/2.01, allocations: 44.33 kB / 0.8564 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/2.011, allocations: 33.3 kB / 0.8565 GB, free: 110.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008155/2.011, allocations: 0.523 MB / 0.857 GB, free: 110.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.79e-07/2.011, allocations: 0 / 0.857 GB, free: 110.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002424/2.014, allocations: 0.6615 MB / 0.8576 GB, free: 110.4 MB / 490.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) * Number of clocked states: 0 () * 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.001592/2.015, allocations: 0.6187 MB / 0.8582 GB, free: 110.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003387/2.019, allocations: 1.619 MB / 0.8598 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.077e-06/2.019, allocations: 3.562 kB / 0.8598 GB, free: 110.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/2.02, allocations: 481.8 kB / 0.8603 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/2.022, allocations: 272.3 kB / 0.8605 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003784/2.026, allocations: 2.103 MB / 0.8626 GB, free: 109.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005419/2.026, allocations: 1.02 MB / 0.8636 GB, free: 108.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/2.026, allocations: 83.44 kB / 0.8637 GB, free: 108.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.544e-06/2.026, allocations: 0 / 0.8637 GB, free: 108.5 MB / 490.7 MB Notification: Performance of Templates: time 0.0307/2.057, allocations: 21.91 MB / 0.8851 GB, free: 107.8 MB / 490.7 MB