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 0.9377/0.9377, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002699/0.00027, allocations: 8 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04677/0.04706, allocations: 25.16 MB / 183.5 MB, free: 5.98 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6358/0.6829, allocations: 236.7 MB / 420.2 MB, free: 56.75 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.6831, allocations: 71.22 kB / 420.2 MB, free: 56.73 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.064/1.747, allocations: 248 MB / 0.6526 GB, free: 7.371 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.34e-06/1.747, allocations: 0 / 0.6526 GB, free: 7.371 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001567/1.747, allocations: 43.86 kB / 0.6526 GB, free: 7.328 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.006561/1.754, allocations: 1.842 MB / 0.6544 GB, free: 5.43 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/1.754, allocations: 16.03 kB / 0.6544 GB, free: 5.414 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006975/1.755, allocations: 154.2 kB / 0.6546 GB, free: 5.262 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00302/1.758, allocations: 1.005 MB / 0.6555 GB, free: 4.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003021/1.758, allocations: 183 kB / 0.6557 GB, free: 4.02 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003073/1.758, allocations: 95.92 kB / 0.6558 GB, free: 3.926 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004469/1.763, allocations: 1.665 MB / 0.6574 GB, free: 2.211 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.778e-05/1.763, allocations: 0 / 0.6574 GB, free: 2.211 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/1.763, allocations: 43.97 kB / 0.6575 GB, free: 2.168 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002092/1.763, allocations: 105.9 kB / 0.6576 GB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00434/1.768, allocations: 1.616 MB / 0.6592 GB, free: 456 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1643/1.932, allocations: 5.776 MB / 0.6648 GB, free: 22.56 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/1.935, allocations: 1.158 MB / 0.6659 GB, free: 22.53 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007417/1.942, allocations: 3.856 MB / 0.6697 GB, free: 20.41 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/1.942, allocations: 48.56 kB / 0.6697 GB, free: 20.37 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001286/1.944, allocations: 206.8 kB / 0.6699 GB, free: 20.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 5.535e-06/1.944, allocations: 0 / 0.6699 GB, free: 20.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.02207/1.966, allocations: 5.39 MB / 0.6752 GB, free: 19.71 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/1.966, allocations: 142.2 kB / 0.6753 GB, free: 19.55 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001802/1.968, allocations: 0.9941 MB / 0.6763 GB, free: 19.41 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002733/1.968, allocations: 45.89 kB / 0.6764 GB, free: 19.38 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003671/1.968, allocations: 0.5619 MB / 0.6769 GB, free: 19.11 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003802/1.969, allocations: 366.7 kB / 0.6773 GB, free: 18.93 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/1.969, allocations: 26.66 kB / 0.6773 GB, free: 18.93 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/1.969, allocations: 363.8 kB / 0.6776 GB, free: 18.62 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/1.971, allocations: 0.6085 MB / 0.6782 GB, free: 18.62 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002022/1.973, allocations: 0.9288 MB / 0.6791 GB, free: 18.27 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/1.975, allocations: 0.718 MB / 0.6798 GB, free: 18.26 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/1.975, allocations: 4.469 kB / 0.6798 GB, free: 18.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005387/1.98, allocations: 1.97 MB / 0.6818 GB, free: 18.17 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/1.98, allocations: 12.11 kB / 0.6818 GB, free: 18.17 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/1.98, allocations: 10.94 kB / 0.6818 GB, free: 18.17 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008767/1.989, allocations: 1.255 MB / 0.683 GB, free: 18.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001537/1.99, allocations: 269.7 kB / 0.6833 GB, free: 18.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003953/1.994, allocations: 1.62 MB / 0.6848 GB, free: 17.62 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/1.996, allocations: 96 kB / 0.6849 GB, free: 17.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002333/1.997, allocations: 66.08 kB / 0.685 GB, free: 17.62 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 () * Number of clocked 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.000969/1.998, allocations: 369.2 kB / 0.6853 GB, free: 17.5 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004097/1.998, allocations: 139.2 kB / 0.6855 GB, free: 17.44 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006074/2.004, allocations: 2.02 MB / 0.6875 GB, free: 17.35 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/2.004, allocations: 14.91 kB / 0.6875 GB, free: 17.35 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/2.004, allocations: 6.766 kB / 0.6875 GB, free: 17.34 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.492e-05/2.004, allocations: 7.547 kB / 0.6875 GB, free: 17.34 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008144/2.012, allocations: 3.369 MB / 0.6908 GB, free: 16.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/2.012, allocations: 0 / 0.6908 GB, free: 16.98 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/2.014, allocations: 182.7 kB / 0.6909 GB, free: 16.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00492/2.019, allocations: 0.9982 MB / 0.6919 GB, free: 16.97 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002508/2.019, allocations: 34.67 kB / 0.692 GB, free: 16.97 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003469/2.022, allocations: 1.676 MB / 0.6936 GB, free: 16.42 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/2.023, allocations: 3.422 kB / 0.6936 GB, free: 16.42 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006709/2.029, allocations: 2.746 MB / 0.6963 GB, free: 16.18 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005998/2.03, allocations: 225.9 kB / 0.6965 GB, free: 16.02 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003767/2.03, allocations: 21.48 kB / 0.6965 GB, free: 16.01 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/2.032, allocations: 91.59 kB / 0.6966 GB, free: 16.01 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002928/2.032, allocations: 100.5 kB / 0.6967 GB, free: 16.01 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001623/2.032, allocations: 47.34 kB / 0.6967 GB, free: 16.01 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001374/2.034, allocations: 0.7597 MB / 0.6975 GB, free: 15.9 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.481e-06/2.034, allocations: 0 / 0.6975 GB, free: 15.9 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002993/2.037, allocations: 0.7827 MB / 0.6982 GB, free: 15.9 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 () * Number of clocked 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.002163/2.039, allocations: 0.8708 MB / 0.6991 GB, free: 15.8 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005159/2.044, allocations: 1.666 MB / 0.7007 GB, free: 15.76 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.446e-06/2.044, allocations: 3.312 kB / 0.7007 GB, free: 15.76 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003234/2.047, allocations: 0.9181 MB / 0.7016 GB, free: 15.74 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/2.051, allocations: 0.6291 MB / 0.7022 GB, free: 15.73 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007779/2.059, allocations: 3.503 MB / 0.7057 GB, free: 14.48 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008338/2.06, allocations: 1.27 MB / 0.7069 GB, free: 13.74 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006119/2.061, allocations: 129.3 kB / 0.707 GB, free: 13.73 MB / 250.7 MB Notification: Performance of SimCode: time 1.691e-06/2.061, allocations: 0 / 0.707 GB, free: 13.73 MB / 250.7 MB Notification: Performance of Templates: time 0.04971/2.11, allocations: 32.21 MB / 0.7385 GB, free: 8.391 MB / 250.7 MB