Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 0.9606/0.9606, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.929e-05/1.938e-05, allocations: 3.984 kB / 148.1 MB, free: 6.223 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04551/0.04556, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7626/0.8082, allocations: 235.9 MB / 409.2 MB, free: 60.95 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.8084, allocations: 71.81 kB / 409.3 MB, free: 60.95 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.022/1.831, allocations: 245.4 MB / 0.6394 GB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.003e-06/1.831, allocations: 0 / 0.6394 GB, free: 15.87 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001394/1.831, allocations: 35.44 kB / 0.6394 GB, free: 15.84 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.005313/1.836, allocations: 1.673 MB / 0.641 GB, free: 14.13 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/1.837, allocations: 12.03 kB / 0.641 GB, free: 14.12 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007076/1.837, allocations: 158.2 kB / 0.6412 GB, free: 13.96 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002754/1.84, allocations: 1.016 MB / 0.6422 GB, free: 12.93 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/1.84, allocations: 147.1 kB / 0.6423 GB, free: 12.77 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003584/1.841, allocations: 59.94 kB / 0.6424 GB, free: 12.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002994/1.844, allocations: 1.374 MB / 0.6437 GB, free: 11.33 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003181/1.847, allocations: 1.467 MB / 0.6452 GB, free: 9.82 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/1.847, allocations: 0 / 0.6452 GB, free: 9.82 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002016/1.847, allocations: 4 kB / 0.6452 GB, free: 9.816 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001679/1.847, allocations: 101.9 kB / 0.6453 GB, free: 9.719 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/1.859, allocations: 5.555 MB / 0.6507 GB, free: 3.973 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002134/1.861, allocations: 1.055 MB / 0.6517 GB, free: 2.906 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/1.862, allocations: 0.6373 MB / 0.6523 GB, free: 2.27 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007502/1.87, allocations: 3.905 MB / 0.6562 GB, free: 14.02 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.278e-05/1.87, allocations: 47.56 kB / 0.6562 GB, free: 13.97 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001233/1.871, allocations: 165.2 kB / 0.6564 GB, free: 13.81 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 5.701e-06/1.871, allocations: 0 / 0.6564 GB, free: 13.81 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.0227/1.894, allocations: 3.938 MB / 0.6602 GB, free: 9.824 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/1.894, allocations: 141.8 kB / 0.6603 GB, free: 9.656 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002806/1.897, allocations: 0.7272 MB / 0.661 GB, free: 8.91 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003867/1.897, allocations: 29.7 kB / 0.6611 GB, free: 8.875 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009635/1.898, allocations: 0.5871 MB / 0.6616 GB, free: 8.281 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009261/1.899, allocations: 350.8 kB / 0.662 GB, free: 7.934 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/1.9, allocations: 0 / 0.662 GB, free: 7.934 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003659/1.9, allocations: 358.8 kB / 0.6623 GB, free: 7.574 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002536/1.903, allocations: 0.5336 MB / 0.6628 GB, free: 7.039 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003249/1.906, allocations: 0.8441 MB / 0.6637 GB, free: 6.066 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008262/1.914, allocations: 0.9511 MB / 0.6646 GB, free: 5.117 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.265e-05/1.914, allocations: 4 kB / 0.6646 GB, free: 5.113 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01386/1.928, allocations: 2.001 MB / 0.6666 GB, free: 3.102 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.539e-05/1.928, allocations: 15.08 kB / 0.6666 GB, free: 3.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.035e-05/1.928, allocations: 8 kB / 0.6666 GB, free: 3.082 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01358/1.942, allocations: 1.042 MB / 0.6676 GB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002945/1.945, allocations: 271.5 kB / 0.6679 GB, free: 1.781 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1728/2.118, allocations: 1.803 MB / 0.6696 GB, free: 32.41 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/2.12, allocations: 68.8 kB / 0.6697 GB, free: 32.41 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003218/2.12, allocations: 63.84 kB / 0.6697 GB, free: 32.41 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003725/2.121, allocations: 138.8 kB / 0.6699 GB, free: 32.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003801/2.121, allocations: 119.6 kB / 0.67 GB, free: 32.3 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008604/2.13, allocations: 2.076 MB / 0.672 GB, free: 32.23 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/2.13, allocations: 11.91 kB / 0.672 GB, free: 32.23 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.438e-06/2.13, allocations: 1.125 kB / 0.672 GB, free: 32.23 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.096e-05/2.13, allocations: 7.828 kB / 0.672 GB, free: 32.23 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009771/2.139, allocations: 3.289 MB / 0.6752 GB, free: 31.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/2.14, allocations: 2.594 kB / 0.6753 GB, free: 31.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/2.141, allocations: 186.3 kB / 0.6754 GB, free: 31.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003661/2.144, allocations: 0.7828 MB / 0.6762 GB, free: 31.9 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002466/2.145, allocations: 21.09 kB / 0.6762 GB, free: 31.9 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004907/2.15, allocations: 1.875 MB / 0.678 GB, free: 31.38 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.228e-06/2.15, allocations: 0 / 0.678 GB, free: 31.38 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008021/2.158, allocations: 2.758 MB / 0.6807 GB, free: 31.2 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005493/2.158, allocations: 201.9 kB / 0.6809 GB, free: 31.04 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003298/2.159, allocations: 0 / 0.6809 GB, free: 31.04 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/2.16, allocations: 75.7 kB / 0.681 GB, free: 31.04 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/2.161, allocations: 100.8 kB / 0.6811 GB, free: 31.04 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/2.161, allocations: 46.14 kB / 0.6811 GB, free: 31.04 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001022/2.162, allocations: 0.5414 MB / 0.6817 GB, free: 30.93 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.782e-06/2.162, allocations: 0 / 0.6817 GB, free: 30.93 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003025/2.165, allocations: 0.7336 MB / 0.6824 GB, free: 30.93 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.002383/2.167, allocations: 0.8494 MB / 0.6832 GB, free: 30.82 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004223/2.171, allocations: 1.483 MB / 0.6847 GB, free: 30.8 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.19e-06/2.172, allocations: 0 / 0.6847 GB, free: 30.8 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002777/2.174, allocations: 0.8323 MB / 0.6855 GB, free: 30.78 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003633/2.178, allocations: 0.5721 MB / 0.686 GB, free: 30.77 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006654/2.185, allocations: 2.343 MB / 0.6883 GB, free: 30.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000908/2.186, allocations: 1.269 MB / 0.6896 GB, free: 29.54 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000684/2.186, allocations: 129 kB / 0.6897 GB, free: 29.54 MB / 250.7 MB Notification: Performance of SimCode: time 2.124e-06/2.186, allocations: 0 / 0.6897 GB, free: 29.54 MB / 250.7 MB Notification: Performance of Templates: time 0.04919/2.236, allocations: 31.11 MB / 0.7201 GB, free: 27.39 MB / 250.7 MB