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.OneTank.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.OneTank,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 194.9 MB / 211.1 MB, free: 7.785 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004915/0.0004917, allocations: 12 kB / 264.1 MB, free: 2.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3111, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02579/0.3369, allocations: 14.87 MB / 323.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.3504, allocations: 5.833 MB / 329.3 MB, free: 7.898 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3516, allocations: 31.75 kB / 329.3 MB, free: 7.867 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001563/0.3532, allocations: 338.5 kB / 329.6 MB, free: 7.535 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003563/0.3568, allocations: 0.8179 MB / 330.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006305/0.3631, allocations: 1.434 MB / 331.9 MB, free: 5.277 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003109/0.3663, allocations: 1.218 MB / 333.1 MB, free: 4.055 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.3674, allocations: 437.1 kB / 333.5 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.3692, allocations: 0.6075 MB / 334.1 MB, free: 3.008 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.3706, allocations: 482.3 kB / 334.6 MB, free: 2.535 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002073/0.3708, allocations: 32 kB / 334.6 MB, free: 2.504 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/0.3741, allocations: 0.9908 MB / 335.6 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005932/0.3747, allocations: 215.3 kB / 335.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003738/0.3751, allocations: 165.3 kB / 336 MB, free: 1.133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003136/0.3782, allocations: 1.201 MB / 337.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3783, allocations: 3.938 kB / 337.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3783, allocations: 0 / 337.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.3783, allocations: 0 / 337.2 MB, free: 15.93 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003232/0.3816, allocations: 1.092 MB / 338.3 MB, free: 14.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.3816, allocations: 8.031 kB / 338.3 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002572/0.3819, allocations: 98.5 kB / 338.4 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005015/0.3824, allocations: 94.97 kB / 338.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001471/0.3839, allocations: 0.5541 MB / 339 MB, free: 13.97 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.3841, allocations: 96.39 kB / 339.1 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.3842, allocations: 47.98 kB / 339.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002039/0.3863, allocations: 0.7813 MB / 340 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/0.3863, allocations: 0 / 340 MB, free: 12.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.3864, allocations: 20 kB / 340 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/0.3866, allocations: 40.97 kB / 340 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/0.3884, allocations: 0.6752 MB / 340.7 MB, free: 12.25 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.007737/0.3962, allocations: 3.481 MB / 344.2 MB, free: 8.539 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.3979, allocations: 403.1 kB / 344.6 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003797/0.4017, allocations: 1.281 MB / 345.9 MB, free: 6.719 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001006/0.4027, allocations: 284.9 kB / 346.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of pre-optimization done (n=35): time 4.729e-06/0.4028, allocations: 0 / 346.1 MB, free: 6.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.008532/0.4113, allocations: 1.725 MB / 347.9 MB, free: 4.586 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000158/0.4115, allocations: 166.5 kB / 348 MB, free: 4.387 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.4135, allocations: 0.6956 MB / 348.7 MB, free: 3.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/0.4137, allocations: 33.7 kB / 348.8 MB, free: 3.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006482/0.4144, allocations: 422.5 kB / 349.2 MB, free: 3.219 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/0.4147, allocations: 138.1 kB / 349.3 MB, free: 3.082 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.103e-05/0.4148, allocations: 16 kB / 349.3 MB, free: 3.066 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003232/0.4151, allocations: 386.8 kB / 349.7 MB, free: 2.68 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009335/0.4161, allocations: 233.9 kB / 349.9 MB, free: 2.453 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.4174, allocations: 0.5311 MB / 350.5 MB, free: 1.789 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/0.4188, allocations: 347.1 kB / 350.8 MB, free: 1.441 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.4188, allocations: 0 / 350.8 MB, free: 1.441 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.004087/0.4229, allocations: 0.9119 MB / 351.7 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000525/0.4235, allocations: 394.8 kB / 352.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/0.4236, allocations: 8 kB / 352.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.4247, allocations: 132.7 kB / 352.2 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.4263, allocations: 147.8 kB / 352.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.4278, allocations: 0.6772 MB / 353.1 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.4295, allocations: 47.98 kB / 353.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/0.4297, allocations: 39.98 kB / 353.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4298, allocations: 4 kB / 353.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004092/0.4339, allocations: 0.8443 MB / 354 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.515e-05/0.434, allocations: 12 kB / 354 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008935/0.4349, allocations: 121.2 kB / 354.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.4363, allocations: 151.7 kB / 354.3 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.4377, allocations: 0.6615 MB / 354.9 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.4391, allocations: 40.05 kB / 355 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.4393, allocations: 36 kB / 355 MB, free: 13.02 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001124/0.4404, allocations: 397.3 kB / 355.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002919/0.4408, allocations: 75.11 kB / 355.5 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002914/0.4437, allocations: 0.6314 MB / 356.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.4438, allocations: 4 kB / 356.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.4438, allocations: 0 / 356.1 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/0.4438, allocations: 3.984 kB / 356.1 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004792/0.4486, allocations: 1.294 MB / 357.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.4487, allocations: 4 kB / 357.4 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007628/0.4495, allocations: 55.91 kB / 357.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001039/0.4506, allocations: 124.8 kB / 357.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.4507, allocations: 12 kB / 357.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.4519, allocations: 0.6577 MB / 358.2 MB, free: 9.641 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/0.452, allocations: 4.031 kB / 358.2 MB, free: 9.637 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003708/0.4557, allocations: 0.9357 MB / 359.2 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004445/0.4562, allocations: 152.2 kB / 359.3 MB, free: 8.504 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.4565, allocations: 15.95 kB / 359.3 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.4577, allocations: 35.88 kB / 359.4 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.458, allocations: 31.95 kB / 359.4 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.4581, allocations: 24.05 kB / 359.4 MB, free: 8.398 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00154/0.4597, allocations: 479.1 kB / 359.9 MB, free: 7.934 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.92e-07/0.4597, allocations: 0 / 359.9 MB, free: 7.934 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003458/0.4632, allocations: 0.5037 MB / 360.4 MB, free: 7.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1,tank.aboveLevel[1],tank.ports_m_flow_out[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00526/0.4685, allocations: 1.792 MB / 362.2 MB, free: 5.609 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003854/0.4724, allocations: 1.208 MB / 363.4 MB, free: 4.379 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.557e-06/0.4724, allocations: 4 kB / 363.4 MB, free: 4.375 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.4735, allocations: 347.1 kB / 363.8 MB, free: 4.023 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/0.4756, allocations: 255.3 kB / 364 MB, free: 3.777 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005907/0.4815, allocations: 2.55 MB / 366.6 MB, free: 1.047 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007803/0.4824, allocations: 0.9811 MB / 367.5 MB, free: 40 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.00153/0.4839, allocations: 237.6 kB / 367.8 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/0.4845, allocations: 251.3 kB / 368 MB, free: 15.56 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4845, allocations: 4 kB / 368 MB, free: 15.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07582/0.5603, allocations: 21.28 MB / 389.3 MB, free: 10.27 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003216/0.5607, allocations: 249 kB / 389.5 MB, free: 9.941 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.217/3.778, allocations: 0 / 389.5 MB, free: 9.941 MB / 330.7 MB