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.711/1.711, allocations: 285.6 MB / 293.1 MB, free: 10.19 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.001497/0.001497, allocations: 180.9 kB / 361.4 MB, free: 6.828 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.815/1.815, allocations: 205.2 MB / 0.62 GB, free: 11.67 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.000855/0.0008552, allocations: 92.69 kB / 0.733 GB, free: 44.19 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.045e-05/2.034e-05, allocations: 4 kB / 0.8518 GB, free: 2.68 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7464/0.7464, allocations: 115.3 MB / 0.9644 GB, free: 78.71 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2463/0.9928, allocations: 163.5 MB / 1.124 GB, free: 8.195 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.9932, allocations: 91.94 kB / 1.124 GB, free: 8.105 MB / 0.7292 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.05199/1.045, allocations: 20.89 MB / 1.145 GB, free: 3.195 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.132e-06/1.045, allocations: 0 / 1.145 GB, free: 3.195 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.679e-05/1.045, allocations: 19.94 kB / 1.145 GB, free: 3.176 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.001338/1.047, allocations: 0.7863 MB / 1.145 GB, free: 2.332 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/1.047, allocations: 8.031 kB / 1.145 GB, free: 2.324 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006434/1.047, allocations: 123 kB / 1.146 GB, free: 2.203 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006117/1.048, allocations: 413.8 kB / 1.146 GB, free: 1.758 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/1.048, allocations: 24 kB / 1.146 GB, free: 1.734 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.557e-05/1.048, allocations: 51.98 kB / 1.146 GB, free: 1.684 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008877/1.049, allocations: 497.4 kB / 1.146 GB, free: 1.199 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/1.05, allocations: 0.7523 MB / 1.147 GB, free: 392 kB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/1.05, allocations: 3.938 kB / 1.147 GB, free: 388 kB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.389e-05/1.05, allocations: 4 kB / 1.147 GB, free: 384 kB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.925e-05/1.05, allocations: 41.98 kB / 1.147 GB, free: 344 kB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003896/1.054, allocations: 3.543 MB / 1.151 GB, free: 12.59 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004921/1.055, allocations: 272.4 kB / 1.151 GB, free: 12.3 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003296/1.055, allocations: 182.2 kB / 1.151 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/1.055, allocations: 8.312 kB / 1.151 GB, free: 12.12 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/1.056, allocations: 205 kB / 1.151 GB, free: 11.91 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 3.677e-06/1.056, allocations: 0 / 1.151 GB, free: 11.91 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0005671/1.056, allocations: 284.9 kB / 1.152 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/1.056, allocations: 67.16 kB / 1.152 GB, free: 11.54 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/1.057, allocations: 305.8 kB / 1.152 GB, free: 11.25 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/1.057, allocations: 41.69 kB / 1.152 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.000245/1.057, allocations: 347.2 kB / 1.152 GB, free: 10.85 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/1.057, allocations: 122.4 kB / 1.152 GB, free: 10.73 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.222e-05/1.057, allocations: 5.5 kB / 1.152 GB, free: 10.73 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001521/1.057, allocations: 362.7 kB / 1.153 GB, free: 10.36 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/1.057, allocations: 133.5 kB / 1.153 GB, free: 10.23 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003729/1.058, allocations: 359.9 kB / 1.153 GB, free: 9.781 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002881/1.058, allocations: 170 kB / 1.153 GB, free: 9.613 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/1.058, allocations: 4 kB / 1.153 GB, free: 9.609 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008203/1.059, allocations: 0.4982 MB / 1.154 GB, free: 9.102 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001553/1.06, allocations: 2.698 MB / 1.157 GB, free: 6.195 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/1.06, allocations: 15.98 kB / 1.157 GB, free: 6.18 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.532e-05/1.061, allocations: 12 kB / 1.157 GB, free: 6.168 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/1.061, allocations: 103.8 kB / 1.157 GB, free: 6.066 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.227e-05/1.061, allocations: 15.27 kB / 1.157 GB, free: 6.055 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00038/1.061, allocations: 39.59 kB / 1.157 GB, free: 6.016 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/1.061, allocations: 31.98 kB / 1.157 GB, free: 5.984 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/1.061, allocations: 4 kB / 1.157 GB, free: 5.98 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007102/1.062, allocations: 437.6 kB / 1.157 GB, free: 5.551 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/1.062, allocations: 8.938 kB / 1.157 GB, free: 5.543 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/1.062, allocations: 12 kB / 1.157 GB, free: 5.531 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/1.063, allocations: 100.5 kB / 1.157 GB, free: 5.434 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/1.063, allocations: 19.92 kB / 1.157 GB, free: 5.414 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/1.063, allocations: 31.69 kB / 1.157 GB, free: 5.383 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/1.063, allocations: 31.98 kB / 1.157 GB, free: 5.352 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.0002012/1.063, allocations: 154.1 kB / 1.158 GB, free: 5.191 MB / 0.7605 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004874/1.064, allocations: 292.9 kB / 1.158 GB, free: 4.898 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.81e-05/1.064, allocations: 39.53 kB / 1.158 GB, free: 4.859 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000656/1.064, allocations: 338.7 kB / 1.158 GB, free: 4.523 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/1.064, allocations: 5.938 kB / 1.158 GB, free: 4.52 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.064, allocations: 0 / 1.158 GB, free: 4.52 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/1.064, allocations: 7.938 kB / 1.158 GB, free: 4.512 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/1.066, allocations: 0.9719 MB / 1.159 GB, free: 3.473 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/1.066, allocations: 0 / 1.159 GB, free: 3.473 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/1.066, allocations: 49.97 kB / 1.159 GB, free: 3.426 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/1.066, allocations: 0 / 1.159 GB, free: 3.426 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/1.066, allocations: 7.953 kB / 1.159 GB, free: 3.418 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/1.066, allocations: 8.062 kB / 1.159 GB, free: 3.41 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.066, allocations: 0 / 1.159 GB, free: 3.41 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008015/1.067, allocations: 0.5939 MB / 1.16 GB, free: 2.781 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/1.067, allocations: 144.6 kB / 1.16 GB, free: 2.621 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.511e-05/1.067, allocations: 10.31 kB / 1.16 GB, free: 2.613 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/1.068, allocations: 7.984 kB / 1.16 GB, free: 2.605 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/1.068, allocations: 44.38 kB / 1.16 GB, free: 2.562 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/1.068, allocations: 19.98 kB / 1.16 GB, free: 2.543 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0001915/1.068, allocations: 192.6 kB / 1.16 GB, free: 2.359 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.8e-07/1.068, allocations: 4 kB / 1.16 GB, free: 2.355 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0008884/1.069, allocations: 211.4 kB / 1.16 GB, free: 2.148 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.001251/1.07, allocations: 1.294 MB / 1.162 GB, free: 0.8125 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001035/1.071, allocations: 0.6459 MB / 1.162 GB, free: 180 kB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.071, allocations: 0 / 1.162 GB, free: 180 kB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.000236/1.071, allocations: 166.7 kB / 1.162 GB, free: 16 kB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006299/1.072, allocations: 80.23 kB / 1.163 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/1.074, allocations: 0.8038 MB / 1.163 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006047/1.075, allocations: 0.9236 MB / 1.164 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0005066/1.075, allocations: 123.8 kB / 1.164 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/1.076, allocations: 211.4 kB / 1.165 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of SimCode: time 1.593e-06/1.076, allocations: 0 / 1.165 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0377/1.113, allocations: 9.497 MB / 1.174 GB, free: 4.543 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003198/1.114, allocations: 146.1 kB / 1.174 GB, free: 4.352 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.38/3.494, allocations: 4.406 kB / 1.174 GB, free: 4.352 MB / 0.7761 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)