Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.764/1.764, allocations: 292.6 MB / 307.5 MB, free: 5.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 187.8 kB / 377.1 MB, free: 1.512 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.66/1.66, allocations: 205.4 MB / 0.6366 GB, free: 8.598 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 97.34 kB / 0.7509 GB, free: 63.3 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004204/0.0004205, allocations: 8 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3295, allocations: 116.3 MB / 0.9884 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9669/1.296, allocations: 165.2 MB / 1.15 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000367/1.297, allocations: 94.81 kB / 1.15 GB, free: 14.68 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 8.1.4-maint.8.1.x/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.04861/1.346, allocations: 21.2 MB / 1.171 GB, free: 11.96 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.346e-06/1.346, allocations: 4 kB / 1.171 GB, free: 11.96 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.537e-05/1.346, allocations: 16.66 kB / 1.171 GB, free: 11.94 MB / 0.7448 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.001511/1.347, allocations: 0.8272 MB / 1.171 GB, free: 11.06 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/1.347, allocations: 12.02 kB / 1.171 GB, free: 11.05 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/1.347, allocations: 124.3 kB / 1.172 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006531/1.348, allocations: 131 kB / 1.172 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006326/1.349, allocations: 413.8 kB / 1.172 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.976e-05/1.349, allocations: 62 kB / 1.172 GB, free: 10.28 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/1.349, allocations: 81.02 kB / 1.172 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/1.35, allocations: 0.8597 MB / 1.173 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/1.35, allocations: 3.938 kB / 1.173 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.89e-05/1.35, allocations: 39.98 kB / 1.173 GB, free: 9.238 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.125e-05/1.35, allocations: 41.94 kB / 1.173 GB, free: 9.195 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009288/1.351, allocations: 0.562 MB / 1.174 GB, free: 8.633 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004059/1.355, allocations: 3.702 MB / 1.177 GB, free: 4.715 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005852/1.356, allocations: 305 kB / 1.178 GB, free: 4.402 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/1.356, allocations: 12.36 kB / 1.178 GB, free: 4.391 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003561/1.356, allocations: 217.4 kB / 1.178 GB, free: 4.168 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=46): time 2.685e-06/1.357, allocations: 0 / 1.178 GB, free: 4.168 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46): time 0.0008127/1.357, allocations: 445.4 kB / 1.178 GB, free: 3.727 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/1.357, allocations: 63.3 kB / 1.178 GB, free: 3.652 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004487/1.358, allocations: 392.4 kB / 1.179 GB, free: 3.262 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.996e-05/1.358, allocations: 45.7 kB / 1.179 GB, free: 3.211 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/1.358, allocations: 343.4 kB / 1.179 GB, free: 2.871 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/1.358, allocations: 130.3 kB / 1.179 GB, free: 2.742 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/1.358, allocations: 16 kB / 1.179 GB, free: 2.727 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001813/1.359, allocations: 358.8 kB / 1.179 GB, free: 2.367 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/1.359, allocations: 153.9 kB / 1.18 GB, free: 2.215 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/1.359, allocations: 403.5 kB / 1.18 GB, free: 1.727 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/1.36, allocations: 190.1 kB / 1.18 GB, free: 1.543 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/1.36, allocations: 0 / 1.18 GB, free: 1.543 MB / 0.7448 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0009067/1.361, allocations: 0.5964 MB / 1.181 GB, free: 0.9375 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001247/1.362, allocations: 2.708 MB / 1.183 GB, free: 14.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/1.362, allocations: 8 kB / 1.183 GB, free: 14.01 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/1.362, allocations: 12 kB / 1.183 GB, free: 14 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/1.362, allocations: 103.8 kB / 1.184 GB, free: 13.9 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.5e-05/1.362, allocations: 13.03 kB / 1.184 GB, free: 13.89 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003921/1.363, allocations: 67.42 kB / 1.184 GB, free: 13.82 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.808e-05/1.363, allocations: 35.98 kB / 1.184 GB, free: 13.79 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 8.275e-06/1.363, allocations: 8 kB / 1.184 GB, free: 13.78 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008443/1.364, allocations: 0.5246 MB / 1.184 GB, free: 13.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/1.364, allocations: 4 kB / 1.184 GB, free: 13.25 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/1.364, allocations: 13.81 kB / 1.184 GB, free: 13.23 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003136/1.364, allocations: 107.8 kB / 1.184 GB, free: 13.13 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/1.364, allocations: 15.94 kB / 1.184 GB, free: 13.11 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/1.364, allocations: 59.89 kB / 1.184 GB, free: 13.05 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.984e-05/1.364, allocations: 35.95 kB / 1.184 GB, free: 13.02 MB / 0.7605 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.0003953/1.365, allocations: 316.8 kB / 1.185 GB, free: 12.7 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.011e-05/1.365, allocations: 51.44 kB / 1.185 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006928/1.366, allocations: 391.3 kB / 1.185 GB, free: 12.27 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/1.366, allocations: 4 kB / 1.185 GB, free: 12.26 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/1.366, allocations: 4 kB / 1.185 GB, free: 12.26 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/1.366, allocations: 3.984 kB / 1.185 GB, free: 12.25 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/1.367, allocations: 1.03 MB / 1.186 GB, free: 11.17 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/1.367, allocations: 0 / 1.186 GB, free: 11.17 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/1.367, allocations: 43.92 kB / 1.186 GB, free: 11.12 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/1.367, allocations: 0 / 1.186 GB, free: 11.12 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/1.367, allocations: 15.94 kB / 1.186 GB, free: 11.11 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/1.367, allocations: 0 / 1.186 GB, free: 11.11 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.367, allocations: 0 / 1.186 GB, free: 11.11 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008458/1.368, allocations: 0.6191 MB / 1.187 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001754/1.368, allocations: 154.4 kB / 1.187 GB, free: 10.3 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.766e-05/1.368, allocations: 15.94 kB / 1.187 GB, free: 10.29 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/1.369, allocations: 15.94 kB / 1.187 GB, free: 10.27 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/1.369, allocations: 48.36 kB / 1.187 GB, free: 10.23 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/1.369, allocations: 16 kB / 1.187 GB, free: 10.21 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0002774/1.369, allocations: 263.1 kB / 1.187 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.71e-07/1.369, allocations: 4.062 kB / 1.187 GB, free: 9.949 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008123/1.37, allocations: 235.7 kB / 1.188 GB, free: 9.719 MB / 0.7605 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.001221/1.371, allocations: 1.182 MB / 1.189 GB, free: 8.512 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.00118/1.372, allocations: 0.7227 MB / 1.189 GB, free: 7.793 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/1.372, allocations: 8.062 kB / 1.189 GB, free: 7.785 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002523/1.373, allocations: 174.4 kB / 1.19 GB, free: 7.613 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/1.373, allocations: 86.81 kB / 1.19 GB, free: 7.531 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005976/1.379, allocations: 7.414 MB / 1.197 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005783/1.38, allocations: 0.9193 MB / 1.198 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0004882/1.38, allocations: 118 kB / 1.198 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/1.381, allocations: 215.3 kB / 1.198 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of SimCode: time 1.422e-06/1.381, allocations: 4 kB / 1.198 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/1.406, allocations: 10.06 MB / 1.208 GB, free: 4.82 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002569/1.406, allocations: 177.3 kB / 1.208 GB, free: 4.578 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/4.029, allocations: 4 kB / 1.208 GB, free: 4.574 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)