Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 194.9 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000602/0.0006021, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1356, allocations: 44.51 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02363/0.1593, allocations: 15.12 MB / 324.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.1709, allocations: 5.445 MB / 329.6 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007249/0.1717, allocations: 27.75 kB / 329.7 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.1728, allocations: 294.4 kB / 329.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002981/0.1758, allocations: 0.8413 MB / 330.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004899/0.1807, allocations: 1.247 MB / 332 MB, free: 9.316 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002531/0.1833, allocations: 1.191 MB / 333.2 MB, free: 8.121 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008231/0.1841, allocations: 389.5 kB / 333.6 MB, free: 7.73 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001321/0.1855, allocations: 0.5412 MB / 334.1 MB, free: 7.188 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.1865, allocations: 466.3 kB / 334.6 MB, free: 6.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.1867, allocations: 40 kB / 334.6 MB, free: 6.691 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00292/0.1896, allocations: 1.01 MB / 335.7 MB, free: 5.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000396/0.19, allocations: 211.4 kB / 335.9 MB, free: 5.473 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002861/0.1903, allocations: 157.3 kB / 336 MB, free: 5.312 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002733/0.1931, allocations: 1.208 MB / 337.2 MB, free: 4.102 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1931, allocations: 0 / 337.2 MB, free: 4.102 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1931, allocations: 0 / 337.2 MB, free: 4.102 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.1932, allocations: 0 / 337.2 MB, free: 4.102 MB / 282.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.003076/0.1963, allocations: 1.04 MB / 338.3 MB, free: 3.012 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.1963, allocations: 11.97 kB / 338.3 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004171/0.1967, allocations: 87.05 kB / 338.4 MB, free: 2.914 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.198, allocations: 0.5171 MB / 338.9 MB, free: 2.355 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.547e-05/0.1981, allocations: 48.92 kB / 338.9 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.1983, allocations: 51.89 kB / 339 MB, free: 2.258 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.2002, allocations: 0.7294 MB / 339.7 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.2002, allocations: 0 / 339.7 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.2003, allocations: 23.98 kB / 339.7 MB, free: 1.477 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001204/0.2004, allocations: 44.97 kB / 339.8 MB, free: 1.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001942/0.2024, allocations: 0.6908 MB / 340.5 MB, free: 0.7383 MB / 282.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.007052/0.2095, allocations: 3.054 MB / 343.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001688/0.2112, allocations: 488.9 kB / 344 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004762/0.2117, allocations: 344.8 kB / 344.3 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.528e-05/0.2118, allocations: 46.94 kB / 344.4 MB, free: 12.51 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 4.167e-06/0.2118, allocations: 0 / 344.4 MB, free: 12.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=58): time 0.01211/0.2239, allocations: 2.316 MB / 346.7 MB, free: 10.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.224, allocations: 85.67 kB / 346.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001638/0.2257, allocations: 0.6094 MB / 347.4 MB, free: 9.398 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001244/0.2258, allocations: 41.7 kB / 347.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004728/0.2263, allocations: 336.3 kB / 347.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.2267, allocations: 205 kB / 348 MB, free: 8.816 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.96e-05/0.2268, allocations: 12 kB / 348 MB, free: 8.805 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002785/0.2271, allocations: 390.7 kB / 348.3 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.2283, allocations: 293.8 kB / 348.6 MB, free: 8.129 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.2296, allocations: 469.9 kB / 349.1 MB, free: 7.602 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.2309, allocations: 347 kB / 349.4 MB, free: 7.266 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.231, allocations: 4 kB / 349.4 MB, free: 7.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003483/0.2345, allocations: 0.9503 MB / 350.4 MB, free: 6.301 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002315/0.2347, allocations: 228.9 kB / 350.6 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.2347, allocations: 4 kB / 350.6 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006258/0.241, allocations: 420.3 kB / 351 MB, free: 5.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/0.2425, allocations: 155.7 kB / 351.2 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.2444, allocations: 0.8292 MB / 352 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.2455, allocations: 48.03 kB / 352.1 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.2457, allocations: 31.98 kB / 352.1 MB, free: 4.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.2457, allocations: 4 kB / 352.1 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003061/0.2488, allocations: 0.8122 MB / 352.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.2488, allocations: 4 kB / 352.9 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004891/0.2537, allocations: 289.1 kB / 353.2 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.2553, allocations: 159.7 kB / 353.3 MB, free: 3.234 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.2566, allocations: 0.7123 MB / 354.1 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/0.2577, allocations: 44.05 kB / 354.1 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.2579, allocations: 31.98 kB / 354.1 MB, free: 2.422 MB / 298.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.0007607/0.2586, allocations: 322.7 kB / 354.4 MB, free: 2.098 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002527/0.2589, allocations: 71.16 kB / 354.5 MB, free: 2.027 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.2623, allocations: 0.8619 MB / 355.4 MB, free: 1.148 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.2623, allocations: 4 kB / 355.4 MB, free: 1.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/0.2624, allocations: 8.047 kB / 355.4 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000317/0.2627, allocations: 160.1 kB / 355.5 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.263, allocations: 15.98 kB / 355.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.264, allocations: 31.98 kB / 355.6 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.2642, allocations: 48.48 kB / 355.6 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004429/0.2687, allocations: 0.9366 MB / 356.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.003823/0.2725, allocations: 1.171 MB / 357.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001071/0.2736, allocations: 316.3 kB / 358.1 MB, free: 14.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00112/0.2747, allocations: 435 kB / 358.5 MB, free: 14 MB / 314.7 MB Notification: Performance of Backend: time 7.92e-07/0.2748, allocations: 4 kB / 358.5 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00587/0.2806, allocations: 1.303 MB / 359.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of SimCode: time 0.006617/0.2873, allocations: 2.458 MB / 362.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of Templates: time 0.2882/0.5755, allocations: 19.96 MB / 382.2 MB, free: 61.1 MB / 314.7 MB