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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.324/2.324, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.672e-05/1.678e-05, allocations: 7.938 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2708, allocations: 54.86 MB / 358 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9449/1.216, allocations: 329.6 MB / 0.6715 GB, free: 115.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/1.216, allocations: 82.92 kB / 0.6716 GB, free: 115.1 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4361/1.652, allocations: 140.4 MB / 0.8087 GB, free: 1.031 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.458e-06/1.652, allocations: 4 kB / 0.8087 GB, free: 1.027 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.052e-05/1.652, allocations: 20 kB / 0.8087 GB, free: 1.008 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.3327/1.985, allocations: 1.169 MB / 0.8099 GB, free: 110.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/1.985, allocations: 15.86 kB / 0.8099 GB, free: 110.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008344/1.986, allocations: 109.3 kB / 0.81 GB, free: 110.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002184/1.988, allocations: 0.701 MB / 0.8107 GB, free: 110.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001357/1.988, allocations: 88.64 kB / 0.8108 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/1.988, allocations: 36.69 kB / 0.8108 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002001/1.99, allocations: 0.8178 MB / 0.8116 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/1.993, allocations: 0.9258 MB / 0.8125 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/1.993, allocations: 1.031 kB / 0.8125 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/1.993, allocations: 3.453 kB / 0.8125 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.346e-05/1.993, allocations: 49.08 kB / 0.8125 GB, free: 110.2 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007459/2, allocations: 3.871 MB / 0.8163 GB, free: 108.6 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/2.001, allocations: 0.606 MB / 0.8169 GB, free: 108.6 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/2.002, allocations: 378.2 kB / 0.8173 GB, free: 108.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00388/2.006, allocations: 2.343 MB / 0.8196 GB, free: 107.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006962/2.007, allocations: 417.7 kB / 0.82 GB, free: 107 MB / 474.7 MB Notification: Performance of pre-optimization done (n=47): time 3.498e-06/2.007, allocations: 0 / 0.82 GB, free: 107 MB / 474.7 MB Notification: Performance of matching and sorting (n=52): time 0.009185/2.016, allocations: 2.391 MB / 0.8223 GB, free: 106.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/2.016, allocations: 166.7 kB / 0.8225 GB, free: 106.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009133/2.017, allocations: 0.5425 MB / 0.823 GB, free: 106.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001529/2.017, allocations: 29.64 kB / 0.823 GB, free: 106.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000287/2.018, allocations: 472.8 kB / 0.8235 GB, free: 106 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/2.018, allocations: 171.8 kB / 0.8236 GB, free: 105.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.456e-05/2.018, allocations: 3.938 kB / 0.8236 GB, free: 105.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.84e-05/2.018, allocations: 339.1 kB / 0.824 GB, free: 105.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006437/2.019, allocations: 339.6 kB / 0.8243 GB, free: 105.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007327/2.019, allocations: 0.6122 MB / 0.8249 GB, free: 105.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005516/2.025, allocations: 1.049 MB / 0.8259 GB, free: 105.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-05/2.025, allocations: 0 / 0.8259 GB, free: 105.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.007646/2.033, allocations: 1.714 MB / 0.8276 GB, free: 105.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006912/2.033, allocations: 3.43 MB / 0.8309 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/2.033, allocations: 7.75 kB / 0.8309 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009813/2.034, allocations: 321.9 kB / 0.8312 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008611/2.035, allocations: 167.4 kB / 0.8314 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002682/2.038, allocations: 1.634 MB / 0.833 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/2.039, allocations: 37.17 kB / 0.833 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/2.039, allocations: 48.61 kB / 0.8331 GB, free: 100.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/2.039, allocations: 6.562 kB / 0.8331 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006139/2.045, allocations: 1.425 MB / 0.8345 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/2.045, allocations: 7.5 kB / 0.8345 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007628/2.046, allocations: 244.5 kB / 0.8347 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007435/2.047, allocations: 161.6 kB / 0.8349 GB, free: 100.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00198/2.049, allocations: 2.288 MB / 0.8371 GB, free: 98.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007661/2.05, allocations: 33.44 kB / 0.8371 GB, free: 98.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/2.05, allocations: 49.59 kB / 0.8372 GB, free: 98.73 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.0003432/2.05, allocations: 170.6 kB / 0.8374 GB, free: 98.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/2.05, allocations: 81.08 kB / 0.8374 GB, free: 98.55 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003847/2.054, allocations: 1.139 MB / 0.8385 GB, free: 98.48 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/2.054, allocations: 3.562 kB / 0.8385 GB, free: 98.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/2.054, allocations: 0 / 0.8385 GB, free: 98.48 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/2.054, allocations: 3.141 kB / 0.8385 GB, free: 98.48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005039/2.059, allocations: 1.879 MB / 0.8404 GB, free: 98.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.207e-06/2.06, allocations: 3.75 kB / 0.8404 GB, free: 98.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005386/2.06, allocations: 77.16 kB / 0.8405 GB, free: 98.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008984/2.061, allocations: 312.8 kB / 0.8408 GB, free: 98.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.85e-05/2.061, allocations: 15.86 kB / 0.8408 GB, free: 98.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/2.064, allocations: 1.601 MB / 0.8423 GB, free: 97.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.619e-06/2.064, allocations: 0 / 0.8423 GB, free: 97.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004271/2.068, allocations: 1.601 MB / 0.8439 GB, free: 96.91 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005399/2.069, allocations: 232.5 kB / 0.8441 GB, free: 96.77 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/2.069, allocations: 10.16 kB / 0.8441 GB, free: 96.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007664/2.07, allocations: 32 kB / 0.8442 GB, free: 96.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/2.07, allocations: 49.92 kB / 0.8442 GB, free: 96.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.288e-05/2.07, allocations: 25.39 kB / 0.8442 GB, free: 96.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006261/2.071, allocations: 419.1 kB / 0.8446 GB, free: 96.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.81e-07/2.071, allocations: 0 / 0.8446 GB, free: 96.67 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002591/2.073, allocations: 0.6269 MB / 0.8452 GB, free: 96.67 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.001684/2.075, allocations: 0.6141 MB / 0.8458 GB, free: 96.58 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003055/2.078, allocations: 1.517 MB / 0.8473 GB, free: 96.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.623e-06/2.078, allocations: 3.812 kB / 0.8473 GB, free: 96.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/2.079, allocations: 456.8 kB / 0.8478 GB, free: 96.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/2.081, allocations: 256.4 kB / 0.848 GB, free: 96.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/2.084, allocations: 1.352 MB / 0.8493 GB, free: 95.93 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005797/2.085, allocations: 1.024 MB / 0.8503 GB, free: 95.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003173/2.085, allocations: 72.41 kB / 0.8504 GB, free: 95.22 MB / 474.7 MB Notification: Performance of SimCode: time 2.061e-06/2.085, allocations: 0 / 0.8504 GB, free: 95.22 MB / 474.7 MB Notification: Performance of Templates: time 0.03251/2.117, allocations: 21.54 MB / 0.8714 GB, free: 94.33 MB / 474.7 MB