Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.664/1.664, allocations: 288.2 MB / 303.2 MB, free: 8.023 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.001011/0.001011, allocations: 187.1 kB / 371.8 MB, free: 10.12 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.861/1.861, allocations: 205.4 MB / 0.6305 GB, free: 9.898 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.0009523/0.0009522, allocations: 93.66 kB / 0.7439 GB, free: 5.828 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004203/0.0004203, allocations: 15.33 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2838, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9631/1.247, allocations: 164.3 MB / 1.14 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/1.247, allocations: 90.52 kB / 1.14 GB, free: 13.71 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1-maint.8.0.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.04823/1.296, allocations: 21.19 MB / 1.161 GB, free: 16.54 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.906e-06/1.296, allocations: 0 / 1.161 GB, free: 16.54 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.371e-05/1.296, allocations: 12 kB / 1.161 GB, free: 16.53 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.001343/1.297, allocations: 0.826 MB / 1.161 GB, free: 15.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/1.297, allocations: 12.02 kB / 1.162 GB, free: 15.68 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001456/1.297, allocations: 129.6 kB / 1.162 GB, free: 15.59 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006002/1.298, allocations: 123 kB / 1.162 GB, free: 15.47 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006869/1.299, allocations: 410.3 kB / 1.162 GB, free: 15.09 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/1.299, allocations: 66.38 kB / 1.162 GB, free: 15.05 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/1.299, allocations: 84 kB / 1.162 GB, free: 14.99 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/1.3, allocations: 0.861 MB / 1.163 GB, free: 14.31 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/1.3, allocations: 7.938 kB / 1.163 GB, free: 14.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/1.3, allocations: 29.38 kB / 1.163 GB, free: 14.29 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.475e-05/1.3, allocations: 37.98 kB / 1.163 GB, free: 14.25 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008963/1.301, allocations: 0.5676 MB / 1.164 GB, free: 13.88 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/1.305, allocations: 3.711 MB / 1.167 GB, free: 10.44 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/1.306, allocations: 301.2 kB / 1.168 GB, free: 10.22 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.638e-05/1.306, allocations: 12.03 kB / 1.168 GB, free: 10.21 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003829/1.306, allocations: 212.2 kB / 1.168 GB, free: 10.05 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 4.379e-06/1.306, allocations: 4 kB / 1.168 GB, free: 10.04 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.0008515/1.307, allocations: 452.2 kB / 1.168 GB, free: 9.711 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/1.307, allocations: 63.36 kB / 1.168 GB, free: 9.637 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004207/1.308, allocations: 380.1 kB / 1.169 GB, free: 9.336 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.905e-05/1.308, allocations: 51.75 kB / 1.169 GB, free: 9.293 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/1.308, allocations: 342.7 kB / 1.169 GB, free: 9.02 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/1.308, allocations: 124.3 kB / 1.169 GB, free: 8.918 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.349e-05/1.308, allocations: 14.12 kB / 1.169 GB, free: 8.914 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001721/1.308, allocations: 362.6 kB / 1.17 GB, free: 8.57 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/1.309, allocations: 160 kB / 1.17 GB, free: 8.465 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004286/1.309, allocations: 392.5 kB / 1.17 GB, free: 8.059 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003094/1.31, allocations: 195.7 kB / 1.17 GB, free: 7.934 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/1.31, allocations: 0 / 1.17 GB, free: 7.934 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008876/1.31, allocations: 0.592 MB / 1.171 GB, free: 7.473 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001192/1.312, allocations: 2.709 MB / 1.174 GB, free: 4.605 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/1.312, allocations: 8 kB / 1.174 GB, free: 4.598 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.352e-05/1.312, allocations: 20 kB / 1.174 GB, free: 4.578 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/1.312, allocations: 110.8 kB / 1.174 GB, free: 4.477 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.842e-05/1.312, allocations: 8 kB / 1.174 GB, free: 4.469 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/1.312, allocations: 65.55 kB / 1.174 GB, free: 4.414 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-05/1.313, allocations: 30.25 kB / 1.174 GB, free: 4.391 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/1.313, allocations: 9.812 kB / 1.174 GB, free: 4.383 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007744/1.313, allocations: 0.5317 MB / 1.174 GB, free: 4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/1.313, allocations: 12.16 kB / 1.174 GB, free: 3.988 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/1.313, allocations: 12 kB / 1.174 GB, free: 3.977 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/1.314, allocations: 94.89 kB / 1.174 GB, free: 3.887 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.938e-05/1.314, allocations: 15.98 kB / 1.174 GB, free: 3.871 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/1.314, allocations: 57.41 kB / 1.174 GB, free: 3.828 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.981e-05/1.314, allocations: 35.75 kB / 1.174 GB, free: 3.797 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.0004798/1.315, allocations: 319.1 kB / 1.175 GB, free: 3.527 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.251e-05/1.315, allocations: 47.44 kB / 1.175 GB, free: 3.48 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006972/1.315, allocations: 393.1 kB / 1.175 GB, free: 3.211 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/1.315, allocations: 8 kB / 1.175 GB, free: 3.203 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/1.315, allocations: 0 / 1.175 GB, free: 3.203 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/1.315, allocations: 7.969 kB / 1.175 GB, free: 3.195 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/1.317, allocations: 1.025 MB / 1.176 GB, free: 2.367 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.317, allocations: 4 kB / 1.176 GB, free: 2.363 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/1.317, allocations: 47.59 kB / 1.176 GB, free: 2.32 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/1.317, allocations: 0 / 1.176 GB, free: 2.32 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/1.317, allocations: 15.62 kB / 1.176 GB, free: 2.309 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.317, allocations: 0 / 1.176 GB, free: 2.309 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.317, allocations: 4 kB / 1.176 GB, free: 2.305 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008892/1.318, allocations: 0.611 MB / 1.177 GB, free: 1.836 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00019/1.318, allocations: 153 kB / 1.177 GB, free: 1.684 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.74e-05/1.318, allocations: 15.25 kB / 1.177 GB, free: 1.676 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/1.319, allocations: 18.75 kB / 1.177 GB, free: 1.664 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/1.319, allocations: 43.62 kB / 1.177 GB, free: 1.629 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/1.319, allocations: 22.92 kB / 1.177 GB, free: 1.609 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002773/1.319, allocations: 258 kB / 1.177 GB, free: 1.406 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.51e-07/1.319, allocations: 0 / 1.177 GB, free: 1.406 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008927/1.32, allocations: 238.7 kB / 1.178 GB, free: 1.203 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.001299/1.321, allocations: 1.191 MB / 1.179 GB, free: 156 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001213/1.323, allocations: 0.7253 MB / 1.179 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/1.323, allocations: 0 / 1.179 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0003033/1.323, allocations: 174.8 kB / 1.18 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005422/1.323, allocations: 96.45 kB / 1.18 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006319/1.33, allocations: 7.406 MB / 1.187 GB, free: 8.309 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005588/1.33, allocations: 0.9246 MB / 1.188 GB, free: 7.367 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0005229/1.331, allocations: 120.7 kB / 1.188 GB, free: 7.246 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/1.331, allocations: 214.8 kB / 1.188 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of SimCode: time 1.523e-06/1.331, allocations: 0 / 1.188 GB, free: 7.18 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02684/1.358, allocations: 10.08 MB / 1.198 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002055/1.358, allocations: 182.2 kB / 1.198 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.52/3.878, allocations: 4.062 kB / 1.198 GB, free: 13.05 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)