Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01432/0.01432, allocations: 88.41 kB / 15.04 MB, free: 6.062 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.00197/0.00197, allocations: 170.8 kB / 15.92 MB, free: 6.008 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.291/2.291, allocations: 205.5 MB / 222.2 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.796/2.796, allocations: 252.8 MB / 0.511 GB, free: 8.324 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007323/0.0007324, allocations: 13.64 kB / 0.6243 GB, free: 28.48 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3063, allocations: 106.2 MB / 0.7281 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.00948/0.3159, allocations: 3.668 MB / 0.7316 GB, free: 6.473 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.006365/0.3223, allocations: 1.907 MB / 0.7335 GB, free: 4.555 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006717/0.3231, allocations: 11.94 kB / 0.7335 GB, free: 4.543 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0004267/0.3235, allocations: 87.3 kB / 0.7336 GB, free: 4.457 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0009899/0.3245, allocations: 159.5 kB / 0.7338 GB, free: 4.301 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.3264, allocations: 327.4 kB / 0.7341 GB, free: 3.98 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001732/0.3282, allocations: 0.5467 MB / 0.7346 GB, free: 3.434 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001858/0.3301, allocations: 0.7916 MB / 0.7354 GB, free: 2.598 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000543/0.3306, allocations: 235.1 kB / 0.7356 GB, free: 2.367 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007009/0.3313, allocations: 270.7 kB / 0.7359 GB, free: 2.102 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.3315, allocations: 28 kB / 0.7359 GB, free: 2.074 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004504/0.332, allocations: 87.89 kB / 0.736 GB, free: 1.988 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002907/0.3323, allocations: 155.5 kB / 0.7361 GB, free: 1.836 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002476/0.3325, allocations: 133.4 kB / 0.7362 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.001501/0.3341, allocations: 0.6509 MB / 0.7369 GB, free: 1.047 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3341, allocations: 4 kB / 0.7369 GB, free: 1.043 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.485e-06/0.3341, allocations: 0 / 0.7369 GB, free: 1.043 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.935e-05/0.3341, allocations: 0 / 0.7369 GB, free: 1.043 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.002591/0.3368, allocations: 0.8086 MB / 0.7377 GB, free: 192 kB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.448e-05/0.3368, allocations: 8.031 kB / 0.7377 GB, free: 184 kB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003133/0.3372, allocations: 130.6 kB / 0.7378 GB, free: 44 kB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.3383, allocations: 111.1 kB / 0.7379 GB, free: 15.93 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.3395, allocations: 423.7 kB / 0.7383 GB, free: 15.48 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.3397, allocations: 62 kB / 0.7384 GB, free: 15.42 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.3399, allocations: 79.98 kB / 0.7384 GB, free: 15.34 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002853/0.3428, allocations: 0.873 MB / 0.7393 GB, free: 14.41 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.341e-05/0.3429, allocations: 4 kB / 0.7393 GB, free: 14.4 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.343, allocations: 31.98 kB / 0.7393 GB, free: 14.37 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/0.3432, allocations: 45.98 kB / 0.7394 GB, free: 14.32 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.3455, allocations: 0.5696 MB / 0.7399 GB, free: 13.76 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008389/0.3539, allocations: 3.712 MB / 0.7436 GB, free: 9.828 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.3552, allocations: 308.3 kB / 0.7439 GB, free: 9.52 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 6.238e-05/0.3553, allocations: 12.36 kB / 0.7439 GB, free: 9.508 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007856/0.3561, allocations: 217.3 kB / 0.7441 GB, free: 9.281 MB / 0.573 GB Notification: Performance of pre-optimization done (n=47): time 4.278e-06/0.3561, allocations: 0 / 0.7441 GB, free: 9.281 MB / 0.573 GB Notification: Performance of matching and sorting (n=47): time 0.001865/0.358, allocations: 458.6 kB / 0.7445 GB, free: 8.828 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.786e-05/0.3581, allocations: 55.84 kB / 0.7446 GB, free: 8.762 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009221/0.3591, allocations: 421.1 kB / 0.745 GB, free: 8.344 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001391/0.3592, allocations: 53.69 kB / 0.745 GB, free: 8.285 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004521/0.3597, allocations: 339.5 kB / 0.7453 GB, free: 7.949 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.3599, allocations: 130.3 kB / 0.7455 GB, free: 7.82 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.302e-05/0.36, allocations: 16 kB / 0.7455 GB, free: 7.805 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002439/0.3603, allocations: 358.7 kB / 0.7458 GB, free: 7.445 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007043/0.361, allocations: 153.9 kB / 0.746 GB, free: 7.293 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.362, allocations: 395.6 kB / 0.7463 GB, free: 6.805 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007826/0.3629, allocations: 186.1 kB / 0.7465 GB, free: 6.629 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/0.3629, allocations: 0 / 0.7465 GB, free: 6.629 MB / 0.573 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002054/0.3649, allocations: 0.5885 MB / 0.7471 GB, free: 6.031 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001302/0.3663, allocations: 2.7 MB / 0.7497 GB, free: 3.121 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.465e-05/0.3664, allocations: 8 kB / 0.7497 GB, free: 3.113 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.388e-05/0.3664, allocations: 19.97 kB / 0.7498 GB, free: 3.094 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007852/0.3672, allocations: 103.7 kB / 0.7499 GB, free: 2.992 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.816e-05/0.3673, allocations: 15.92 kB / 0.7499 GB, free: 2.977 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000601/0.3679, allocations: 79.22 kB / 0.7499 GB, free: 2.898 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-05/0.368, allocations: 43.98 kB / 0.75 GB, free: 2.855 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.368, allocations: 4 kB / 0.75 GB, free: 2.852 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001429/0.3694, allocations: 0.5205 MB / 0.7505 GB, free: 2.328 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.3695, allocations: 8 kB / 0.7505 GB, free: 2.32 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3695, allocations: 8 kB / 0.7505 GB, free: 2.312 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.3702, allocations: 103.8 kB / 0.7506 GB, free: 2.211 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.417e-05/0.3702, allocations: 15.94 kB / 0.7506 GB, free: 2.195 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005581/0.3708, allocations: 75.86 kB / 0.7507 GB, free: 2.121 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.38e-05/0.3709, allocations: 35.94 kB / 0.7507 GB, free: 2.086 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005585/0.3715, allocations: 324.8 kB / 0.751 GB, free: 1.758 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3716, allocations: 43.44 kB / 0.7511 GB, free: 1.715 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.3728, allocations: 397.5 kB / 0.7515 GB, free: 1.324 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.3728, allocations: 4 kB / 0.7515 GB, free: 1.32 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3728, allocations: 4 kB / 0.7515 GB, free: 1.316 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.3728, allocations: 0 / 0.7515 GB, free: 1.316 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002569/0.3754, allocations: 1.071 MB / 0.7525 GB, free: 184 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.3755, allocations: 3.938 kB / 0.7525 GB, free: 180 kB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004628/0.376, allocations: 51.89 kB / 0.7526 GB, free: 128 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-05/0.376, allocations: 4.062 kB / 0.7526 GB, free: 124 kB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.376, allocations: 12 kB / 0.7526 GB, free: 112 kB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.42e-05/0.3761, allocations: 8 kB / 0.7526 GB, free: 104 kB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.3761, allocations: 3.938 kB / 0.7526 GB, free: 100 kB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.3777, allocations: 0.6642 MB / 0.7533 GB, free: 15.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003527/0.3782, allocations: 156.4 kB / 0.7534 GB, free: 15.23 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.3783, allocations: 15.95 kB / 0.7534 GB, free: 15.21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003486/0.3786, allocations: 15.98 kB / 0.7534 GB, free: 15.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.3788, allocations: 48.36 kB / 0.7535 GB, free: 15.15 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-05/0.3789, allocations: 16 kB / 0.7535 GB, free: 15.13 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.000446/0.3794, allocations: 251.2 kB / 0.7537 GB, free: 14.89 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3794, allocations: 0 / 0.7537 GB, free: 14.89 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001326/0.3807, allocations: 274.8 kB / 0.754 GB, free: 14.62 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002072/0.3828, allocations: 1.372 MB / 0.7553 GB, free: 13.21 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002024/0.3849, allocations: 0.7179 MB / 0.756 GB, free: 12.49 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.385, allocations: 0 / 0.756 GB, free: 12.49 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0005728/0.3855, allocations: 186.4 kB / 0.7562 GB, free: 12.31 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009309/0.3865, allocations: 92.81 kB / 0.7563 GB, free: 12.22 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00874/0.3953, allocations: 7.419 MB / 0.7635 GB, free: 4.613 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007789/0.3961, allocations: 0.9344 MB / 0.7645 GB, free: 3.652 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0007605/0.3969, allocations: 108.7 kB / 0.7646 GB, free: 3.543 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004675/0.3973, allocations: 215.3 kB / 0.7648 GB, free: 3.332 MB / 0.5886 GB Notification: Performance of SimCode: time 1.312e-06/0.3974, allocations: 4 kB / 0.7648 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04247/0.4398, allocations: 10.03 MB / 0.7746 GB, free: 9.457 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003478/0.4403, allocations: 182.1 kB / 0.7747 GB, free: 9.219 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.006/3.446, allocations: 3.938 kB / 0.7747 GB, free: 9.215 MB / 0.6042 GB