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.678/1.678, allocations: 289.7 MB / 302.2 MB, free: 2.082 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.001403/0.001404, allocations: 176.5 kB / 371.6 MB, free: 3.395 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.669/1.669, allocations: 205.1 MB / 0.6309 GB, free: 11.74 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.001034/0.001035, allocations: 98.45 kB / 0.745 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.92e-05/3.922e-05, allocations: 4 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2937, allocations: 116.3 MB / 0.9799 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9767/1.27, allocations: 165.1 MB / 1.141 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/1.271, allocations: 90.66 kB / 1.141 GB, free: 26.08 MB / 0.7448 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.05472/1.326, allocations: 21.04 MB / 1.162 GB, free: 15.34 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.134e-06/1.326, allocations: 4 kB / 1.162 GB, free: 15.33 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.718e-05/1.326, allocations: 19.94 kB / 1.162 GB, free: 15.31 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.00129/1.327, allocations: 0.7905 MB / 1.163 GB, free: 14.6 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/1.327, allocations: 13.25 kB / 1.163 GB, free: 14.59 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/1.327, allocations: 115.9 kB / 1.163 GB, free: 14.53 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006308/1.328, allocations: 129.2 kB / 1.163 GB, free: 14.42 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000592/1.328, allocations: 414.1 kB / 1.163 GB, free: 14.07 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.15e-05/1.328, allocations: 64.69 kB / 1.163 GB, free: 14.04 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/1.329, allocations: 83.39 kB / 1.163 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/1.33, allocations: 0.8454 MB / 1.164 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/1.33, allocations: 7.938 kB / 1.164 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.438e-05/1.33, allocations: 29.69 kB / 1.164 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.686e-05/1.33, allocations: 46.39 kB / 1.164 GB, free: 13.36 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008173/1.331, allocations: 0.5513 MB / 1.165 GB, free: 13.02 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003589/1.334, allocations: 3.696 MB / 1.168 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005048/1.335, allocations: 298.1 kB / 1.169 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/1.335, allocations: 196.1 kB / 1.169 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-05/1.335, allocations: 17.47 kB / 1.169 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003395/1.336, allocations: 208.5 kB / 1.169 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=46): time 2.215e-06/1.336, allocations: 0 / 1.169 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46): time 0.0005659/1.336, allocations: 324.3 kB / 1.169 GB, free: 9.305 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/1.336, allocations: 60.77 kB / 1.169 GB, free: 9.234 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003942/1.337, allocations: 390.5 kB / 1.17 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.396e-05/1.337, allocations: 49.95 kB / 1.17 GB, free: 8.922 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/1.337, allocations: 344.5 kB / 1.17 GB, free: 8.672 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/1.337, allocations: 126.2 kB / 1.17 GB, free: 8.57 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.69e-05/1.337, allocations: 14.94 kB / 1.17 GB, free: 8.566 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001216/1.337, allocations: 357.3 kB / 1.171 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/1.338, allocations: 145.1 kB / 1.171 GB, free: 8.137 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003424/1.338, allocations: 390.8 kB / 1.171 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/1.338, allocations: 184.6 kB / 1.171 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/1.338, allocations: 0 / 1.171 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007556/1.339, allocations: 0.5839 MB / 1.172 GB, free: 7.125 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007006/1.34, allocations: 2.705 MB / 1.175 GB, free: 4.258 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/1.34, allocations: 8 kB / 1.175 GB, free: 4.25 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/1.34, allocations: 12 kB / 1.175 GB, free: 4.238 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/1.34, allocations: 99.27 kB / 1.175 GB, free: 4.145 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.972e-05/1.34, allocations: 15.92 kB / 1.175 GB, free: 4.129 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/1.34, allocations: 69.73 kB / 1.175 GB, free: 4.074 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-05/1.34, allocations: 27.44 kB / 1.175 GB, free: 4.051 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.445e-06/1.34, allocations: 4 kB / 1.175 GB, free: 4.047 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006836/1.341, allocations: 0.517 MB / 1.175 GB, free: 3.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/1.341, allocations: 12 kB / 1.175 GB, free: 3.648 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/1.341, allocations: 12 kB / 1.175 GB, free: 3.637 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003036/1.342, allocations: 98.45 kB / 1.175 GB, free: 3.547 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.962e-05/1.342, allocations: 21.02 kB / 1.175 GB, free: 3.527 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/1.342, allocations: 57.14 kB / 1.176 GB, free: 3.484 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/1.342, allocations: 35.23 kB / 1.176 GB, free: 3.453 MB / 0.7448 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.0001567/1.342, allocations: 168.6 kB / 1.176 GB, free: 3.309 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.526e-05/1.342, allocations: 47.44 kB / 1.176 GB, free: 3.262 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005963/1.343, allocations: 381.6 kB / 1.176 GB, free: 2.98 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/1.343, allocations: 4 kB / 1.176 GB, free: 2.977 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/1.343, allocations: 0 / 1.176 GB, free: 2.977 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/1.343, allocations: 7.969 kB / 1.176 GB, free: 2.969 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/1.344, allocations: 1.093 MB / 1.177 GB, free: 2.043 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.344, allocations: 3.938 kB / 1.177 GB, free: 2.039 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/1.344, allocations: 43.91 kB / 1.177 GB, free: 1.996 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/1.344, allocations: 3.953 kB / 1.177 GB, free: 1.992 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/1.344, allocations: 14.98 kB / 1.177 GB, free: 1.984 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/1.344, allocations: 12 kB / 1.177 GB, free: 1.973 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.344, allocations: 0 / 1.177 GB, free: 1.973 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007569/1.345, allocations: 0.6362 MB / 1.178 GB, free: 1.449 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/1.345, allocations: 150.8 kB / 1.178 GB, free: 1.297 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.94e-05/1.345, allocations: 18.69 kB / 1.178 GB, free: 1.289 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/1.346, allocations: 11.12 kB / 1.178 GB, free: 1.281 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/1.346, allocations: 50.23 kB / 1.178 GB, free: 1.242 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.949e-05/1.346, allocations: 11.25 kB / 1.178 GB, free: 1.234 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002294/1.346, allocations: 258.7 kB / 1.178 GB, free: 1.031 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.91e-07/1.346, allocations: 4 kB / 1.178 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000739/1.347, allocations: 236.3 kB / 1.179 GB, free: 0.8281 MB / 0.7448 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.00114/1.348, allocations: 1.344 MB / 1.18 GB, free: 15.6 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001117/1.349, allocations: 0.7123 MB / 1.181 GB, free: 15.07 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.349, allocations: 0 / 1.181 GB, free: 15.07 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0002831/1.349, allocations: 182.9 kB / 1.181 GB, free: 14.93 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005255/1.35, allocations: 93.88 kB / 1.181 GB, free: 14.87 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/1.352, allocations: 0.8431 MB / 1.182 GB, free: 14.1 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/1.352, allocations: 0.9257 MB / 1.183 GB, free: 13.16 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.0004724/1.353, allocations: 134 kB / 1.183 GB, free: 13.03 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/1.353, allocations: 216.4 kB / 1.183 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of SimCode: time 1.112e-06/1.353, allocations: 0 / 1.183 GB, free: 12.97 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/1.382, allocations: 10.58 MB / 1.193 GB, free: 2.57 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/1.382, allocations: 146.4 kB / 1.193 GB, free: 2.352 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.703/4.085, allocations: 4.062 kB / 1.193 GB, free: 2.348 MB / 0.7605 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)