Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.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) 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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_6_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.2/package.mo): time 0.01088/0.01088, allocations: 113.1 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001158/0.001158, allocations: 179.4 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.2/2.2, allocations: 194.6 MB / 211.3 MB, free: 11.05 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.384/2.384, allocations: 236.1 MB / 492.6 MB, free: 11.32 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004713/0.0004713, allocations: 12 kB / 0.587 GB, free: 2.09 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7296/0.7301, allocations: 98.71 MB / 0.6834 GB, free: 16.88 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.00727/0.7375, allocations: 3.626 MB / 0.687 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005048/0.7426, allocations: 1.889 MB / 0.6888 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006652/0.7433, allocations: 18.09 kB / 0.6888 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.000329/0.7436, allocations: 84.72 kB / 0.6889 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0008303/0.7445, allocations: 154.6 kB / 0.6891 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.7461, allocations: 332 kB / 0.6894 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001506/0.7477, allocations: 0.5368 MB / 0.6899 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001445/0.7491, allocations: 0.7835 MB / 0.6907 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005041/0.7497, allocations: 235.2 kB / 0.6909 GB, free: 11.99 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005983/0.7503, allocations: 260.3 kB / 0.6911 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001353/0.7504, allocations: 30.19 kB / 0.6912 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004077/0.7509, allocations: 89.56 kB / 0.6912 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.7511, allocations: 161.3 kB / 0.6914 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.7513, allocations: 135.5 kB / 0.6915 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.7526, allocations: 0.6341 MB / 0.6921 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.7526, allocations: 0 / 0.6921 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.725e-06/0.7526, allocations: 4 kB / 0.6922 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.277e-05/0.7527, allocations: 0 / 0.6922 GB, free: 11.53 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.001941/0.7546, allocations: 0.8005 MB / 0.6929 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.7547, allocations: 8.781 kB / 0.6929 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00023/0.7549, allocations: 130.5 kB / 0.6931 GB, free: 10.83 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000804/0.7557, allocations: 116.4 kB / 0.6932 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008824/0.7566, allocations: 423.9 kB / 0.6936 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.764e-05/0.7567, allocations: 59.38 kB / 0.6936 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.7569, allocations: 75.39 kB / 0.6937 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002184/0.7591, allocations: 0.8568 MB / 0.6945 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.509e-05/0.7592, allocations: 1.625 kB / 0.6945 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.858e-05/0.7593, allocations: 41.05 kB / 0.6946 GB, free: 9.914 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.7594, allocations: 50.28 kB / 0.6946 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.7611, allocations: 0.5672 MB / 0.6952 GB, free: 9.703 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005585/0.7667, allocations: 3.684 MB / 0.6988 GB, free: 6.68 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008896/0.7677, allocations: 307.1 kB / 0.6991 GB, free: 6.527 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 4.751e-05/0.7677, allocations: 9.859 kB / 0.6991 GB, free: 6.523 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005457/0.7683, allocations: 210.3 kB / 0.6993 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=47): time 3.436e-06/0.7683, allocations: 5.375 kB / 0.6993 GB, free: 6.379 MB / 0.5261 GB Notification: Performance of matching and sorting (n=47): time 0.001323/0.7696, allocations: 462.8 kB / 0.6997 GB, free: 6.145 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.7697, allocations: 58.5 kB / 0.6998 GB, free: 6.082 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007075/0.7704, allocations: 415.8 kB / 0.7002 GB, free: 5.805 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.7706, allocations: 46.3 kB / 0.7002 GB, free: 5.762 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.7708, allocations: 342.6 kB / 0.7006 GB, free: 5.461 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.771, allocations: 132.9 kB / 0.7007 GB, free: 5.348 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.964e-05/0.771, allocations: 14.69 kB / 0.7007 GB, free: 5.336 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.7712, allocations: 363.5 kB / 0.701 GB, free: 4.984 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004604/0.7716, allocations: 153.2 kB / 0.7012 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005767/0.7722, allocations: 389.5 kB / 0.7016 GB, free: 4.535 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005135/0.7728, allocations: 194.4 kB / 0.7018 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.7728, allocations: 2.375 kB / 0.7018 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001524/0.7743, allocations: 0.5856 MB / 0.7023 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005658/0.7749, allocations: 2.7 MB / 0.705 GB, free: 1.254 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.7749, allocations: 6.25 kB / 0.705 GB, free: 1.254 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.716e-05/0.775, allocations: 16.31 kB / 0.705 GB, free: 1.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007288/0.7757, allocations: 102.9 kB / 0.7051 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.511e-05/0.7758, allocations: 14.06 kB / 0.7051 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006387/0.7764, allocations: 89.25 kB / 0.7052 GB, free: 1.152 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.821e-05/0.7765, allocations: 32.47 kB / 0.7052 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.7765, allocations: 4.094 kB / 0.7052 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001305/0.7779, allocations: 0.5201 MB / 0.7057 GB, free: 0.8906 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.7779, allocations: 10.75 kB / 0.7057 GB, free: 0.8867 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.7779, allocations: 12.44 kB / 0.7057 GB, free: 0.8867 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006418/0.7786, allocations: 107.1 kB / 0.7058 GB, free: 0.8516 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.941e-05/0.7786, allocations: 17.2 kB / 0.7059 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.7792, allocations: 70.27 kB / 0.7059 GB, free: 0.7969 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.445e-05/0.7793, allocations: 29.09 kB / 0.706 GB, free: 0.793 MB / 0.5261 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.0005495/0.7798, allocations: 320.9 kB / 0.7063 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.78, allocations: 53.69 kB / 0.7063 GB, free: 500 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/0.781, allocations: 397.6 kB / 0.7067 GB, free: 272 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.781, allocations: 5.344 kB / 0.7067 GB, free: 272 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.7811, allocations: 5.281 kB / 0.7067 GB, free: 268 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.7811, allocations: 3.984 kB / 0.7067 GB, free: 264 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002402/0.7835, allocations: 1.066 MB / 0.7077 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.7835, allocations: 0.9062 kB / 0.7078 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.784, allocations: 47.75 kB / 0.7078 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/0.784, allocations: 3.375 kB / 0.7078 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.99e-05/0.784, allocations: 11.19 kB / 0.7078 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/0.7841, allocations: 6.922 kB / 0.7078 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7841, allocations: 0 / 0.7078 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.7856, allocations: 0.6646 MB / 0.7085 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002704/0.7859, allocations: 152.7 kB / 0.7086 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.501e-05/0.786, allocations: 15.33 kB / 0.7086 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003647/0.7863, allocations: 14.34 kB / 0.7086 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.7865, allocations: 56.38 kB / 0.7087 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.7866, allocations: 11.38 kB / 0.7087 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004315/0.787, allocations: 256.9 kB / 0.7089 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.41e-07/0.787, allocations: 0 / 0.7089 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001333/0.7884, allocations: 272.8 kB / 0.7092 GB, free: 14.55 MB / 0.5417 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.002004/0.7904, allocations: 1.371 MB / 0.7105 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002036/0.7925, allocations: 0.7128 MB / 0.7112 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.7925, allocations: 0.9375 kB / 0.7112 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.793, allocations: 188.3 kB / 0.7114 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009026/0.7939, allocations: 102.6 kB / 0.7115 GB, free: 13 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008636/0.8026, allocations: 7.401 MB / 0.7187 GB, free: 6.484 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006848/0.8033, allocations: 0.9311 MB / 0.7197 GB, free: 5.66 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007674/0.8041, allocations: 111.9 kB / 0.7198 GB, free: 5.605 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.8046, allocations: 212.8 kB / 0.72 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of SimCode: time 1.042e-06/0.8046, allocations: 0 / 0.72 GB, free: 5.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04085/0.8455, allocations: 10 MB / 0.7297 GB, free: 13.94 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002669/0.8458, allocations: 189.5 kB / 0.7299 GB, free: 13.7 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.974/3.82, allocations: 0 / 0.7299 GB, free: 13.7 MB / 0.5574 GB