Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.445/1.445, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003428/0.0003429, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0554/0.05577, allocations: 25.16 MB / 184 MB, free: 6.027 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7928/0.8486, allocations: 236.7 MB / 420.7 MB, free: 56.84 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.849, allocations: 75.53 kB / 420.8 MB, free: 56.82 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.302/2.151, allocations: 248 MB / 0.6531 GB, free: 7.434 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.505e-06/2.152, allocations: 0 / 0.6531 GB, free: 7.434 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002043/2.152, allocations: 35.94 kB / 0.6531 GB, free: 7.398 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.00909/2.161, allocations: 1.846 MB / 0.6549 GB, free: 5.5 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/2.161, allocations: 12.03 kB / 0.6549 GB, free: 5.488 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/2.162, allocations: 154.2 kB / 0.6551 GB, free: 5.336 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003947/2.166, allocations: 1.013 MB / 0.6561 GB, free: 4.281 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003981/2.166, allocations: 187 kB / 0.6562 GB, free: 4.078 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005663/2.167, allocations: 95.92 kB / 0.6563 GB, free: 3.984 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006054/2.173, allocations: 1.662 MB / 0.658 GB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.758e-05/2.173, allocations: 0 / 0.658 GB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002872/2.174, allocations: 43.97 kB / 0.658 GB, free: 2.234 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002712/2.174, allocations: 109.9 kB / 0.6581 GB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006082/2.18, allocations: 1.612 MB / 0.6597 GB, free: 0.5156 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2047/2.385, allocations: 5.78 MB / 0.6653 GB, free: 22.43 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003703/2.388, allocations: 1.153 MB / 0.6665 GB, free: 22.4 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009352/2.398, allocations: 3.857 MB / 0.6702 GB, free: 20.28 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/2.398, allocations: 47.97 kB / 0.6703 GB, free: 20.24 MB / 250.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001725/2.4, allocations: 205 kB / 0.6705 GB, free: 20.21 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 5.03e-06/2.4, allocations: 1.25 kB / 0.6705 GB, free: 20.21 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.03245/2.432, allocations: 5.39 MB / 0.6757 GB, free: 19.58 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.625e-05/2.432, allocations: 143.3 kB / 0.6759 GB, free: 19.43 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/2.434, allocations: 1.129 MB / 0.677 GB, free: 19.27 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000399/2.435, allocations: 49.67 kB / 0.677 GB, free: 19.24 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004262/2.435, allocations: 0.5521 MB / 0.6776 GB, free: 18.98 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005043/2.436, allocations: 366.9 kB / 0.6779 GB, free: 18.8 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/2.436, allocations: 26.44 kB / 0.6779 GB, free: 18.8 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/2.436, allocations: 359.5 kB / 0.6783 GB, free: 18.48 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002072/2.438, allocations: 0.6101 MB / 0.6789 GB, free: 18.48 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/2.441, allocations: 0.9345 MB / 0.6798 GB, free: 18.13 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/2.443, allocations: 0.7259 MB / 0.6805 GB, free: 18.12 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/2.443, allocations: 0 / 0.6805 GB, free: 18.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006418/2.449, allocations: 1.97 MB / 0.6824 GB, free: 18.03 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/2.45, allocations: 10.84 kB / 0.6824 GB, free: 18.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/2.45, allocations: 7.438 kB / 0.6824 GB, free: 18.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0132/2.463, allocations: 1.267 MB / 0.6837 GB, free: 18.02 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002192/2.465, allocations: 267.5 kB / 0.6839 GB, free: 18.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004535/2.47, allocations: 1.62 MB / 0.6855 GB, free: 17.49 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002608/2.472, allocations: 101.8 kB / 0.6856 GB, free: 17.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003837/2.473, allocations: 59.88 kB / 0.6857 GB, free: 17.48 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.001126/2.474, allocations: 369.2 kB / 0.686 GB, free: 17.37 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004978/2.474, allocations: 133.8 kB / 0.6861 GB, free: 17.3 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007637/2.482, allocations: 2.024 MB / 0.6881 GB, free: 17.21 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/2.482, allocations: 18.17 kB / 0.6881 GB, free: 17.2 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/2.482, allocations: 3.828 kB / 0.6881 GB, free: 17.2 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/2.482, allocations: 7.266 kB / 0.6881 GB, free: 17.2 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009081/2.491, allocations: 3.364 MB / 0.6914 GB, free: 16.84 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/2.491, allocations: 0 / 0.6914 GB, free: 16.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/2.493, allocations: 185.4 kB / 0.6916 GB, free: 16.84 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006624/2.5, allocations: 0.9996 MB / 0.6926 GB, free: 16.83 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002603/2.5, allocations: 30.22 kB / 0.6926 GB, free: 16.83 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004342/2.504, allocations: 1.682 MB / 0.6942 GB, free: 16.28 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/2.504, allocations: 1.812 kB / 0.6943 GB, free: 16.28 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007743/2.512, allocations: 2.749 MB / 0.6969 GB, free: 16.04 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006573/2.513, allocations: 228.1 kB / 0.6972 GB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004185/2.513, allocations: 25.17 kB / 0.6972 GB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001908/2.515, allocations: 90.58 kB / 0.6973 GB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/2.515, allocations: 97.31 kB / 0.6974 GB, free: 15.87 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001721/2.516, allocations: 47.72 kB / 0.6974 GB, free: 15.87 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001452/2.517, allocations: 0.7568 MB / 0.6981 GB, free: 15.76 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.517, allocations: 0 / 0.6981 GB, free: 15.76 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003193/2.52, allocations: 0.7849 MB / 0.6989 GB, free: 15.76 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.002525/2.523, allocations: 0.8722 MB / 0.6998 GB, free: 15.66 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.006488/2.529, allocations: 1.663 MB / 0.7014 GB, free: 15.62 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/2.529, allocations: 0 / 0.7014 GB, free: 15.62 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003924/2.533, allocations: 0.9136 MB / 0.7023 GB, free: 15.6 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005551/2.539, allocations: 0.6362 MB / 0.7029 GB, free: 15.59 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00991/2.549, allocations: 3.503 MB / 0.7063 GB, free: 14.34 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008392/2.55, allocations: 1.273 MB / 0.7076 GB, free: 13.61 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007591/2.551, allocations: 132.1 kB / 0.7077 GB, free: 13.6 MB / 250.7 MB Notification: Performance of SimCode: time 1.202e-06/2.551, allocations: 0 / 0.7077 GB, free: 13.6 MB / 250.7 MB Notification: Performance of Templates: time 0.0649/2.615, allocations: 32.2 MB / 0.7391 GB, free: 8.309 MB / 250.7 MB