Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.642/1.642, allocations: 171.3 MB / 179.2 MB, free: 7.582 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.695e-05/1.711e-05, allocations: 3.938 kB / 222.5 MB, free: 8.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07399/0.07404, allocations: 38.76 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9303/1.004, allocations: 310.6 MB / 0.5585 GB, free: 87.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/1.005, allocations: 75.72 kB / 0.5586 GB, free: 87.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.244/2.249, allocations: 265.1 MB / 0.8175 GB, free: 35.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.74e-06/2.249, allocations: 0 / 0.8175 GB, free: 35.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001422/2.249, allocations: 43.86 kB / 0.8175 GB, free: 35.43 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005774/2.255, allocations: 1.808 MB / 0.8193 GB, free: 34.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/2.255, allocations: 7.5 kB / 0.8193 GB, free: 34.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/2.256, allocations: 179.1 kB / 0.8194 GB, free: 34.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003341/2.259, allocations: 1.113 MB / 0.8205 GB, free: 34.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/2.259, allocations: 137.8 kB / 0.8207 GB, free: 34.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003116/2.26, allocations: 58.53 kB / 0.8207 GB, free: 34.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003749/2.263, allocations: 1.597 MB / 0.8223 GB, free: 34.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003507/2.267, allocations: 1.602 MB / 0.8238 GB, free: 33.92 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.331e-05/2.267, allocations: 6 kB / 0.8238 GB, free: 33.92 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001973/2.267, allocations: 0 / 0.8238 GB, free: 33.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000177/2.268, allocations: 112.2 kB / 0.824 GB, free: 33.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01519/2.283, allocations: 6.159 MB / 0.83 GB, free: 31.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/2.285, allocations: 1.125 MB / 0.8311 GB, free: 31.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/2.286, allocations: 0.684 MB / 0.8317 GB, free: 31.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00755/2.294, allocations: 4.199 MB / 0.8358 GB, free: 29.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/2.294, allocations: 52.91 kB / 0.8359 GB, free: 29.56 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001186/2.295, allocations: 162.3 kB / 0.836 GB, free: 29.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.792e-06/2.295, allocations: 0 / 0.836 GB, free: 29.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.01702/2.312, allocations: 4.136 MB / 0.8401 GB, free: 28.97 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/2.312, allocations: 143.3 kB / 0.8402 GB, free: 28.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/2.314, allocations: 0.8169 MB / 0.841 GB, free: 28.65 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000274/2.314, allocations: 28.67 kB / 0.841 GB, free: 28.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003612/2.315, allocations: 0.6078 MB / 0.8416 GB, free: 28.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000384/2.315, allocations: 366.3 kB / 0.842 GB, free: 28.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/2.315, allocations: 0 / 0.842 GB, free: 28.03 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/2.315, allocations: 368.5 kB / 0.8423 GB, free: 27.71 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/2.317, allocations: 0.6076 MB / 0.8429 GB, free: 27.71 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/2.318, allocations: 0.9347 MB / 0.8438 GB, free: 27.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01389/2.332, allocations: 2.324 MB / 0.8461 GB, free: 27.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.132e-05/2.332, allocations: 3.562 kB / 0.8461 GB, free: 27.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01725/2.35, allocations: 3.495 MB / 0.8495 GB, free: 27.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007243/2.35, allocations: 3.488 MB / 0.8529 GB, free: 23.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/2.35, allocations: 10 kB / 0.8529 GB, free: 23.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00768/2.358, allocations: 1.079 MB / 0.854 GB, free: 23.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001868/2.36, allocations: 297.7 kB / 0.8543 GB, free: 23.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005667/2.366, allocations: 1.897 MB / 0.8561 GB, free: 23.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002234/2.368, allocations: 61.78 kB / 0.8562 GB, free: 23.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003223/2.368, allocations: 73.66 kB / 0.8563 GB, free: 23.06 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/2.368, allocations: 3.5 kB / 0.8563 GB, free: 23.06 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01468/2.383, allocations: 2.958 MB / 0.8592 GB, free: 23.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.515e-05/2.383, allocations: 14.19 kB / 0.8592 GB, free: 23.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006344/2.39, allocations: 0.9034 MB / 0.8601 GB, free: 23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001742/2.391, allocations: 300 kB / 0.8603 GB, free: 23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002246/2.394, allocations: 1.264 MB / 0.8616 GB, free: 22.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/2.395, allocations: 57.62 kB / 0.8616 GB, free: 22.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001941/2.395, allocations: 68.88 kB / 0.8617 GB, free: 22.46 MB / 346.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: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004852/2.396, allocations: 144.9 kB / 0.8618 GB, free: 22.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004102/2.396, allocations: 127.7 kB / 0.862 GB, free: 22.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007572/2.404, allocations: 2.14 MB / 0.864 GB, free: 22.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/2.404, allocations: 15.25 kB / 0.8641 GB, free: 22.17 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.588e-06/2.404, allocations: 0 / 0.8641 GB, free: 22.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/2.404, allocations: 6.797 kB / 0.8641 GB, free: 22.17 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01016/2.414, allocations: 3.456 MB / 0.8674 GB, free: 21.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.563e-06/2.414, allocations: 0 / 0.8674 GB, free: 21.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/2.415, allocations: 188.2 kB / 0.8676 GB, free: 21.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003743/2.419, allocations: 0.8021 MB / 0.8684 GB, free: 21.81 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003061/2.419, allocations: 18.09 kB / 0.8684 GB, free: 21.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004661/2.424, allocations: 1.88 MB / 0.8703 GB, free: 21.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.709e-06/2.424, allocations: 3.75 kB / 0.8703 GB, free: 21.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008329/2.433, allocations: 2.869 MB / 0.8731 GB, free: 21.01 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/2.434, allocations: 380.9 kB / 0.8734 GB, free: 20.85 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003362/2.434, allocations: 0 / 0.8734 GB, free: 20.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/2.436, allocations: 72.23 kB / 0.8735 GB, free: 20.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/2.436, allocations: 100.1 kB / 0.8736 GB, free: 20.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/2.436, allocations: 45.45 kB / 0.8736 GB, free: 20.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001066/2.437, allocations: 0.6006 MB / 0.8742 GB, free: 20.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.05e-07/2.437, allocations: 0 / 0.8742 GB, free: 20.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004851/2.442, allocations: 1.161 MB / 0.8754 GB, free: 20.52 MB / 346.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: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003006/2.445, allocations: 1.04 MB / 0.8764 GB, free: 20.21 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006611/2.452, allocations: 2.388 MB / 0.8787 GB, free: 20.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.48e-06/2.452, allocations: 2.719 kB / 0.8787 GB, free: 20.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002477/2.454, allocations: 0.7903 MB / 0.8795 GB, free: 20.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/2.458, allocations: 0.5239 MB / 0.88 GB, free: 20.1 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006288/2.464, allocations: 2.402 MB / 0.8823 GB, free: 19.37 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009416/2.465, allocations: 1.316 MB / 0.8836 GB, free: 18.63 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007577/2.466, allocations: 135.6 kB / 0.8837 GB, free: 18.62 MB / 346.7 MB Notification: Performance of SimCode: time 2.296e-06/2.466, allocations: 0 / 0.8837 GB, free: 18.62 MB / 346.7 MB Notification: Performance of Templates: time 0.05431/2.521, allocations: 34.43 MB / 0.9174 GB, free: 14.23 MB / 362.7 MB