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: 107.7 kB / 15.05 MB, free: 5.934 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.001221/0.001221, allocations: 179.2 kB / 15.94 MB, free: 5.898 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.039/2.039, allocations: 194.6 MB / 211.3 MB, free: 11.08 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.39/2.39, allocations: 236.1 MB / 492.6 MB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006414/0.0006415, allocations: 8 kB / 0.587 GB, free: 2.094 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6827/0.6834, allocations: 98.71 MB / 0.6834 GB, free: 16.73 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2632/0.9467, allocations: 150.8 MB / 0.8307 GB, free: 7.414 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003573/0.9472, allocations: 95.94 kB / 0.8307 GB, free: 7.32 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.08691/1.034, allocations: 21.08 MB / 0.8513 GB, free: 2.027 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.574e-06/1.034, allocations: 7.875 kB / 0.8513 GB, free: 2.02 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 5.874e-05/1.034, allocations: 12 kB / 0.8513 GB, free: 2.008 MB / 0.6667 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.002387/1.037, allocations: 0.8221 MB / 0.8521 GB, free: 1.129 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/1.037, allocations: 12.03 kB / 0.8522 GB, free: 1.117 MB / 0.6667 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003435/1.037, allocations: 114.6 kB / 0.8523 GB, free: 0.9961 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/1.038, allocations: 130.9 kB / 0.8524 GB, free: 0.8672 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/1.039, allocations: 417.8 kB / 0.8528 GB, free: 428 kB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.254e-05/1.039, allocations: 62 kB / 0.8529 GB, free: 364 kB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001815/1.04, allocations: 76 kB / 0.8529 GB, free: 288 kB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/1.042, allocations: 0.8418 MB / 0.8537 GB, free: 15.38 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/1.042, allocations: 7.953 kB / 0.8538 GB, free: 15.37 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/1.042, allocations: 35.98 kB / 0.8538 GB, free: 15.33 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.463e-05/1.042, allocations: 37.3 kB / 0.8538 GB, free: 15.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/1.044, allocations: 0.5749 MB / 0.8544 GB, free: 14.72 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006695/1.051, allocations: 3.681 MB / 0.858 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009669/1.052, allocations: 301 kB / 0.8583 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.883e-05/1.052, allocations: 8.375 kB / 0.8583 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006009/1.053, allocations: 213.4 kB / 0.8585 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 3.777e-06/1.053, allocations: 0 / 0.8585 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.001401/1.054, allocations: 449.5 kB / 0.8589 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/1.054, allocations: 63.39 kB / 0.859 GB, free: 9.77 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007153/1.055, allocations: 380.4 kB / 0.8593 GB, free: 9.391 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001291/1.055, allocations: 45.7 kB / 0.8594 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003791/1.055, allocations: 343.5 kB / 0.8597 GB, free: 9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000189/1.056, allocations: 126.4 kB / 0.8598 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.446e-05/1.056, allocations: 16 kB / 0.8598 GB, free: 8.859 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001949/1.056, allocations: 358.8 kB / 0.8602 GB, free: 8.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005108/1.056, allocations: 157.9 kB / 0.8603 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006994/1.057, allocations: 391.6 kB / 0.8607 GB, free: 7.867 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/1.058, allocations: 198.1 kB / 0.8609 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/1.058, allocations: 0 / 0.8609 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001637/1.059, allocations: 0.6033 MB / 0.8615 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001243/1.061, allocations: 2.697 MB / 0.8641 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.866e-05/1.061, allocations: 12 kB / 0.8641 GB, free: 4.145 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.694e-05/1.061, allocations: 12 kB / 0.8641 GB, free: 4.133 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009053/1.062, allocations: 107.8 kB / 0.8642 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.452e-05/1.062, allocations: 15.88 kB / 0.8643 GB, free: 4.012 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006784/1.062, allocations: 63.52 kB / 0.8643 GB, free: 3.949 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.08e-05/1.063, allocations: 35.94 kB / 0.8644 GB, free: 3.914 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/1.063, allocations: 5.25 kB / 0.8644 GB, free: 3.91 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001456/1.064, allocations: 0.5327 MB / 0.8649 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/1.064, allocations: 8 kB / 0.8649 GB, free: 3.367 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/1.064, allocations: 12 kB / 0.8649 GB, free: 3.355 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006622/1.065, allocations: 99.75 kB / 0.865 GB, free: 3.258 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/1.065, allocations: 15.94 kB / 0.865 GB, free: 3.242 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005956/1.065, allocations: 59.52 kB / 0.8651 GB, free: 3.184 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.489e-05/1.066, allocations: 28 kB / 0.8651 GB, free: 3.156 MB / 0.6823 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,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.enableFire,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,hold.active,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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.0005932/1.066, allocations: 325.6 kB / 0.8654 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/1.066, allocations: 51.39 kB / 0.8654 GB, free: 2.777 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/1.067, allocations: 385.2 kB / 0.8658 GB, free: 2.391 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/1.067, allocations: 11.98 kB / 0.8658 GB, free: 2.379 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/1.067, allocations: 0 / 0.8658 GB, free: 2.379 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/1.068, allocations: 3.984 kB / 0.8658 GB, free: 2.375 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/1.07, allocations: 1.033 MB / 0.8668 GB, free: 1.285 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/1.07, allocations: 0 / 0.8668 GB, free: 1.285 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004197/1.07, allocations: 39.91 kB / 0.8669 GB, free: 1.246 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/1.07, allocations: 4 kB / 0.8669 GB, free: 1.242 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-05/1.071, allocations: 11.98 kB / 0.8669 GB, free: 1.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/1.071, allocations: 4 kB / 0.8669 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.071, allocations: 3.984 kB / 0.8669 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/1.072, allocations: 0.6192 MB / 0.8675 GB, free: 0.5859 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003377/1.072, allocations: 148.5 kB / 0.8676 GB, free: 432 kB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.685e-05/1.073, allocations: 4 kB / 0.8677 GB, free: 428 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/1.073, allocations: 23.92 kB / 0.8677 GB, free: 404 kB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/1.073, allocations: 44.38 kB / 0.8677 GB, free: 360 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.968e-05/1.073, allocations: 15.98 kB / 0.8677 GB, free: 344 kB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.000531/1.074, allocations: 259.2 kB / 0.868 GB, free: 88 kB / 0.6823 GB Notification: Performance of sort global known variables: time 7.72e-07/1.074, allocations: 0 / 0.868 GB, free: 88 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001311/1.075, allocations: 231.7 kB / 0.8682 GB, free: 15.86 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,off.newActive,off.oldActive,off.active,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.enableFire,hold.newActive,hold.oldActive,hold.active,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,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 (50): * Single equations (assignments): 46 * 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.001999/1.077, allocations: 1.202 MB / 0.8694 GB, free: 14.63 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002047/1.079, allocations: 0.7187 MB / 0.8701 GB, free: 13.92 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.079, allocations: 0 / 0.8701 GB, free: 13.92 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005096/1.08, allocations: 178.6 kB / 0.8702 GB, free: 13.75 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008642/1.081, allocations: 89.44 kB / 0.8703 GB, free: 13.66 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009055/1.09, allocations: 7.401 MB / 0.8776 GB, free: 6.078 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007307/1.09, allocations: 0.9193 MB / 0.8785 GB, free: 5.133 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0007658/1.091, allocations: 116.7 kB / 0.8786 GB, free: 5.016 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004873/1.092, allocations: 219.3 kB / 0.8788 GB, free: 4.801 MB / 0.698 GB Notification: Performance of SimCode: time 1.252e-06/1.092, allocations: 0 / 0.8788 GB, free: 4.801 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04685/1.139, allocations: 10.04 MB / 0.8886 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003292/1.139, allocations: 183.2 kB / 0.8888 GB, free: 10.68 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.851/3.99, allocations: 0 / 0.8888 GB, free: 10.68 MB / 0.7136 GB