Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.68/2.68, allocations: 287.3 MB / 302.3 MB, free: 8.395 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.001456/0.001455, allocations: 182.6 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.4 MB / 0.6295 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001197/0.001196, allocations: 92.33 kB / 0.7428 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005483/0.0005484, allocations: 10.81 kB / 0.8657 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.227, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9814/1.208, allocations: 164.1 MB / 1.139 GB, free: 14.26 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003621/1.209, allocations: 92.48 kB / 1.139 GB, free: 14.25 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.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.0758/1.285, allocations: 21.2 MB / 1.159 GB, free: 18.01 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.455e-06/1.285, allocations: 0 / 1.159 GB, free: 18.01 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.613e-05/1.285, allocations: 16 kB / 1.159 GB, free: 17.99 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.001839/1.287, allocations: 0.8251 MB / 1.16 GB, free: 17.16 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/1.287, allocations: 16.02 kB / 1.16 GB, free: 17.14 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002011/1.287, allocations: 119.5 kB / 1.16 GB, free: 17.06 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009248/1.288, allocations: 127 kB / 1.16 GB, free: 16.94 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008185/1.289, allocations: 413.2 kB / 1.161 GB, free: 16.55 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.442e-05/1.289, allocations: 70.14 kB / 1.161 GB, free: 16.51 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/1.289, allocations: 76.75 kB / 1.161 GB, free: 16.46 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/1.291, allocations: 0.8563 MB / 1.162 GB, free: 15.78 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/1.291, allocations: 3.938 kB / 1.162 GB, free: 15.77 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-05/1.291, allocations: 32.44 kB / 1.162 GB, free: 15.77 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.227e-05/1.291, allocations: 41.48 kB / 1.162 GB, free: 15.73 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/1.292, allocations: 0.5692 MB / 1.162 GB, free: 15.34 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006069/1.298, allocations: 3.708 MB / 1.166 GB, free: 11.91 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009004/1.299, allocations: 295.8 kB / 1.166 GB, free: 11.69 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.832e-05/1.3, allocations: 7.75 kB / 1.166 GB, free: 11.69 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005433/1.3, allocations: 219.8 kB / 1.167 GB, free: 11.52 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.547e-06/1.3, allocations: 0 / 1.167 GB, free: 11.52 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.001336/1.301, allocations: 450.9 kB / 1.167 GB, free: 11.18 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/1.302, allocations: 59.34 kB / 1.167 GB, free: 11.11 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006565/1.302, allocations: 382.6 kB / 1.167 GB, free: 10.81 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.72e-05/1.302, allocations: 52 kB / 1.167 GB, free: 10.77 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000332/1.303, allocations: 341.5 kB / 1.168 GB, free: 10.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/1.303, allocations: 126.3 kB / 1.168 GB, free: 10.39 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/1.303, allocations: 21.62 kB / 1.168 GB, free: 10.38 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001692/1.303, allocations: 359.1 kB / 1.168 GB, free: 10.04 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004573/1.304, allocations: 154.7 kB / 1.168 GB, free: 9.941 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006853/1.304, allocations: 395.6 kB / 1.169 GB, free: 9.527 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005658/1.305, allocations: 186.7 kB / 1.169 GB, free: 9.41 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/1.305, allocations: 4 kB / 1.169 GB, free: 9.406 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001513/1.306, allocations: 0.5911 MB / 1.17 GB, free: 8.953 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001182/1.308, allocations: 2.717 MB / 1.172 GB, free: 6.074 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.097e-05/1.308, allocations: 4 kB / 1.172 GB, free: 6.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.722e-05/1.308, allocations: 12 kB / 1.172 GB, free: 6.059 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007723/1.308, allocations: 107.1 kB / 1.172 GB, free: 5.961 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.632e-05/1.308, allocations: 19.88 kB / 1.172 GB, free: 5.941 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/1.309, allocations: 66.11 kB / 1.172 GB, free: 5.887 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.093e-05/1.309, allocations: 35.31 kB / 1.172 GB, free: 5.859 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/1.309, allocations: 4 kB / 1.172 GB, free: 5.855 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00134/1.311, allocations: 0.5305 MB / 1.173 GB, free: 5.477 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/1.311, allocations: 8 kB / 1.173 GB, free: 5.469 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/1.311, allocations: 12 kB / 1.173 GB, free: 5.457 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006107/1.311, allocations: 99.39 kB / 1.173 GB, free: 5.363 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.529e-05/1.311, allocations: 15.98 kB / 1.173 GB, free: 5.348 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005498/1.312, allocations: 69.28 kB / 1.173 GB, free: 5.293 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.158e-05/1.312, allocations: 31.36 kB / 1.173 GB, free: 5.266 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.0005979/1.313, allocations: 318.8 kB / 1.173 GB, free: 4.996 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/1.313, allocations: 47.44 kB / 1.173 GB, free: 4.949 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/1.314, allocations: 388 kB / 1.174 GB, free: 4.684 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/1.314, allocations: 4 kB / 1.174 GB, free: 4.68 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/1.314, allocations: 0 / 1.174 GB, free: 4.68 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/1.314, allocations: 7.938 kB / 1.174 GB, free: 4.672 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/1.316, allocations: 1.03 MB / 1.175 GB, free: 3.84 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.316, allocations: 0 / 1.175 GB, free: 3.84 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/1.316, allocations: 43.84 kB / 1.175 GB, free: 3.801 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.347e-05/1.316, allocations: 7.953 kB / 1.175 GB, free: 3.793 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/1.317, allocations: 7.438 kB / 1.175 GB, free: 3.789 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.704e-06/1.317, allocations: 7.984 kB / 1.175 GB, free: 3.781 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.317, allocations: 0 / 1.175 GB, free: 3.781 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/1.318, allocations: 0.6188 MB / 1.176 GB, free: 3.305 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002581/1.318, allocations: 158.2 kB / 1.176 GB, free: 3.148 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.52e-05/1.318, allocations: 17.7 kB / 1.176 GB, free: 3.137 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/1.319, allocations: 14.92 kB / 1.176 GB, free: 3.129 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/1.319, allocations: 42.75 kB / 1.176 GB, free: 3.094 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-05/1.319, allocations: 15.05 kB / 1.176 GB, free: 3.082 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004362/1.319, allocations: 266.8 kB / 1.176 GB, free: 2.871 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.01e-07/1.319, allocations: 0 / 1.176 GB, free: 2.871 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001246/1.321, allocations: 239.6 kB / 1.176 GB, free: 2.668 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.001791/1.322, allocations: 1.183 MB / 1.177 GB, free: 1.625 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001903/1.324, allocations: 0.7226 MB / 1.178 GB, free: 1.09 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/1.324, allocations: 0 / 1.178 GB, free: 1.09 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004543/1.325, allocations: 171.3 kB / 1.178 GB, free: 0.9609 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008669/1.326, allocations: 98.48 kB / 1.178 GB, free: 0.8867 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008331/1.334, allocations: 7.411 MB / 1.186 GB, free: 9.777 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006675/1.335, allocations: 0.929 MB / 1.187 GB, free: 8.832 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0007466/1.336, allocations: 108.7 kB / 1.187 GB, free: 8.723 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004093/1.336, allocations: 212.9 kB / 1.187 GB, free: 8.66 MB / 0.7136 GB Notification: Performance of SimCode: time 1.062e-06/1.336, allocations: 3.938 kB / 1.187 GB, free: 8.656 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04096/1.377, allocations: 10.09 MB / 1.197 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003145/1.377, allocations: 179 kB / 1.197 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.006/4.383, allocations: 0 / 1.197 GB, free: 14.51 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)