Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.669/1.669, allocations: 171.1 MB / 187.3 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004681, allocations: 8 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08698/0.08747, allocations: 38.77 MB / 272.5 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9016/0.9891, allocations: 311.2 MB / 0.57 GB, free: 3.215 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.9895, allocations: 78.47 kB / 0.5701 GB, free: 3.176 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7156/1.705, allocations: 130.7 MB / 0.6977 GB, free: 26.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.705, allocations: 0 / 0.6977 GB, free: 26.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.823e-05/1.705, allocations: 19.98 kB / 0.6978 GB, free: 26.83 MB / 362.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.003624/1.709, allocations: 1.185 MB / 0.6989 GB, free: 25.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/1.709, allocations: 16.02 kB / 0.6989 GB, free: 25.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004801/1.709, allocations: 95 kB / 0.699 GB, free: 25.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/1.711, allocations: 0.6519 MB / 0.6997 GB, free: 24.79 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/1.711, allocations: 108.6 kB / 0.6998 GB, free: 24.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/1.712, allocations: 63.91 kB / 0.6998 GB, free: 24.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002131/1.714, allocations: 0.8932 MB / 0.7007 GB, free: 23.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.086e-05/1.714, allocations: 7.844 kB / 0.7007 GB, free: 23.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/1.714, allocations: 27.98 kB / 0.7007 GB, free: 23.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000106/1.714, allocations: 57.27 kB / 0.7008 GB, free: 23.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/1.716, allocations: 0.8288 MB / 0.7016 GB, free: 22.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008282/1.724, allocations: 3.294 MB / 0.7048 GB, free: 19.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/1.726, allocations: 0.6609 MB / 0.7055 GB, free: 18.65 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004217/1.73, allocations: 2.055 MB / 0.7075 GB, free: 16.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/1.73, allocations: 43.06 kB / 0.7075 GB, free: 16.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.597e-06/1.73, allocations: 3.938 kB / 0.7075 GB, free: 16.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.01133/1.742, allocations: 2.86 MB / 0.7103 GB, free: 13.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/1.742, allocations: 81.67 kB / 0.7104 GB, free: 13.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/1.743, allocations: 0.6837 MB / 0.7111 GB, free: 12.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/1.743, allocations: 45.69 kB / 0.7111 GB, free: 12.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002374/1.743, allocations: 347 kB / 0.7114 GB, free: 12.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/1.744, allocations: 232.7 kB / 0.7116 GB, free: 12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-05/1.744, allocations: 12 kB / 0.7117 GB, free: 11.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.478e-05/1.744, allocations: 342.8 kB / 0.712 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009426/1.745, allocations: 361.8 kB / 0.7123 GB, free: 11.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/1.746, allocations: 0.5026 MB / 0.7128 GB, free: 10.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/1.747, allocations: 411 kB / 0.7132 GB, free: 10.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/1.747, allocations: 0 / 0.7132 GB, free: 10.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002954/1.75, allocations: 1.107 MB / 0.7143 GB, free: 9.219 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001124/1.75, allocations: 210.3 kB / 0.7145 GB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/1.75, allocations: 4 kB / 0.7145 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001978/1.752, allocations: 436.4 kB / 0.7149 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/1.753, allocations: 163.8 kB / 0.7151 GB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/1.755, allocations: 1.021 MB / 0.7161 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/1.756, allocations: 47.95 kB / 0.7161 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/1.756, allocations: 35.98 kB / 0.7162 GB, free: 7.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/1.756, allocations: 4 kB / 0.7162 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002513/1.759, allocations: 0.9299 MB / 0.7171 GB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/1.759, allocations: 8.062 kB / 0.7171 GB, free: 6.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009334/1.76, allocations: 240.7 kB / 0.7173 GB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/1.761, allocations: 171.7 kB / 0.7175 GB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009859/1.762, allocations: 0.806 MB / 0.7182 GB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007739/1.763, allocations: 39.89 kB / 0.7183 GB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.891e-05/1.763, allocations: 39.92 kB / 0.7183 GB, free: 4.969 MB / 362.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.0007158/1.764, allocations: 332.8 kB / 0.7186 GB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002571/1.764, allocations: 79.06 kB / 0.7187 GB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00295/1.767, allocations: 1.088 MB / 0.7198 GB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/1.767, allocations: 11.95 kB / 0.7198 GB, free: 3.441 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/1.767, allocations: 4 kB / 0.7198 GB, free: 3.438 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/1.767, allocations: 3.984 kB / 0.7198 GB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004707/1.772, allocations: 1.994 MB / 0.7217 GB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/1.772, allocations: 3.938 kB / 0.7218 GB, free: 1.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/1.773, allocations: 119.9 kB / 0.7219 GB, free: 1.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/1.775, allocations: 448.5 kB / 0.7223 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/1.775, allocations: 19.98 kB / 0.7223 GB, free: 0.8008 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2486/2.023, allocations: 1.026 MB / 0.7233 GB, free: 77.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/2.023, allocations: 0 / 0.7233 GB, free: 77.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004286/2.028, allocations: 1.589 MB / 0.7249 GB, free: 77.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006507/2.028, allocations: 254.5 kB / 0.7251 GB, free: 76.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/2.029, allocations: 15.16 kB / 0.7251 GB, free: 76.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/2.03, allocations: 45.28 kB / 0.7252 GB, free: 76.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/2.03, allocations: 58.56 kB / 0.7252 GB, free: 76.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/2.03, allocations: 28.28 kB / 0.7252 GB, free: 76.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009214/2.031, allocations: 473.2 kB / 0.7257 GB, free: 76.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/2.031, allocations: 2.156 kB / 0.7257 GB, free: 76.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002577/2.034, allocations: 0.646 MB / 0.7263 GB, free: 76.83 MB / 362.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.001667/2.035, allocations: 0.5906 MB / 0.7269 GB, free: 76.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004095/2.039, allocations: 1.35 MB / 0.7282 GB, free: 76.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/2.039, allocations: 0 / 0.7282 GB, free: 76.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/2.041, allocations: 465.3 kB / 0.7287 GB, free: 76.73 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/2.044, allocations: 356.6 kB / 0.729 GB, free: 76.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005363/2.049, allocations: 2.075 MB / 0.731 GB, free: 75.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005928/2.05, allocations: 1.001 MB / 0.732 GB, free: 75.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005546/2.051, allocations: 86.52 kB / 0.7321 GB, free: 75.26 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/2.051, allocations: 0 / 0.7321 GB, free: 75.26 MB / 362.7 MB Notification: Performance of Templates: time 0.04082/2.091, allocations: 19.24 MB / 0.7509 GB, free: 74.51 MB / 362.7 MB