Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.65/1.65, allocations: 171.2 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005164/0.0005166, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08265/0.08319, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02407/0.1073, allocations: 15.12 MB / 287.8 MB, free: 12.36 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.1191, allocations: 5.433 MB / 293.2 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009658/0.1201, allocations: 27.75 kB / 293.2 MB, free: 6.898 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.1215, allocations: 294.5 kB / 293.5 MB, free: 6.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003348/0.1249, allocations: 0.849 MB / 294.4 MB, free: 5.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004972/0.1299, allocations: 1.243 MB / 295.6 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002785/0.1327, allocations: 1.183 MB / 296.8 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009019/0.1336, allocations: 401.5 kB / 297.2 MB, free: 2.918 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.135, allocations: 0.5491 MB / 297.7 MB, free: 2.367 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.1361, allocations: 466.3 kB / 298.2 MB, free: 1.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001933/0.1363, allocations: 32 kB / 298.2 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003072/0.1394, allocations: 1.01 MB / 299.2 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005552/0.14, allocations: 207.4 kB / 299.4 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003359/0.1403, allocations: 169.3 kB / 299.6 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2262/0.3666, allocations: 1.196 MB / 300.8 MB, free: 11.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.3666, allocations: 0 / 300.8 MB, free: 11.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.3666, allocations: 0 / 300.8 MB, free: 11.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.868e-05/0.3667, allocations: 1 kB / 300.8 MB, free: 11.57 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003255/0.3699, allocations: 1.037 MB / 301.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.37, allocations: 8.953 kB / 301.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005039/0.3705, allocations: 89.41 kB / 301.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.372, allocations: 0.5263 MB / 302.4 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.84e-05/0.3721, allocations: 40.06 kB / 302.5 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.3722, allocations: 51.14 kB / 302.5 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.3743, allocations: 0.7288 MB / 303.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/0.3744, allocations: 3.75 kB / 303.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.3745, allocations: 23.5 kB / 303.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/0.3746, allocations: 44.69 kB / 303.3 MB, free: 10.51 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002156/0.3768, allocations: 0.6909 MB / 304 MB, free: 10.5 MB / 250.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006935/0.3838, allocations: 3.048 MB / 307.1 MB, free: 8.941 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001186/0.385, allocations: 484.2 kB / 307.5 MB, free: 8.914 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003109/0.3853, allocations: 351.4 kB / 307.9 MB, free: 8.531 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.3854, allocations: 37 kB / 307.9 MB, free: 8.492 MB / 250.7 MB Notification: Performance of pre-optimization done (n=48): time 3.537e-06/0.3854, allocations: 2.625 kB / 307.9 MB, free: 8.492 MB / 250.7 MB Notification: Performance of matching and sorting (n=58): time 0.008825/0.3942, allocations: 2.323 MB / 310.2 MB, free: 7.953 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.3943, allocations: 83.55 kB / 310.3 MB, free: 7.859 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.3954, allocations: 0.6209 MB / 310.9 MB, free: 7.719 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000133/0.3956, allocations: 39.55 kB / 311 MB, free: 7.688 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002685/0.3958, allocations: 326.2 kB / 311.3 MB, free: 7.535 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.3961, allocations: 203.1 kB / 311.5 MB, free: 7.406 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-05/0.3961, allocations: 15.06 kB / 311.5 MB, free: 7.406 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3963, allocations: 380.5 kB / 311.9 MB, free: 7.094 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008063/0.3971, allocations: 297.3 kB / 312.2 MB, free: 7.094 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009261/0.398, allocations: 471.5 kB / 312.6 MB, free: 6.914 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008842/0.3989, allocations: 350.1 kB / 313 MB, free: 6.902 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.399, allocations: 1.375 kB / 313 MB, free: 6.902 MB / 250.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002501/0.4015, allocations: 0.956 MB / 313.9 MB, free: 6.809 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.4017, allocations: 228.9 kB / 314.2 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.4017, allocations: 7.891 kB / 314.2 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004553/0.4062, allocations: 425.1 kB / 314.6 MB, free: 6.531 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.4075, allocations: 149.9 kB / 314.7 MB, free: 6.531 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.4087, allocations: 0.8239 MB / 315.6 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.4099, allocations: 48.58 kB / 315.6 MB, free: 6 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.867e-05/0.41, allocations: 40.61 kB / 315.6 MB, free: 5.996 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.41, allocations: 4.375 kB / 315.6 MB, free: 5.996 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002175/0.4122, allocations: 0.8107 MB / 316.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4122, allocations: 8.266 kB / 316.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003591/0.4158, allocations: 288.5 kB / 316.7 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.417, allocations: 159.8 kB / 316.9 MB, free: 5.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008126/0.4178, allocations: 0.713 MB / 317.6 MB, free: 5.422 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.4188, allocations: 46 kB / 317.7 MB, free: 5.418 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.432e-05/0.4189, allocations: 32.19 kB / 317.7 MB, free: 5.418 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006257/0.4196, allocations: 325 kB / 318 MB, free: 5.223 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001815/0.4198, allocations: 74.39 kB / 318.1 MB, free: 5.184 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002283/0.4221, allocations: 0.8573 MB / 318.9 MB, free: 5.109 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.4221, allocations: 3.797 kB / 318.9 MB, free: 5.109 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4221, allocations: 0 / 318.9 MB, free: 5.109 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002915/0.4224, allocations: 160.8 kB / 319.1 MB, free: 4.973 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001836/0.4226, allocations: 11.78 kB / 319.1 MB, free: 4.973 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008108/0.4234, allocations: 37.64 kB / 319.2 MB, free: 4.969 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.4236, allocations: 49.84 kB / 319.2 MB, free: 4.965 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002964/0.4266, allocations: 0.9262 MB / 320.1 MB, free: 4.82 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.002515/0.4291, allocations: 1.174 MB / 321.3 MB, free: 4.543 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007008/0.4299, allocations: 318.3 kB / 321.6 MB, free: 4.543 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0007824/0.4307, allocations: 435.2 kB / 322 MB, free: 4.453 MB / 250.7 MB Notification: Performance of Backend: time 1.974e-06/0.4307, allocations: 0 / 322 MB, free: 4.453 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004385/0.4351, allocations: 1.306 MB / 323.3 MB, free: 4.223 MB / 250.7 MB Notification: Performance of SimCode: time 0.005164/0.4403, allocations: 2.468 MB / 325.8 MB, free: 2.551 MB / 250.7 MB Notification: Performance of Templates: time 0.05316/0.4935, allocations: 19.97 MB / 345.8 MB, free: 15.8 MB / 282.7 MB