Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 2.42/2.42, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003556, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1095, allocations: 44.5 MB / 309 MB, free: 388 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.063/1.172, allocations: 316.5 MB / 0.6109 GB, free: 66.36 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/1.173, allocations: 79.41 kB / 0.611 GB, free: 66.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7714/1.944, allocations: 130.7 MB / 0.7386 GB, free: 108.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.944, allocations: 0 / 0.7386 GB, free: 108.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.637e-05/1.944, allocations: 16 kB / 0.7386 GB, free: 108.7 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.004034/1.948, allocations: 1.183 MB / 0.7397 GB, free: 107.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/1.948, allocations: 8.031 kB / 0.7398 GB, free: 107.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006513/1.949, allocations: 99.02 kB / 0.7399 GB, free: 107.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002045/1.951, allocations: 0.6543 MB / 0.7405 GB, free: 106.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/1.951, allocations: 108.5 kB / 0.7406 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/1.951, allocations: 51.81 kB / 0.7406 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/1.954, allocations: 0.8972 MB / 0.7415 GB, free: 105.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/1.954, allocations: 0 / 0.7415 GB, free: 105.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/1.954, allocations: 27.12 kB / 0.7415 GB, free: 105.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/1.954, allocations: 61.17 kB / 0.7416 GB, free: 105.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002128/1.956, allocations: 0.8288 MB / 0.7424 GB, free: 104.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008976/1.965, allocations: 3.306 MB / 0.7456 GB, free: 101.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/1.967, allocations: 0.6462 MB / 0.7463 GB, free: 100.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004584/1.971, allocations: 2.055 MB / 0.7483 GB, free: 98.42 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/1.971, allocations: 43.12 kB / 0.7483 GB, free: 98.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 4.318e-06/1.972, allocations: 0 / 0.7483 GB, free: 98.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.01187/1.983, allocations: 2.874 MB / 0.7511 GB, free: 95.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/1.983, allocations: 81.67 kB / 0.7512 GB, free: 95.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001179/1.985, allocations: 0.6797 MB / 0.7519 GB, free: 94.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/1.985, allocations: 37.7 kB / 0.7519 GB, free: 94.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/1.985, allocations: 338.5 kB / 0.7522 GB, free: 94.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/1.985, allocations: 221.2 kB / 0.7524 GB, free: 94.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.225e-05/1.986, allocations: 16 kB / 0.7525 GB, free: 94.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/1.986, allocations: 394.8 kB / 0.7528 GB, free: 93.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009707/1.987, allocations: 357.8 kB / 0.7532 GB, free: 93.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009908/1.988, allocations: 0.5065 MB / 0.7537 GB, free: 92.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009869/1.989, allocations: 403 kB / 0.754 GB, free: 92.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.989, allocations: 0 / 0.754 GB, free: 92.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003093/1.992, allocations: 1.149 MB / 0.7552 GB, free: 91.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/1.992, allocations: 208.6 kB / 0.7554 GB, free: 90.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/1.992, allocations: 4 kB / 0.7554 GB, free: 90.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001976/1.994, allocations: 452.4 kB / 0.7558 GB, free: 90.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/1.995, allocations: 163.8 kB / 0.756 GB, free: 90.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/1.997, allocations: 1.017 MB / 0.757 GB, free: 89.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/1.998, allocations: 55.86 kB / 0.757 GB, free: 89.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/1.999, allocations: 31.98 kB / 0.757 GB, free: 89.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/1.999, allocations: 4 kB / 0.757 GB, free: 89.17 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002542/2.001, allocations: 0.9337 MB / 0.758 GB, free: 88.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/2.001, allocations: 4 kB / 0.758 GB, free: 88.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009546/2.002, allocations: 244.9 kB / 0.7582 GB, free: 87.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/2.003, allocations: 163.7 kB / 0.7583 GB, free: 87.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/2.004, allocations: 0.8098 MB / 0.7591 GB, free: 86.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/2.006, allocations: 47.92 kB / 0.7592 GB, free: 86.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.961e-05/2.006, allocations: 28 kB / 0.7592 GB, free: 86.92 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.000674/2.006, allocations: 332.9 kB / 0.7595 GB, free: 86.58 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002311/2.007, allocations: 79.16 kB / 0.7596 GB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003041/2.01, allocations: 1.099 MB / 0.7607 GB, free: 85.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/2.01, allocations: 8 kB / 0.7607 GB, free: 85.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/2.01, allocations: 0 / 0.7607 GB, free: 85.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/2.01, allocations: 3.984 kB / 0.7607 GB, free: 85.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004872/2.015, allocations: 1.995 MB / 0.7626 GB, free: 83.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/2.015, allocations: 0 / 0.7626 GB, free: 83.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/2.016, allocations: 131.8 kB / 0.7628 GB, free: 83.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/2.018, allocations: 449.8 kB / 0.7632 GB, free: 82.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/2.018, allocations: 15.98 kB / 0.7632 GB, free: 82.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/2.02, allocations: 1.037 MB / 0.7642 GB, free: 81.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/2.02, allocations: 0 / 0.7642 GB, free: 81.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003716/2.023, allocations: 1.595 MB / 0.7658 GB, free: 80.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007186/2.024, allocations: 252 kB / 0.766 GB, free: 79.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/2.024, allocations: 16 kB / 0.766 GB, free: 79.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/2.025, allocations: 51.81 kB / 0.7661 GB, free: 79.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/2.026, allocations: 56.56 kB / 0.7661 GB, free: 79.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/2.026, allocations: 27.98 kB / 0.7662 GB, free: 79.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008393/2.027, allocations: 475 kB / 0.7666 GB, free: 79.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/2.027, allocations: 0 / 0.7666 GB, free: 79.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002617/2.029, allocations: 0.6362 MB / 0.7672 GB, free: 78.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001903/2.031, allocations: 0.5863 MB / 0.7678 GB, free: 78 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004183/2.035, allocations: 1.355 MB / 0.7691 GB, free: 76.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/2.035, allocations: 0 / 0.7691 GB, free: 76.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/2.037, allocations: 475.3 kB / 0.7696 GB, free: 76.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/2.04, allocations: 350.5 kB / 0.7699 GB, free: 75.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005101/2.045, allocations: 2.017 MB / 0.7719 GB, free: 73.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005192/2.046, allocations: 1.011 MB / 0.7729 GB, free: 72.76 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00184/2.047, allocations: 310.4 kB / 0.7732 GB, free: 72.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000314/2.048, allocations: 71.42 kB / 0.7732 GB, free: 72.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.243e-06/2.048, allocations: 0 / 0.7732 GB, free: 72.38 MB / 410.7 MB Notification: Performance of Templates: time 0.05111/2.099, allocations: 21.68 MB / 0.7944 GB, free: 50.76 MB / 410.7 MB