Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.813/1.813, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08186/0.08224, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03786/0.1201, allocations: 26.62 MB / 335 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02792/0.1481, allocations: 12.63 MB / 347.6 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002376/0.1505, allocations: 55.5 kB / 347.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.1522, allocations: 0.513 MB / 348.2 MB, free: 9.109 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006317/0.1585, allocations: 1.761 MB / 349.9 MB, free: 7.344 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00985/0.1684, allocations: 2.853 MB / 352.8 MB, free: 4.484 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004729/0.1732, allocations: 2.448 MB / 355.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001625/0.1748, allocations: 0.8281 MB / 356.1 MB, free: 1.191 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.1776, allocations: 1.184 MB / 357.2 MB, free: 4 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001839/0.1794, allocations: 0.9696 MB / 358.2 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002599/0.1797, allocations: 68 kB / 358.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005379/0.1851, allocations: 2.122 MB / 360.4 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008445/0.186, allocations: 446.8 kB / 360.8 MB, free: 12.4 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006244/0.1866, allocations: 301 kB / 361.1 MB, free: 12.1 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005497/0.1921, allocations: 2.553 MB / 363.7 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.351e-06/0.1922, allocations: 0 / 363.7 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.709e-06/0.1922, allocations: 0 / 363.7 MB, free: 9.543 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.1922, allocations: 0 / 363.7 MB, free: 9.543 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.00474/0.197, allocations: 1.834 MB / 365.5 MB, free: 7.656 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.197, allocations: 8.031 kB / 365.5 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007204/0.1978, allocations: 174.2 kB / 365.7 MB, free: 7.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/0.2, allocations: 0.9179 MB / 366.6 MB, free: 6.516 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.2001, allocations: 81.98 kB / 366.7 MB, free: 6.434 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.2003, allocations: 103.9 kB / 366.8 MB, free: 6.332 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003727/0.2041, allocations: 1.621 MB / 368.4 MB, free: 4.629 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.47e-05/0.2041, allocations: 4 kB / 368.4 MB, free: 4.625 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001794/0.2043, allocations: 43.94 kB / 368.5 MB, free: 4.582 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001865/0.2045, allocations: 101.9 kB / 368.6 MB, free: 4.484 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00403/0.2086, allocations: 1.639 MB / 370.2 MB, free: 2.84 MB / 314.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.2137/0.4223, allocations: 6.716 MB / 376.9 MB, free: 60.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002088/0.4245, allocations: 0.8919 MB / 377.8 MB, free: 60.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004673/0.4292, allocations: 2.762 MB / 380.6 MB, free: 58.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.4292, allocations: 47.34 kB / 380.6 MB, free: 58.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 4.198e-06/0.4293, allocations: 2.297 kB / 380.6 MB, free: 58.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=90): time 0.01068/0.4399, allocations: 3.642 MB / 384.3 MB, free: 56.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.578e-05/0.44, allocations: 196.3 kB / 384.5 MB, free: 56.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.4421, allocations: 1.183 MB / 385.6 MB, free: 56.03 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001618/0.4423, allocations: 49.3 kB / 385.7 MB, free: 55.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004246/0.4427, allocations: 0.6616 MB / 386.4 MB, free: 55.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/0.4431, allocations: 319 kB / 386.7 MB, free: 55.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.4432, allocations: 29.69 kB / 386.7 MB, free: 55.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4433, allocations: 370.8 kB / 387.1 MB, free: 54.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.4446, allocations: 0.5511 MB / 387.6 MB, free: 54.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.4461, allocations: 1.054 MB / 388.7 MB, free: 53.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.4476, allocations: 0.6752 MB / 389.3 MB, free: 53.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.4476, allocations: 4.219 kB / 389.3 MB, free: 53.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003902/0.4515, allocations: 1.813 MB / 391.2 MB, free: 52.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000229/0.4518, allocations: 0.5307 MB / 391.7 MB, free: 51.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.4518, allocations: 11.81 kB / 391.7 MB, free: 51.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006448/0.4583, allocations: 0.7842 MB / 392.5 MB, free: 51.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.4597, allocations: 304.8 kB / 392.8 MB, free: 51.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/0.4618, allocations: 2.124 MB / 394.9 MB, free: 49.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.4634, allocations: 103.3 kB / 395 MB, free: 49.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000178/0.4636, allocations: 75.14 kB / 395.1 MB, free: 49.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.4636, allocations: 8.562 kB / 395.1 MB, free: 49.32 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003664/0.4673, allocations: 1.689 MB / 396.8 MB, free: 48.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.968e-05/0.4674, allocations: 13.53 kB / 396.8 MB, free: 48.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005366/0.4727, allocations: 0.6105 MB / 397.4 MB, free: 48.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/0.4743, allocations: 308.9 kB / 397.7 MB, free: 48.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.476, allocations: 1.974 MB / 399.7 MB, free: 46.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00124/0.4772, allocations: 102.7 kB / 399.8 MB, free: 46.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001702/0.4774, allocations: 70.67 kB / 399.8 MB, free: 46.21 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],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 (174): * Single equations (assignments): 171 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009045/0.4783, allocations: 479 kB / 400.3 MB, free: 45.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003209/0.4787, allocations: 138.3 kB / 400.4 MB, free: 45.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003666/0.4824, allocations: 1.514 MB / 402 MB, free: 44.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.4824, allocations: 8 kB / 402 MB, free: 44.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.434e-06/0.4824, allocations: 2.062 kB / 402 MB, free: 44.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.4825, allocations: 7.984 kB / 402 MB, free: 44.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005834/0.4883, allocations: 2.758 MB / 404.7 MB, free: 41.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.798e-06/0.4883, allocations: 0 / 404.7 MB, free: 41.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009746/0.4893, allocations: 152.9 kB / 404.9 MB, free: 41.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004186/0.4935, allocations: 0.6412 MB / 405.5 MB, free: 40.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001475/0.4937, allocations: 27.98 kB / 405.6 MB, free: 40.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.4957, allocations: 2.111 MB / 407.7 MB, free: 38.65 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4957, allocations: 0 / 407.7 MB, free: 38.65 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003928/0.4997, allocations: 2.072 MB / 409.7 MB, free: 36.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000462/0.5001, allocations: 231.4 kB / 410 MB, free: 36.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.5004, allocations: 24 kB / 410 MB, free: 36.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009484/0.5014, allocations: 75.75 kB / 410.1 MB, free: 36.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/0.5016, allocations: 96.84 kB / 410.2 MB, free: 36.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.5017, allocations: 35.98 kB / 410.2 MB, free: 36.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001254/0.503, allocations: 0.7974 MB / 411 MB, free: 35.27 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.15e-07/0.503, allocations: 5.969 kB / 411 MB, free: 35.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003137/0.5062, allocations: 1.079 MB / 412.1 MB, free: 34.29 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001937/0.5081, allocations: 0.7933 MB / 412.9 MB, free: 33.65 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005013/0.5132, allocations: 2.223 MB / 415.1 MB, free: 31.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.512e-06/0.5132, allocations: 0 / 415.1 MB, free: 31.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001688/0.5149, allocations: 0.6846 MB / 415.8 MB, free: 30.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/0.5177, allocations: 0.4938 MB / 416.3 MB, free: 30.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005291/0.523, allocations: 3.249 MB / 419.5 MB, free: 26.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007802/0.5239, allocations: 1.283 MB / 420.8 MB, free: 25.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005551/0.5244, allocations: 119.4 kB / 420.9 MB, free: 25.56 MB / 314.7 MB Notification: Performance of SimCode: time 1.704e-06/0.5244, allocations: 0 / 420.9 MB, free: 25.56 MB / 314.7 MB Notification: Performance of Templates: time 0.05937/0.5838, allocations: 42.49 MB / 463.4 MB, free: 15.02 MB / 346.7 MB