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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.167/2.167, allocations: 194.8 MB / 211.1 MB, free: 7.578 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004898/0.0004901, allocations: 12 kB / 264.1 MB, free: 2.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3427, allocations: 44.5 MB / 308.6 MB, free: 12.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02996/0.3728, allocations: 15.12 MB / 323.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01279/0.3856, allocations: 5.452 MB / 329.1 MB, free: 8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.3867, allocations: 31.75 kB / 329.2 MB, free: 7.969 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.3881, allocations: 290.5 kB / 329.5 MB, free: 7.684 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003612/0.3918, allocations: 0.8412 MB / 330.3 MB, free: 6.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005645/0.3974, allocations: 1.236 MB / 331.5 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003077/0.4005, allocations: 1.187 MB / 332.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009767/0.4016, allocations: 409.3 kB / 333.1 MB, free: 4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001409/0.403, allocations: 0.5335 MB / 333.6 MB, free: 3.465 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001034/0.4041, allocations: 474.3 kB / 334.1 MB, free: 3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.4042, allocations: 36 kB / 334.1 MB, free: 2.965 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003112/0.4074, allocations: 1.01 MB / 335.2 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004551/0.4079, allocations: 207.5 kB / 335.4 MB, free: 1.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000322/0.4082, allocations: 161.3 kB / 335.5 MB, free: 1.586 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002775/0.411, allocations: 1.213 MB / 336.7 MB, free: 380 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.411, allocations: 4 kB / 336.7 MB, free: 376 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.411, allocations: 0 / 336.7 MB, free: 376 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.411, allocations: 0 / 336.7 MB, free: 376 kB / 266.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.003018/0.4141, allocations: 1.032 MB / 337.8 MB, free: 15.29 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.4141, allocations: 8.031 kB / 337.8 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001925/0.4143, allocations: 90.52 kB / 337.9 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003835/0.4147, allocations: 87.05 kB / 337.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.416, allocations: 0.5287 MB / 338.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.906e-05/0.4161, allocations: 40.94 kB / 338.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.4163, allocations: 55.97 kB / 338.6 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.4182, allocations: 0.7255 MB / 339.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/0.4182, allocations: 8 kB / 339.3 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.4183, allocations: 19.98 kB / 339.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.4185, allocations: 44.97 kB / 339.4 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.4205, allocations: 0.6909 MB / 340.1 MB, free: 12.91 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.007201/0.4277, allocations: 3.046 MB / 343.1 MB, free: 9.641 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.429, allocations: 480.5 kB / 343.6 MB, free: 9.164 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004252/0.4295, allocations: 349.3 kB / 343.9 MB, free: 8.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.284e-05/0.4295, allocations: 47 kB / 344 MB, free: 8.695 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 3.978e-06/0.4295, allocations: 0 / 344 MB, free: 8.695 MB / 282.7 MB Notification: Performance of matching and sorting (n=58): time 0.009296/0.4389, allocations: 2.312 MB / 346.3 MB, free: 6.309 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.635e-05/0.439, allocations: 85.66 kB / 346.4 MB, free: 6.207 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001193/0.4402, allocations: 0.6094 MB / 347 MB, free: 5.586 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.4403, allocations: 45.7 kB / 347 MB, free: 5.535 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003672/0.4407, allocations: 336.4 kB / 347.3 MB, free: 5.203 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002737/0.441, allocations: 201 kB / 347.5 MB, free: 5.004 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-05/0.4411, allocations: 16 kB / 347.6 MB, free: 4.988 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002508/0.4413, allocations: 386.7 kB / 347.9 MB, free: 4.602 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008786/0.4422, allocations: 293.8 kB / 348.2 MB, free: 4.316 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.4433, allocations: 473.8 kB / 348.7 MB, free: 3.785 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009738/0.4443, allocations: 355 kB / 349 MB, free: 3.441 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.4443, allocations: 3.938 kB / 349 MB, free: 3.438 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002709/0.447, allocations: 0.9539 MB / 350 MB, free: 2.473 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002115/0.4473, allocations: 229.1 kB / 350.2 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.4473, allocations: 4 kB / 350.2 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004659/0.4519, allocations: 420.3 kB / 350.6 MB, free: 1.758 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/0.4532, allocations: 155.7 kB / 350.8 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.4547, allocations: 0.8254 MB / 351.6 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.4558, allocations: 47.97 kB / 351.6 MB, free: 0.707 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.4559, allocations: 28 kB / 351.7 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.4559, allocations: 4.062 kB / 351.7 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002395/0.4583, allocations: 0.8206 MB / 352.5 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.4584, allocations: 8.094 kB / 352.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004327/0.4627, allocations: 284.5 kB / 352.8 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.4641, allocations: 155.8 kB / 352.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00108/0.4652, allocations: 0.7162 MB / 353.7 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009269/0.4661, allocations: 43.92 kB / 353.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.4662, allocations: 31.98 kB / 353.7 MB, free: 14.59 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.0007431/0.467, allocations: 322.6 kB / 354 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002143/0.4672, allocations: 83.05 kB / 354.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002693/0.4699, allocations: 0.8503 MB / 355 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.47, allocations: 11.95 kB / 355 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.47, allocations: 3.938 kB / 355 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.769e-06/0.47, allocations: 96 / 355 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004711/0.4747, allocations: 1.723 MB / 356.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.4748, allocations: 0 / 356.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009831/0.4758, allocations: 111.9 kB / 356.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002673/0.4785, allocations: 360.6 kB / 357.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.4786, allocations: 12 kB / 357.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.48, allocations: 0.8177 MB / 358 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.48, allocations: 4.031 kB / 358 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004742/0.4847, allocations: 1.279 MB / 359.3 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005078/0.4853, allocations: 168.1 kB / 359.4 MB, free: 8.703 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002731/0.4856, allocations: 12 kB / 359.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.4869, allocations: 39.97 kB / 359.5 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002597/0.4872, allocations: 52.48 kB / 359.5 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/0.4874, allocations: 23.98 kB / 359.6 MB, free: 8.578 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001241/0.4886, allocations: 435 kB / 360 MB, free: 8.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.4886, allocations: 0 / 360 MB, free: 8.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00331/0.492, allocations: 0.5271 MB / 360.5 MB, free: 7.633 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.007193/0.4992, allocations: 2.156 MB / 362.7 MB, free: 5.441 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00564/0.5049, allocations: 1.169 MB / 363.9 MB, free: 4.273 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/0.505, allocations: 0 / 363.9 MB, free: 4.273 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.5068, allocations: 391 kB / 364.2 MB, free: 3.891 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/0.5106, allocations: 323.2 kB / 364.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00847/0.5191, allocations: 2.557 MB / 367.1 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001137/0.5203, allocations: 0.9871 MB / 368.1 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002354/0.5227, allocations: 278.1 kB / 368.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006258/0.5233, allocations: 251.3 kB / 368.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5234, allocations: 0 / 368.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07946/0.6028, allocations: 25.38 MB / 394 MB, free: 5.977 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002628/0.6032, allocations: 215.7 kB / 394.2 MB, free: 5.73 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.429/4.033, allocations: 0 / 394.2 MB, free: 5.73 MB / 330.7 MB