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.804/1.804, allocations: 289.9 MB / 297.4 MB, free: 6.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.001363/0.001363, allocations: 176.9 kB / 366.7 MB, free: 1.629 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.995/1.995, allocations: 205.3 MB / 0.626 GB, free: 7.133 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.0009496/0.0009491, allocations: 94.03 kB / 0.74 GB, free: 39.5 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.085e-05/2.088e-05, allocations: 4 kB / 0.8598 GB, free: 12.94 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7901/0.7901, allocations: 116.3 MB / 0.9733 GB, free: 76.08 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2568/1.047, allocations: 164.5 MB / 1.134 GB, free: 1.535 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/1.047, allocations: 96.62 kB / 1.134 GB, free: 1.441 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.05157/1.099, allocations: 20.89 MB / 1.154 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.953e-06/1.099, allocations: 0 / 1.154 GB, free: 12.5 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 4.553e-05/1.099, allocations: 19.94 kB / 1.154 GB, free: 12.48 MB / 0.7605 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.001349/1.1, allocations: 0.7863 MB / 1.155 GB, free: 11.64 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/1.1, allocations: 12.03 kB / 1.155 GB, free: 11.63 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006626/1.101, allocations: 119 kB / 1.155 GB, free: 11.51 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000638/1.102, allocations: 421.8 kB / 1.156 GB, free: 11.06 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/1.102, allocations: 28 kB / 1.156 GB, free: 11.03 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.051e-05/1.102, allocations: 44 kB / 1.156 GB, free: 10.99 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008889/1.103, allocations: 499.8 kB / 1.156 GB, free: 10.5 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/1.104, allocations: 0.7367 MB / 1.157 GB, free: 9.699 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/1.104, allocations: 7.75 kB / 1.157 GB, free: 9.695 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/1.104, allocations: 7.984 kB / 1.157 GB, free: 9.688 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.153e-05/1.104, allocations: 42 kB / 1.157 GB, free: 9.648 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/1.108, allocations: 3.557 MB / 1.161 GB, free: 5.891 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005294/1.109, allocations: 272.4 kB / 1.161 GB, free: 5.609 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003363/1.109, allocations: 177.6 kB / 1.161 GB, free: 5.434 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 4.355e-05/1.109, allocations: 8.375 kB / 1.161 GB, free: 5.426 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003382/1.11, allocations: 201 kB / 1.161 GB, free: 5.219 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 3.647e-06/1.11, allocations: 0 / 1.161 GB, free: 5.219 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0005751/1.11, allocations: 288.8 kB / 1.161 GB, free: 4.93 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/1.11, allocations: 59.16 kB / 1.162 GB, free: 4.859 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003787/1.111, allocations: 309.8 kB / 1.162 GB, free: 4.547 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/1.111, allocations: 37.7 kB / 1.162 GB, free: 4.504 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/1.111, allocations: 359.2 kB / 1.162 GB, free: 4.145 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/1.111, allocations: 118.4 kB / 1.162 GB, free: 4.027 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/1.111, allocations: 0 / 1.162 GB, free: 4.027 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001751/1.111, allocations: 354.8 kB / 1.163 GB, free: 3.672 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/1.112, allocations: 133.5 kB / 1.163 GB, free: 3.543 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004193/1.112, allocations: 367.9 kB / 1.163 GB, free: 3.086 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/1.112, allocations: 170 kB / 1.163 GB, free: 2.922 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/1.112, allocations: 0 / 1.163 GB, free: 2.922 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007716/1.113, allocations: 0.4988 MB / 1.164 GB, free: 2.414 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.00119/1.114, allocations: 2.704 MB / 1.166 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/1.114, allocations: 4 kB / 1.166 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.138e-05/1.114, allocations: 12 kB / 1.166 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/1.115, allocations: 106.9 kB / 1.167 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.369e-05/1.115, allocations: 15.94 kB / 1.167 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003366/1.115, allocations: 39.58 kB / 1.167 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/1.115, allocations: 40 kB / 1.167 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 8.937e-06/1.115, allocations: 4 kB / 1.167 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006702/1.116, allocations: 433.2 kB / 1.167 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/1.116, allocations: 4 kB / 1.167 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/1.116, allocations: 12 kB / 1.167 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003253/1.116, allocations: 103.8 kB / 1.167 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/1.116, allocations: 15.94 kB / 1.167 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002685/1.116, allocations: 36.2 kB / 1.167 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/1.117, allocations: 39.94 kB / 1.167 GB, free: 14.65 MB / 0.7761 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.0001658/1.117, allocations: 145.9 kB / 1.167 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004825/1.117, allocations: 289 kB / 1.168 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/1.117, allocations: 39.53 kB / 1.168 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006553/1.118, allocations: 348.7 kB / 1.168 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/1.118, allocations: 4 kB / 1.168 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.118, allocations: 4 kB / 1.168 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/1.118, allocations: 7.938 kB / 1.168 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/1.119, allocations: 0.9603 MB / 1.169 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/1.119, allocations: 4 kB / 1.169 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002135/1.12, allocations: 43.92 kB / 1.169 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/1.12, allocations: 4 kB / 1.169 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/1.12, allocations: 15.94 kB / 1.169 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/1.12, allocations: 0 / 1.169 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.12, allocations: 4 kB / 1.169 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000781/1.121, allocations: 0.5901 MB / 1.17 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/1.121, allocations: 144.5 kB / 1.17 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.035e-05/1.121, allocations: 4 kB / 1.17 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/1.121, allocations: 4 kB / 1.17 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/1.121, allocations: 52.3 kB / 1.17 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.124e-05/1.121, allocations: 22.09 kB / 1.17 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001838/1.121, allocations: 196.6 kB / 1.17 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.8e-07/1.121, allocations: 4.062 kB / 1.17 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0008424/1.122, allocations: 215.4 kB / 1.17 GB, free: 11.46 MB / 0.7761 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.001174/1.123, allocations: 1.3 MB / 1.172 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001024/1.124, allocations: 0.635 MB / 1.172 GB, free: 9.488 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.124, allocations: 4.312 kB / 1.172 GB, free: 9.484 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002274/1.125, allocations: 173.5 kB / 1.172 GB, free: 9.312 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005444/1.125, allocations: 77.72 kB / 1.172 GB, free: 9.238 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/1.127, allocations: 0.8001 MB / 1.173 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/1.127, allocations: 0.9236 MB / 1.174 GB, free: 7.449 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0004466/1.128, allocations: 106 kB / 1.174 GB, free: 7.348 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/1.128, allocations: 215.3 kB / 1.174 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of SimCode: time 7.22e-07/1.128, allocations: 1.875 kB / 1.174 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/1.161, allocations: 9.485 MB / 1.184 GB, free: 13.86 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001971/1.161, allocations: 136 kB / 1.184 GB, free: 13.66 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.633/3.794, allocations: 0.875 kB / 1.184 GB, free: 13.66 MB / 0.7917 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)