Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.416/1.416, allocations: 249.5 MB / 257 MB, free: 6.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 187.4 kB / 316.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.3 MB / 0.5671 GB, free: 15.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008803/0.0008802, allocations: 98.41 kB / 0.6714 GB, free: 4.906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.625e-05/2.602e-05, allocations: 3.984 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.1999, allocations: 106.3 MB / 0.8853 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7405/0.9405, allocations: 158.2 MB / 1.04 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.9408, allocations: 92.08 kB / 1.04 GB, free: 13.24 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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.04903/0.9898, allocations: 20.88 MB / 1.06 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9899, allocations: 0 / 1.06 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.853e-05/0.9899, allocations: 20 kB / 1.06 GB, free: 12.18 MB / 0.6823 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.001722/0.9917, allocations: 0.7866 MB / 1.061 GB, free: 11.39 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.9917, allocations: 8.031 kB / 1.061 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007938/0.9925, allocations: 127 kB / 1.061 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007431/0.9933, allocations: 408.6 kB / 1.062 GB, free: 10.87 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.257e-05/0.9934, allocations: 35.3 kB / 1.062 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.9935, allocations: 47.95 kB / 1.062 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009274/0.9945, allocations: 487.5 kB / 1.062 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.9957, allocations: 0.7528 MB / 1.063 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.9957, allocations: 0 / 1.063 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.886e-05/0.9958, allocations: 11.92 kB / 1.063 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.293e-05/0.9959, allocations: 41.92 kB / 1.063 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00378/0.9996, allocations: 3.548 MB / 1.066 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004751/1, allocations: 279.1 kB / 1.067 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/1, allocations: 179.5 kB / 1.067 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.558e-05/1.001, allocations: 8.359 kB / 1.067 GB, free: 6.164 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000307/1.001, allocations: 202.5 kB / 1.067 GB, free: 6.004 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 2.615e-06/1.001, allocations: 0 / 1.067 GB, free: 6.004 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0005473/1.001, allocations: 293.1 kB / 1.067 GB, free: 5.77 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/1.001, allocations: 67.11 kB / 1.067 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003188/1.002, allocations: 307.4 kB / 1.068 GB, free: 5.453 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/1.002, allocations: 33.02 kB / 1.068 GB, free: 5.418 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/1.002, allocations: 351.8 kB / 1.068 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/1.002, allocations: 126.3 kB / 1.068 GB, free: 5.016 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.377e-05/1.002, allocations: 0 / 1.068 GB, free: 5.016 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001377/1.002, allocations: 348 kB / 1.068 GB, free: 4.684 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002231/1.003, allocations: 136.8 kB / 1.069 GB, free: 4.602 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003839/1.003, allocations: 365.7 kB / 1.069 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/1.003, allocations: 172 kB / 1.069 GB, free: 4.094 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/1.003, allocations: 0 / 1.069 GB, free: 4.094 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007741/1.004, allocations: 0.5012 MB / 1.07 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009749/1.005, allocations: 2.705 MB / 1.072 GB, free: 0.8125 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/1.005, allocations: 4 kB / 1.072 GB, free: 0.8086 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.493e-05/1.005, allocations: 12 kB / 1.072 GB, free: 0.7969 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003575/1.005, allocations: 106.9 kB / 1.072 GB, free: 0.6992 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/1.005, allocations: 12 kB / 1.072 GB, free: 0.6875 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/1.006, allocations: 43.58 kB / 1.072 GB, free: 0.6445 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/1.006, allocations: 35.12 kB / 1.072 GB, free: 0.6172 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.447e-06/1.006, allocations: 1.406 kB / 1.072 GB, free: 0.6172 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006492/1.007, allocations: 437.3 kB / 1.073 GB, free: 284 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/1.007, allocations: 8.938 kB / 1.073 GB, free: 276 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/1.007, allocations: 12 kB / 1.073 GB, free: 264 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/1.007, allocations: 103.2 kB / 1.073 GB, free: 164 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/1.007, allocations: 19.94 kB / 1.073 GB, free: 144 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/1.007, allocations: 31.67 kB / 1.073 GB, free: 112 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.974e-05/1.007, allocations: 34.44 kB / 1.073 GB, free: 84 kB / 0.6823 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.0001753/1.008, allocations: 145.1 kB / 1.073 GB, free: 15.94 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004149/1.008, allocations: 289.2 kB / 1.073 GB, free: 15.71 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-05/1.008, allocations: 39.53 kB / 1.074 GB, free: 15.67 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005725/1.009, allocations: 344.9 kB / 1.074 GB, free: 15.41 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/1.009, allocations: 11.94 kB / 1.074 GB, free: 15.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/1.009, allocations: 3.953 kB / 1.074 GB, free: 15.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/1.009, allocations: 3.984 kB / 1.074 GB, free: 15.39 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/1.01, allocations: 0.9714 MB / 1.075 GB, free: 14.56 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.01, allocations: 11.92 kB / 1.075 GB, free: 14.55 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002058/1.01, allocations: 35.92 kB / 1.075 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/1.01, allocations: 7.953 kB / 1.075 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.886e-05/1.01, allocations: 11.48 kB / 1.075 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/1.01, allocations: 0 / 1.075 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/1.01, allocations: 3.984 kB / 1.075 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008092/1.011, allocations: 0.6021 MB / 1.075 GB, free: 13.99 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/1.011, allocations: 137.9 kB / 1.076 GB, free: 13.85 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.951e-05/1.011, allocations: 7.984 kB / 1.076 GB, free: 13.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/1.012, allocations: 7.25 kB / 1.076 GB, free: 13.84 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/1.012, allocations: 51.3 kB / 1.076 GB, free: 13.79 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.063e-05/1.012, allocations: 15.81 kB / 1.076 GB, free: 13.78 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001801/1.012, allocations: 192.7 kB / 1.076 GB, free: 13.63 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.7e-07/1.012, allocations: 0 / 1.076 GB, free: 13.63 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008783/1.013, allocations: 211.4 kB / 1.076 GB, free: 13.43 MB / 0.698 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.001153/1.014, allocations: 1.301 MB / 1.077 GB, free: 12.23 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001018/1.015, allocations: 0.6405 MB / 1.078 GB, free: 11.76 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.015, allocations: 0 / 1.078 GB, free: 11.76 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002194/1.015, allocations: 167.2 kB / 1.078 GB, free: 11.64 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/1.016, allocations: 88.59 kB / 1.078 GB, free: 11.58 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/1.018, allocations: 0.789 MB / 1.079 GB, free: 10.83 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/1.018, allocations: 0.9293 MB / 1.08 GB, free: 9.887 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004443/1.019, allocations: 116.5 kB / 1.08 GB, free: 9.773 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002552/1.019, allocations: 212.9 kB / 1.08 GB, free: 9.711 MB / 0.698 GB Notification: Performance of SimCode: time 3.5e-07/1.019, allocations: 4 kB / 1.08 GB, free: 9.707 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03304/1.052, allocations: 9.485 MB / 1.089 GB, free: 300 kB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005323/1.052, allocations: 152.1 kB / 1.09 GB, free: 96 kB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.304/3.356, allocations: 0 / 1.09 GB, free: 96 kB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery_fmu --startTime=0 --stopTime=432000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Storage_Examples_Battery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)