Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.295/2.295, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001664/0.001664, allocations: 183 kB / 325.5 MB, free: 2.918 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.388/2.388, allocations: 205.4 MB / 0.5764 GB, free: 21.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001237/0.001237, allocations: 102 kB / 0.6809 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005461/0.0005461, allocations: 13.25 kB / 0.795 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2312, allocations: 106.3 MB / 0.8988 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2701/0.5014, allocations: 157.8 MB / 1.053 GB, free: 3.984 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003917/0.5018, allocations: 99.94 kB / 1.053 GB, free: 3.887 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.693/1.195, allocations: 21.19 MB / 1.074 GB, free: 153.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.555e-06/1.195, allocations: 0 / 1.074 GB, free: 153.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.756e-05/1.195, allocations: 19.66 kB / 1.074 GB, free: 153.1 MB / 0.698 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.002181/1.197, allocations: 0.8218 MB / 1.075 GB, free: 152.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/1.197, allocations: 8.594 kB / 1.075 GB, free: 152.4 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003081/1.198, allocations: 128.2 kB / 1.075 GB, free: 152.4 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/1.199, allocations: 124 kB / 1.075 GB, free: 152.3 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009674/1.2, allocations: 412.3 kB / 1.075 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.715e-05/1.2, allocations: 62.09 kB / 1.075 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/1.2, allocations: 77.94 kB / 1.075 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/1.202, allocations: 0.8673 MB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.453e-05/1.202, allocations: 5.156 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/1.203, allocations: 38.31 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.593e-05/1.203, allocations: 40.61 kB / 1.076 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/1.204, allocations: 0.5662 MB / 1.077 GB, free: 151.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005888/1.21, allocations: 3.713 MB / 1.08 GB, free: 148.7 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009221/1.211, allocations: 297 kB / 1.081 GB, free: 148.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.561e-05/1.211, allocations: 9.812 kB / 1.081 GB, free: 148.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005442/1.212, allocations: 219.2 kB / 1.081 GB, free: 148.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.937e-06/1.212, allocations: 4 kB / 1.081 GB, free: 148.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.001414/1.213, allocations: 448.8 kB / 1.081 GB, free: 148.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/1.214, allocations: 61.53 kB / 1.081 GB, free: 148.3 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006759/1.214, allocations: 388.9 kB / 1.082 GB, free: 148 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001076/1.214, allocations: 48.91 kB / 1.082 GB, free: 148 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/1.215, allocations: 340.1 kB / 1.082 GB, free: 147.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/1.215, allocations: 122 kB / 1.082 GB, free: 147.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.815e-05/1.215, allocations: 15.12 kB / 1.082 GB, free: 147.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001153/1.215, allocations: 361.6 kB / 1.083 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004698/1.215, allocations: 162.6 kB / 1.083 GB, free: 147.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000606/1.216, allocations: 390.6 kB / 1.083 GB, free: 146.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005477/1.217, allocations: 188.5 kB / 1.083 GB, free: 146.7 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/1.217, allocations: 2.219 kB / 1.083 GB, free: 146.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001577/1.218, allocations: 0.5972 MB / 1.084 GB, free: 146.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006739/1.219, allocations: 2.702 MB / 1.087 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/1.219, allocations: 8.281 kB / 1.087 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.275e-05/1.219, allocations: 14.84 kB / 1.087 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007902/1.22, allocations: 99.86 kB / 1.087 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-05/1.22, allocations: 19.3 kB / 1.087 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007233/1.221, allocations: 60.5 kB / 1.087 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/1.221, allocations: 37.67 kB / 1.087 GB, free: 143.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/1.221, allocations: 4.062 kB / 1.087 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001502/1.222, allocations: 0.5229 MB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/1.222, allocations: 6.938 kB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.312e-05/1.222, allocations: 16.38 kB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007195/1.223, allocations: 111 kB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.949e-05/1.223, allocations: 18.92 kB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006463/1.224, allocations: 55.08 kB / 1.087 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/1.224, allocations: 33.7 kB / 1.087 GB, free: 143 MB / 0.698 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.0007345/1.225, allocations: 326.6 kB / 1.088 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/1.225, allocations: 45.75 kB / 1.088 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/1.226, allocations: 390.2 kB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/1.226, allocations: 4.688 kB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/1.226, allocations: 8.484 kB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/1.226, allocations: 0.5938 kB / 1.088 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002632/1.229, allocations: 1.035 MB / 1.089 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/1.229, allocations: 0 / 1.089 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004372/1.229, allocations: 49.39 kB / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/1.229, allocations: 2.219 kB / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/1.23, allocations: 7.031 kB / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.067e-06/1.23, allocations: 2 kB / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/1.23, allocations: 0 / 1.089 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/1.231, allocations: 0.6107 MB / 1.09 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/1.231, allocations: 158.6 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.644e-05/1.231, allocations: 19.64 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003206/1.232, allocations: 7.656 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/1.232, allocations: 48.95 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.645e-05/1.232, allocations: 14.53 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004417/1.232, allocations: 263.5 kB / 1.09 GB, free: 141 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.51e-07/1.232, allocations: 0 / 1.09 GB, free: 141 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001318/1.234, allocations: 236.2 kB / 1.091 GB, free: 140.9 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.001602/1.235, allocations: 1.186 MB / 1.092 GB, free: 140 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001789/1.237, allocations: 0.7182 MB / 1.092 GB, free: 139.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.237, allocations: 0 / 1.092 GB, free: 139.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000429/1.238, allocations: 179 kB / 1.093 GB, free: 139.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008707/1.239, allocations: 98.61 kB / 1.093 GB, free: 139.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007051/1.246, allocations: 7.433 MB / 1.1 GB, free: 133.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/1.246, allocations: 0.9203 MB / 1.101 GB, free: 132.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0007291/1.247, allocations: 118.2 kB / 1.101 GB, free: 132.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003892/1.247, allocations: 209.1 kB / 1.101 GB, free: 132 MB / 0.698 GB Notification: Performance of SimCode: time 1.503e-06/1.247, allocations: 3.75 kB / 1.101 GB, free: 132 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04276/1.29, allocations: 10.06 MB / 1.111 GB, free: 122.4 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002849/1.29, allocations: 191.6 kB / 1.111 GB, free: 122.1 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.773/4.063, allocations: 0 / 1.111 GB, free: 122.1 MB / 0.698 GB