Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.683/1.683, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.0003581, allocations: 11.98 kB / 233.2 MB, free: 0.9531 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07065/0.07103, allocations: 38.77 MB / 271.9 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2117/0.2828, allocations: 26.59 MB / 298.5 MB, free: 2.062 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03187/0.3147, allocations: 12.62 MB / 311.2 MB, free: 8.859 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003317/0.3181, allocations: 55.53 kB / 311.2 MB, free: 8.828 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003417/0.3216, allocations: 0.5115 MB / 311.7 MB, free: 8.379 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01146/0.3331, allocations: 1.77 MB / 313.5 MB, free: 6.969 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01863/0.3518, allocations: 2.856 MB / 316.3 MB, free: 5.027 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.008247/0.3601, allocations: 2.449 MB / 318.8 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002756/0.3629, allocations: 0.8325 MB / 319.6 MB, free: 2.891 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004842/0.3678, allocations: 1.187 MB / 320.8 MB, free: 2.238 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003564/0.3714, allocations: 0.9686 MB / 321.8 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005257/0.372, allocations: 72 kB / 321.9 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01048/0.3825, allocations: 2.114 MB / 324 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001851/0.3844, allocations: 442.8 kB / 324.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009707/0.3854, allocations: 305 kB / 324.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006156/0.3916, allocations: 2.554 MB / 327.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.129e-06/0.3916, allocations: 7.938 kB / 327.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.59e-06/0.3917, allocations: 8 kB / 327.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.429e-05/0.3917, allocations: 0 / 327.3 MB, free: 11.87 MB / 266.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.005128/0.3969, allocations: 1.826 MB / 329.1 MB, free: 9.992 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3969, allocations: 12.02 kB / 329.1 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009187/0.3978, allocations: 170.1 kB / 329.3 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002428/0.4003, allocations: 0.9178 MB / 330.2 MB, free: 8.852 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001343/0.4005, allocations: 81.95 kB / 330.3 MB, free: 8.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003241/0.4008, allocations: 95.98 kB / 330.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004073/0.4049, allocations: 1.621 MB / 332 MB, free: 6.973 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.466e-05/0.405, allocations: 7.938 kB / 332 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002074/0.4052, allocations: 43.97 kB / 332 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001928/0.4054, allocations: 104.9 kB / 332.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004252/0.4097, allocations: 1.635 MB / 333.8 MB, free: 5.184 MB / 266.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.01382/0.4236, allocations: 6.737 MB / 340.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002184/0.4258, allocations: 0.9016 MB / 341.4 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005729/0.4316, allocations: 2.758 MB / 344.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.013e-05/0.4317, allocations: 47.22 kB / 344.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=80): time 4.68e-06/0.4317, allocations: 0 / 344.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=90): time 0.01147/0.4432, allocations: 3.639 MB / 347.9 MB, free: 6.32 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.4433, allocations: 196.9 kB / 348 MB, free: 6.086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/0.4456, allocations: 1.194 MB / 349.2 MB, free: 4.883 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000206/0.4458, allocations: 45.69 kB / 349.3 MB, free: 4.832 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000674/0.4465, allocations: 0.6604 MB / 349.9 MB, free: 4.164 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004339/0.447, allocations: 319.5 kB / 350.3 MB, free: 3.848 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.4471, allocations: 28 kB / 350.3 MB, free: 3.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002402/0.4474, allocations: 370.7 kB / 350.6 MB, free: 3.449 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.4488, allocations: 0.5543 MB / 351.2 MB, free: 2.895 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00186/0.4507, allocations: 1.048 MB / 352.2 MB, free: 1.629 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.4524, allocations: 0.6821 MB / 352.9 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.4524, allocations: 7.938 kB / 352.9 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.004702/0.4571, allocations: 1.804 MB / 354.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000543/0.4577, allocations: 0.525 MB / 355.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.068e-05/0.4578, allocations: 16 kB / 355.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006276/0.464, allocations: 0.7827 MB / 356.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.4657, allocations: 299.5 kB / 356.4 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/0.4686, allocations: 2.133 MB / 358.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.4703, allocations: 107.9 kB / 358.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/0.4706, allocations: 71.98 kB / 358.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.4707, allocations: 4 kB / 358.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004399/0.4751, allocations: 1.689 MB / 360.4 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.696e-05/0.4751, allocations: 16 kB / 360.4 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005096/0.4803, allocations: 0.5999 MB / 361 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.4819, allocations: 313 kB / 361.3 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002436/0.4844, allocations: 1.969 MB / 363.2 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.4857, allocations: 104 kB / 363.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/0.4859, allocations: 67.98 kB / 363.4 MB, free: 6.043 MB / 298.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.001026/0.487, allocations: 488.6 kB / 363.9 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003563/0.4873, allocations: 134.3 kB / 364 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004259/0.4916, allocations: 1.512 MB / 365.5 MB, free: 3.891 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.887e-05/0.4917, allocations: 12 kB / 365.5 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.032e-06/0.4917, allocations: 4 kB / 365.6 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.4917, allocations: 3.984 kB / 365.6 MB, free: 3.871 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00727/0.499, allocations: 2.759 MB / 368.3 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/0.4991, allocations: 4 kB / 368.3 MB, free: 1.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009586/0.5, allocations: 151.9 kB / 368.5 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003987/0.504, allocations: 0.6503 MB / 369.1 MB, free: 232 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/0.5043, allocations: 23.98 kB / 369.1 MB, free: 208 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/0.507, allocations: 2.106 MB / 371.2 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.125e-06/0.507, allocations: 0 / 371.2 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004849/0.5119, allocations: 2.066 MB / 373.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005834/0.5125, allocations: 243.1 kB / 373.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.5128, allocations: 23.98 kB / 373.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009913/0.5138, allocations: 71.95 kB / 373.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002558/0.5141, allocations: 96.86 kB / 373.7 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.5142, allocations: 35.98 kB / 373.8 MB, free: 11.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001589/0.5158, allocations: 0.7974 MB / 374.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.05e-07/0.5159, allocations: 0 / 374.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003933/0.5198, allocations: 1.078 MB / 375.7 MB, free: 9.559 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.00236/0.5222, allocations: 0.7962 MB / 376.4 MB, free: 8.762 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.006238/0.5285, allocations: 2.231 MB / 378.7 MB, free: 6.535 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.5285, allocations: 4 kB / 378.7 MB, free: 6.531 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001997/0.5305, allocations: 0.673 MB / 379.4 MB, free: 5.863 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/0.5335, allocations: 0.5117 MB / 379.9 MB, free: 5.352 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006616/0.5401, allocations: 3.231 MB / 383.1 MB, free: 2.066 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.5414, allocations: 1.279 MB / 384.4 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.5421, allocations: 119.4 kB / 384.5 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of SimCode: time 1.776e-06/0.5421, allocations: 8 kB / 384.5 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of Templates: time 0.2986/0.8407, allocations: 42.47 MB / 427 MB, free: 113.5 MB / 346.7 MB