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.481/2.481, allocations: 284.9 MB / 292.4 MB, free: 10.56 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.001517/0.001517, allocations: 188.8 kB / 360.6 MB, free: 7.281 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.08/2.08, allocations: 205.2 MB / 0.6191 GB, free: 12.23 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.001153/0.001152, allocations: 97.89 kB / 0.7321 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.257e-05/2.27e-05, allocations: 4 kB / 0.8509 GB, free: 3.328 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8024/0.8024, allocations: 115.3 MB / 0.9634 GB, free: 78.48 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3247/1.127, allocations: 163.3 MB / 1.123 GB, free: 9.121 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004858/1.128, allocations: 89.34 kB / 1.123 GB, free: 9.035 MB / 0.7292 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.09292/1.221, allocations: 20.89 MB / 1.143 GB, free: 4.109 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.205e-06/1.221, allocations: 5.906 kB / 1.143 GB, free: 4.105 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.018e-05/1.221, allocations: 19.94 kB / 1.143 GB, free: 4.086 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.002435/1.223, allocations: 0.7863 MB / 1.144 GB, free: 3.242 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/1.223, allocations: 8.031 kB / 1.144 GB, free: 3.234 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001259/1.225, allocations: 123 kB / 1.144 GB, free: 3.113 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/1.226, allocations: 409.8 kB / 1.145 GB, free: 2.676 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.769e-05/1.226, allocations: 33.81 kB / 1.145 GB, free: 2.645 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/1.226, allocations: 51.95 kB / 1.145 GB, free: 2.594 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001721/1.228, allocations: 491.9 kB / 1.145 GB, free: 2.113 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002135/1.23, allocations: 0.7484 MB / 1.146 GB, free: 1.305 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/1.23, allocations: 3.938 kB / 1.146 GB, free: 1.301 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.521e-05/1.23, allocations: 4 kB / 1.146 GB, free: 1.297 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.669e-05/1.23, allocations: 37.98 kB / 1.146 GB, free: 1.262 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006903/1.237, allocations: 3.558 MB / 1.15 GB, free: 13.5 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008705/1.238, allocations: 268.5 kB / 1.15 GB, free: 13.22 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006044/1.239, allocations: 192.3 kB / 1.15 GB, free: 13.04 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/1.239, allocations: 4.375 kB / 1.15 GB, free: 13.03 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005713/1.24, allocations: 197 kB / 1.15 GB, free: 12.83 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 4.408e-06/1.24, allocations: 0 / 1.15 GB, free: 12.83 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0009744/1.241, allocations: 284.9 kB / 1.15 GB, free: 12.54 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/1.241, allocations: 67.11 kB / 1.15 GB, free: 12.46 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005958/1.241, allocations: 309.4 kB / 1.151 GB, free: 12.16 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001174/1.241, allocations: 41.69 kB / 1.151 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004101/1.242, allocations: 355.2 kB / 1.151 GB, free: 11.76 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/1.242, allocations: 122.4 kB / 1.151 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/1.242, allocations: 0 / 1.151 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0002023/1.242, allocations: 354.8 kB / 1.152 GB, free: 11.29 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00042/1.243, allocations: 141.5 kB / 1.152 GB, free: 11.14 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006259/1.243, allocations: 356 kB / 1.152 GB, free: 10.7 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005452/1.244, allocations: 166 kB / 1.152 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/1.244, allocations: 4 kB / 1.152 GB, free: 10.54 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001474/1.246, allocations: 0.4989 MB / 1.153 GB, free: 10.03 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.00145/1.247, allocations: 2.704 MB / 1.155 GB, free: 7.113 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.663e-05/1.247, allocations: 8 kB / 1.155 GB, free: 7.105 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.24e-05/1.247, allocations: 12 kB / 1.155 GB, free: 7.094 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008126/1.248, allocations: 103.8 kB / 1.155 GB, free: 6.992 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.365e-05/1.248, allocations: 11.94 kB / 1.156 GB, free: 6.98 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006385/1.249, allocations: 43.58 kB / 1.156 GB, free: 6.938 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/1.249, allocations: 35.98 kB / 1.156 GB, free: 6.902 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/1.249, allocations: 10.34 kB / 1.156 GB, free: 6.895 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001259/1.25, allocations: 433.2 kB / 1.156 GB, free: 6.469 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/1.25, allocations: 8 kB / 1.156 GB, free: 6.461 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/1.25, allocations: 12 kB / 1.156 GB, free: 6.449 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006572/1.251, allocations: 95.77 kB / 1.156 GB, free: 6.355 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/1.251, allocations: 12 kB / 1.156 GB, free: 6.344 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005646/1.251, allocations: 36.14 kB / 1.156 GB, free: 6.309 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/1.252, allocations: 39.98 kB / 1.156 GB, free: 6.27 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 () * 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.0002796/1.252, allocations: 149.7 kB / 1.156 GB, free: 6.113 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008292/1.253, allocations: 289 kB / 1.157 GB, free: 5.824 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.774e-05/1.253, allocations: 47.45 kB / 1.157 GB, free: 5.777 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/1.254, allocations: 337.7 kB / 1.157 GB, free: 5.441 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/1.254, allocations: 4 kB / 1.157 GB, free: 5.438 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/1.254, allocations: 11.27 kB / 1.157 GB, free: 5.43 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/1.254, allocations: 3.984 kB / 1.157 GB, free: 5.426 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/1.257, allocations: 0.968 MB / 1.158 GB, free: 4.391 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/1.257, allocations: 0 / 1.158 GB, free: 4.391 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004127/1.257, allocations: 47.97 kB / 1.158 GB, free: 4.344 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.39e-05/1.257, allocations: 7.953 kB / 1.158 GB, free: 4.336 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.726e-05/1.257, allocations: 4 kB / 1.158 GB, free: 4.332 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.566e-06/1.257, allocations: 5.688 kB / 1.158 GB, free: 4.328 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/1.257, allocations: 0 / 1.158 GB, free: 4.328 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/1.259, allocations: 0.5939 MB / 1.159 GB, free: 3.699 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000306/1.259, allocations: 148.6 kB / 1.159 GB, free: 3.535 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.52e-05/1.259, allocations: 0 / 1.159 GB, free: 3.535 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003466/1.259, allocations: 7.984 kB / 1.159 GB, free: 3.527 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/1.26, allocations: 44.38 kB / 1.159 GB, free: 3.484 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.624e-05/1.26, allocations: 19.98 kB / 1.159 GB, free: 3.465 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000326/1.26, allocations: 192.6 kB / 1.159 GB, free: 3.277 MB / 0.7605 GB Notification: Performance of sort global known variables: time 5.21e-07/1.26, allocations: 0 / 1.159 GB, free: 3.277 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001371/1.261, allocations: 219.5 kB / 1.159 GB, free: 3.062 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * 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.002023/1.263, allocations: 1.294 MB / 1.16 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.00186/1.265, allocations: 0.6424 MB / 1.161 GB, free: 1.09 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.265, allocations: 4.75 kB / 1.161 GB, free: 1.086 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0004799/1.266, allocations: 161.6 kB / 1.161 GB, free: 0.9297 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009408/1.267, allocations: 80.2 kB / 1.161 GB, free: 0.8555 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/1.27, allocations: 0.8035 MB / 1.162 GB, free: 4 kB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000853/1.271, allocations: 0.9314 MB / 1.163 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0009491/1.272, allocations: 121 kB / 1.163 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005478/1.273, allocations: 212 kB / 1.163 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of SimCode: time 1.282e-06/1.273, allocations: 0 / 1.163 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05984/1.332, allocations: 9.482 MB / 1.173 GB, free: 5.457 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000328/1.333, allocations: 147.6 kB / 1.173 GB, free: 5.258 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.002/4.334, allocations: 0 / 1.173 GB, free: 5.258 MB / 0.7761 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)