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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 1.081/1.081, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.374e-05/2.39e-05, allocations: 4 kB / 154.3 MB, free: 13.13 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1411, allocations: 25.14 MB / 179.4 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5031/0.6443, allocations: 236.6 MB / 416 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.6446, allocations: 72.27 kB / 416.1 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.267/1.911, allocations: 247 MB / 0.6476 GB, free: 27.04 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.225e-06/1.911, allocations: 0 / 0.6476 GB, free: 27.04 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001384/1.911, allocations: 41.2 kB / 0.6476 GB, free: 27.03 MB / 250.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.005708/1.917, allocations: 1.671 MB / 0.6492 GB, free: 26.21 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/1.917, allocations: 11.16 kB / 0.6492 GB, free: 26.21 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006793/1.918, allocations: 154.7 kB / 0.6494 GB, free: 26.13 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/1.921, allocations: 1.005 MB / 0.6504 GB, free: 25.81 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002352/1.921, allocations: 186.1 kB / 0.6505 GB, free: 25.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000249/1.921, allocations: 91.64 kB / 0.6506 GB, free: 25.71 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003345/1.924, allocations: 1.602 MB / 0.6522 GB, free: 25.55 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.017e-05/1.925, allocations: 6.594 kB / 0.6522 GB, free: 25.54 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002151/1.925, allocations: 42.19 kB / 0.6522 GB, free: 25.54 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001804/1.925, allocations: 105.7 kB / 0.6523 GB, free: 25.54 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003522/1.928, allocations: 1.542 MB / 0.6538 GB, free: 25.53 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/1.942, allocations: 5.788 MB / 0.6595 GB, free: 23.55 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002408/1.944, allocations: 1.098 MB / 0.6606 GB, free: 23.51 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/1.945, allocations: 0.6739 MB / 0.6612 GB, free: 23.5 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007302/1.953, allocations: 3.977 MB / 0.6651 GB, free: 21.33 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/1.953, allocations: 46.03 kB / 0.6652 GB, free: 21.29 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001237/1.954, allocations: 196.6 kB / 0.6653 GB, free: 21.24 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 5.598e-06/1.954, allocations: 1.75 kB / 0.6653 GB, free: 21.24 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.01084/1.965, allocations: 3.556 MB / 0.6688 GB, free: 20.7 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/1.965, allocations: 142.3 kB / 0.669 GB, free: 20.54 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001852/1.967, allocations: 0.9815 MB / 0.6699 GB, free: 20.38 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/1.967, allocations: 43.02 kB / 0.67 GB, free: 20.35 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003751/1.968, allocations: 0.5587 MB / 0.6705 GB, free: 20.05 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004055/1.968, allocations: 361.8 kB / 0.6708 GB, free: 19.82 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/1.968, allocations: 26.25 kB / 0.6709 GB, free: 19.82 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/1.968, allocations: 361 kB / 0.6712 GB, free: 19.51 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/1.97, allocations: 0.5629 MB / 0.6718 GB, free: 19.51 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/1.971, allocations: 0.8725 MB / 0.6726 GB, free: 19.16 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/1.973, allocations: 0.6801 MB / 0.6733 GB, free: 19.15 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/1.973, allocations: 6.578 kB / 0.6733 GB, free: 19.14 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004309/1.977, allocations: 1.821 MB / 0.6751 GB, free: 19.05 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/1.977, allocations: 14.97 kB / 0.6751 GB, free: 19.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/1.977, allocations: 7.719 kB / 0.6751 GB, free: 19.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00923/1.986, allocations: 1.182 MB / 0.6762 GB, free: 19.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/1.988, allocations: 270.7 kB / 0.6765 GB, free: 19.04 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002962/1.991, allocations: 1.497 MB / 0.678 GB, free: 18.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/1.993, allocations: 95.44 kB / 0.6781 GB, free: 18.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002986/1.994, allocations: 71.39 kB / 0.6781 GB, free: 18.49 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 {8 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003785/1.994, allocations: 178.9 kB / 0.6783 GB, free: 18.38 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/1.994, allocations: 136.3 kB / 0.6784 GB, free: 18.31 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005058/2, allocations: 1.895 MB / 0.6803 GB, free: 17.8 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-05/2, allocations: 10.88 kB / 0.6803 GB, free: 17.8 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.58e-06/2, allocations: 3.938 kB / 0.6803 GB, free: 17.8 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/2, allocations: 3.891 kB / 0.6803 GB, free: 17.8 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007761/2.007, allocations: 3.208 MB / 0.6834 GB, free: 16.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.329e-06/2.007, allocations: 0 / 0.6834 GB, free: 16.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/2.009, allocations: 181.4 kB / 0.6836 GB, free: 16.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005057/2.014, allocations: 0.9156 MB / 0.6845 GB, free: 16.31 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002507/2.014, allocations: 32.72 kB / 0.6845 GB, free: 16.29 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002942/2.017, allocations: 1.547 MB / 0.686 GB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.911e-06/2.017, allocations: 3.938 kB / 0.686 GB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005613/2.023, allocations: 2.581 MB / 0.6886 GB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005987/2.024, allocations: 217.7 kB / 0.6888 GB, free: 14.07 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000433/2.024, allocations: 20 kB / 0.6888 GB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001773/2.026, allocations: 99.11 kB / 0.6889 GB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003142/2.026, allocations: 97.98 kB / 0.689 GB, free: 13.92 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001846/2.026, allocations: 42.75 kB / 0.689 GB, free: 13.88 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001385/2.028, allocations: 0.7493 MB / 0.6897 GB, free: 13.2 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.91e-07/2.028, allocations: 0 / 0.6897 GB, free: 13.2 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002987/2.031, allocations: 0.7794 MB / 0.6905 GB, free: 12.43 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.0023/2.033, allocations: 0.8734 MB / 0.6914 GB, free: 11.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004414/2.038, allocations: 1.571 MB / 0.6929 GB, free: 10.39 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.837e-06/2.038, allocations: 0 / 0.6929 GB, free: 10.39 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00263/2.04, allocations: 0.8553 MB / 0.6937 GB, free: 9.641 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003842/2.044, allocations: 0.6442 MB / 0.6944 GB, free: 9.176 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/2.051, allocations: 2.443 MB / 0.6967 GB, free: 7.039 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007962/2.052, allocations: 1.269 MB / 0.698 GB, free: 5.949 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005988/2.052, allocations: 126.7 kB / 0.6981 GB, free: 5.836 MB / 250.7 MB Notification: Performance of SimCode: time 1.724e-06/2.052, allocations: 0 / 0.6981 GB, free: 5.836 MB / 250.7 MB Notification: Performance of Templates: time 0.209/2.261, allocations: 32.13 MB / 0.7295 GB, free: 20.43 MB / 250.7 MB