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.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.633/1.633, allocations: 171.3 MB / 179.2 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.157e-05/2.168e-05, allocations: 4.219 kB / 222.5 MB, free: 4.758 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2142, allocations: 38.79 MB / 261.3 MB, free: 12.99 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9761/1.19, allocations: 398.9 MB / 0.6447 GB, free: 109.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/1.191, allocations: 81.11 kB / 0.6448 GB, free: 109.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8447/2.035, allocations: 208.5 MB / 0.8484 GB, free: 34.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.319e-06/2.035, allocations: 0 / 0.8484 GB, free: 34.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001214/2.035, allocations: 28 kB / 0.8484 GB, free: 34.34 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006031/2.041, allocations: 1.788 MB / 0.8502 GB, free: 32.51 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/2.042, allocations: 8.031 kB / 0.8502 GB, free: 32.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/2.043, allocations: 170.2 kB / 0.8503 GB, free: 32.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/2.046, allocations: 0.9853 MB / 0.8513 GB, free: 31.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/2.046, allocations: 198.5 kB / 0.8515 GB, free: 31.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004387/2.046, allocations: 60 kB / 0.8515 GB, free: 31.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003736/2.05, allocations: 1.601 MB / 0.8531 GB, free: 29.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003999/2.054, allocations: 1.633 MB / 0.8547 GB, free: 27.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.562e-05/2.054, allocations: 4 kB / 0.8547 GB, free: 27.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002146/2.055, allocations: 7.938 kB / 0.8547 GB, free: 27.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001604/2.055, allocations: 102 kB / 0.8548 GB, free: 27.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01518/2.07, allocations: 6.567 MB / 0.8612 GB, free: 20.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002991/2.073, allocations: 1.387 MB / 0.8626 GB, free: 19.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/2.075, allocations: 0.8055 MB / 0.8634 GB, free: 18.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007661/2.082, allocations: 3.881 MB / 0.8671 GB, free: 14.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/2.082, allocations: 43.88 kB / 0.8672 GB, free: 14.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=110): time 4.738e-06/2.082, allocations: 0 / 0.8672 GB, free: 14.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.02652/2.109, allocations: 6.469 MB / 0.8735 GB, free: 7.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/2.109, allocations: 145.8 kB / 0.8736 GB, free: 7.809 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/2.11, allocations: 0.6527 MB / 0.8743 GB, free: 7.152 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003263/2.111, allocations: 25.7 kB / 0.8743 GB, free: 7.121 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000384/2.111, allocations: 0.5526 MB / 0.8748 GB, free: 6.562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004588/2.111, allocations: 394.2 kB / 0.8752 GB, free: 6.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/2.112, allocations: 3.938 kB / 0.8752 GB, free: 6.168 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/2.112, allocations: 374.7 kB / 0.8756 GB, free: 5.793 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/2.113, allocations: 0.7223 MB / 0.8763 GB, free: 5.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/2.115, allocations: 0.983 MB / 0.8772 GB, free: 4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01174/2.127, allocations: 2.359 MB / 0.8795 GB, free: 1.641 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/2.127, allocations: 4 kB / 0.8796 GB, free: 1.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.2233/2.35, allocations: 3.799 MB / 0.8833 GB, free: 48.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004769/2.351, allocations: 2.359 MB / 0.8856 GB, free: 45.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/2.351, allocations: 5.625 kB / 0.8856 GB, free: 45.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003109/2.354, allocations: 0.9969 MB / 0.8865 GB, free: 45.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/2.355, allocations: 223.9 kB / 0.8868 GB, free: 45.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009686/2.365, allocations: 6.607 MB / 0.8932 GB, free: 41.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00202/2.367, allocations: 67.86 kB / 0.8933 GB, free: 41.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000244/2.367, allocations: 61.86 kB / 0.8933 GB, free: 41.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/2.367, allocations: 4.312 kB / 0.8933 GB, free: 41.68 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01372/2.381, allocations: 3.022 MB / 0.8963 GB, free: 41.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/2.381, allocations: 6.656 kB / 0.8963 GB, free: 41.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/2.383, allocations: 0.7003 MB / 0.897 GB, free: 41.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/2.385, allocations: 233.1 kB / 0.8972 GB, free: 41.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006873/2.392, allocations: 6.578 MB / 0.9036 GB, free: 36.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/2.393, allocations: 66.75 kB / 0.9037 GB, free: 36.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/2.394, allocations: 65.31 kB / 0.9038 GB, free: 36.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005136/2.394, allocations: 139 kB / 0.9039 GB, free: 36.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003802/2.394, allocations: 119.1 kB / 0.904 GB, free: 36.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/2.405, allocations: 3.064 MB / 0.907 GB, free: 36.46 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/2.406, allocations: 12.84 kB / 0.907 GB, free: 36.46 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/2.406, allocations: 2.516 kB / 0.907 GB, free: 36.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/2.406, allocations: 11.61 kB / 0.907 GB, free: 36.46 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/2.419, allocations: 4.537 MB / 0.9114 GB, free: 36.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/2.419, allocations: 0 / 0.9114 GB, free: 36.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/2.42, allocations: 151.6 kB / 0.9116 GB, free: 36.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003287/2.424, allocations: 1.013 MB / 0.9126 GB, free: 36.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003677/2.424, allocations: 22.23 kB / 0.9126 GB, free: 36.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/2.435, allocations: 6.596 MB / 0.919 GB, free: 31.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.603e-06/2.435, allocations: 0 / 0.919 GB, free: 31.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/2.447, allocations: 4.046 MB / 0.923 GB, free: 31.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/2.448, allocations: 400 kB / 0.9234 GB, free: 31.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/2.448, allocations: 6.781 kB / 0.9234 GB, free: 31.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/2.45, allocations: 70.77 kB / 0.9234 GB, free: 31.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004299/2.45, allocations: 138.8 kB / 0.9236 GB, free: 31.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/2.451, allocations: 56.78 kB / 0.9236 GB, free: 31.5 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008281/2.451, allocations: 496.2 kB / 0.9241 GB, free: 31.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.451, allocations: 0 / 0.9241 GB, free: 31.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004927/2.456, allocations: 1.047 MB / 0.9251 GB, free: 31.39 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002526/2.459, allocations: 0.802 MB / 0.9259 GB, free: 31.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008074/2.467, allocations: 3.415 MB / 0.9292 GB, free: 30.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.255e-06/2.467, allocations: 0 / 0.9292 GB, free: 30.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00326/2.47, allocations: 1.252 MB / 0.9305 GB, free: 30.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003128/2.474, allocations: 488.1 kB / 0.9309 GB, free: 30.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007501/2.481, allocations: 2.494 MB / 0.9334 GB, free: 29.99 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009574/2.482, allocations: 1.29 MB / 0.9346 GB, free: 29.28 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007206/2.483, allocations: 129.5 kB / 0.9348 GB, free: 29.27 MB / 346.7 MB Notification: Performance of SimCode: time 1.939e-06/2.483, allocations: 0 / 0.9348 GB, free: 29.27 MB / 346.7 MB Notification: Performance of Templates: time 0.06611/2.549, allocations: 49.74 MB / 0.9833 GB, free: 12.57 MB / 346.7 MB