Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.414/2.414, allocations: 251.1 MB / 266.7 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001303/0.001303, allocations: 181.7 kB / 326.2 MB, free: 2.836 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.388/2.388, allocations: 205.4 MB / 0.5772 GB, free: 20.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.0009446/0.0009443, allocations: 88.11 kB / 0.6817 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004956/0.0004958, allocations: 9.875 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2337, allocations: 106.3 MB / 0.8995 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2707/0.5045, allocations: 157.8 MB / 1.054 GB, free: 3.508 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004003/0.505, allocations: 99.94 kB / 1.054 GB, free: 3.41 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1/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.7148/1.22, allocations: 21.22 MB / 1.074 GB, free: 152.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 6.272e-06/1.22, allocations: 0 / 1.074 GB, free: 152.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.186e-05/1.22, allocations: 15.66 kB / 1.074 GB, free: 152.7 MB / 0.698 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.003487/1.224, allocations: 0.8251 MB / 1.075 GB, free: 152 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.668e-05/1.224, allocations: 8.719 kB / 1.075 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00239/1.226, allocations: 130.3 kB / 1.075 GB, free: 152 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/1.228, allocations: 405.5 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/1.228, allocations: 62.44 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003917/1.229, allocations: 86.64 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003628/1.232, allocations: 0.8595 MB / 1.077 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.025e-05/1.232, allocations: 5.281 kB / 1.077 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002293/1.233, allocations: 41.89 kB / 1.077 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000166/1.233, allocations: 39.89 kB / 1.077 GB, free: 151.3 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002708/1.236, allocations: 0.5632 MB / 1.077 GB, free: 151.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006316/1.242, allocations: 3.704 MB / 1.081 GB, free: 148.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009763/1.243, allocations: 316.6 kB / 1.081 GB, free: 148.3 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006967/1.244, allocations: 217.9 kB / 1.081 GB, free: 148.3 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 6.875e-05/1.244, allocations: 13.45 kB / 1.081 GB, free: 148.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006077/1.244, allocations: 259.7 kB / 1.082 GB, free: 148.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=48): time 4.188e-06/1.244, allocations: 1.094 kB / 1.082 GB, free: 148.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.001437/1.246, allocations: 460.7 kB / 1.082 GB, free: 148 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.384e-05/1.246, allocations: 87.77 kB / 1.082 GB, free: 147.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007056/1.247, allocations: 416.8 kB / 1.083 GB, free: 147.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/1.247, allocations: 53 kB / 1.083 GB, free: 147.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/1.247, allocations: 332.1 kB / 1.083 GB, free: 147.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000173/1.247, allocations: 137.3 kB / 1.083 GB, free: 147.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.313e-05/1.247, allocations: 19.28 kB / 1.083 GB, free: 147.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001165/1.247, allocations: 357.8 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004695/1.248, allocations: 153 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006162/1.249, allocations: 402 kB / 1.084 GB, free: 146.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005399/1.249, allocations: 190.5 kB / 1.084 GB, free: 146.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/1.249, allocations: 2.344 kB / 1.084 GB, free: 146.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001561/1.251, allocations: 0.5912 MB / 1.085 GB, free: 146 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001922/1.251, allocations: 306.9 kB / 1.085 GB, free: 145.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/1.251, allocations: 6.969 kB / 1.085 GB, free: 145.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.885e-05/1.251, allocations: 12 kB / 1.085 GB, free: 145.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007564/1.252, allocations: 102.7 kB / 1.085 GB, free: 145.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.828e-05/1.252, allocations: 19.48 kB / 1.085 GB, free: 145.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/1.252, allocations: 60.91 kB / 1.085 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/1.253, allocations: 38.02 kB / 1.085 GB, free: 145.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/1.253, allocations: 4.438 kB / 1.085 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001372/1.254, allocations: 0.5201 MB / 1.086 GB, free: 145.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/1.254, allocations: 7.125 kB / 1.086 GB, free: 145.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/1.254, allocations: 15.16 kB / 1.086 GB, free: 145.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006824/1.255, allocations: 108.2 kB / 1.086 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.084e-05/1.255, allocations: 18.89 kB / 1.086 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006462/1.256, allocations: 59.36 kB / 1.086 GB, free: 145.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-05/1.256, allocations: 30.09 kB / 1.086 GB, free: 145.2 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$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,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked 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.0006834/1.256, allocations: 325.5 kB / 1.086 GB, free: 144.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/1.256, allocations: 49.38 kB / 1.086 GB, free: 144.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/1.258, allocations: 396.5 kB / 1.087 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/1.258, allocations: 5.75 kB / 1.087 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/1.258, allocations: 0.5312 kB / 1.087 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.273e-05/1.258, allocations: 5.172 kB / 1.087 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002657/1.26, allocations: 1.211 MB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/1.26, allocations: 1.562 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/1.261, allocations: 53.97 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/1.261, allocations: 3.938 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/1.261, allocations: 19.89 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.494e-06/1.261, allocations: 2.812 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/1.261, allocations: 3.406 kB / 1.088 GB, free: 143.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/1.262, allocations: 0.6581 MB / 1.089 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000241/1.263, allocations: 152 kB / 1.089 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.251e-05/1.263, allocations: 15.8 kB / 1.089 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/1.263, allocations: 15.72 kB / 1.089 GB, free: 143.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/1.263, allocations: 55.77 kB / 1.089 GB, free: 143 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.564e-05/1.263, allocations: 15.69 kB / 1.089 GB, free: 143 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003625/1.264, allocations: 252.2 kB / 1.089 GB, free: 142.9 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.01e-07/1.264, allocations: 3.812 kB / 1.089 GB, free: 142.9 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001265/1.265, allocations: 242.9 kB / 1.089 GB, free: 142.8 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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.0002383/1.265, allocations: 136.6 kB / 1.09 GB, free: 142.7 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00166/1.267, allocations: 0.7227 MB / 1.09 GB, free: 142.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.267, allocations: 0 / 1.09 GB, free: 142.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004727/1.267, allocations: 187.2 kB / 1.09 GB, free: 142.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009878/1.268, allocations: 100.9 kB / 1.091 GB, free: 142.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/1.271, allocations: 1.212 MB / 1.092 GB, free: 141.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/1.271, allocations: 0.9109 MB / 1.093 GB, free: 140.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0007067/1.272, allocations: 117.8 kB / 1.093 GB, free: 140.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/1.272, allocations: 45.61 kB / 1.093 GB, free: 140.5 MB / 0.698 GB Notification: Performance of SimCode: time 1.443e-06/1.272, allocations: 0 / 1.093 GB, free: 140.5 MB / 0.698 GB Notification: Performance of Templates: time 0.01631/1.289, allocations: 5.424 MB / 1.098 GB, free: 136.1 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)