Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/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") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.23/2.23, allocations: 251.1 MB / 266.1 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001565/0.001564, allocations: 180 kB / 325.6 MB, free: 2.844 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.406/2.406, allocations: 205.4 MB / 0.5766 GB, free: 21.12 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 90.2 kB / 0.6811 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005058/0.0005058, allocations: 10.09 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2184, allocations: 106.3 MB / 0.8989 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2604/0.4789, allocations: 157.8 MB / 1.053 GB, free: 3.93 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000353/0.4793, allocations: 91.94 kB / 1.053 GB, free: 3.84 MB / 0.698 GB [/var/lib/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);. [/var/lib/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.7074/1.187, allocations: 21.2 MB / 1.074 GB, free: 153.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.555e-06/1.187, allocations: 0 / 1.074 GB, free: 153.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.805e-05/1.187, allocations: 19.53 kB / 1.074 GB, free: 153.1 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.002025/1.189, allocations: 0.8233 MB / 1.075 GB, free: 152.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.189, allocations: 8.469 kB / 1.075 GB, free: 152.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/1.19, allocations: 121.1 kB / 1.075 GB, free: 152.4 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008648/1.191, allocations: 412.6 kB / 1.075 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.505e-05/1.191, allocations: 66.55 kB / 1.075 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002031/1.191, allocations: 75.47 kB / 1.075 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/1.193, allocations: 0.8727 MB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.558e-05/1.194, allocations: 3.938 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/1.194, allocations: 31.31 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.715e-05/1.194, allocations: 43.2 kB / 1.076 GB, free: 151.7 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/1.195, allocations: 0.558 MB / 1.077 GB, free: 151.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005827/1.201, allocations: 3.708 MB / 1.08 GB, free: 148.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009143/1.202, allocations: 301.2 kB / 1.081 GB, free: 148.7 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.641e-05/1.202, allocations: 8.891 kB / 1.081 GB, free: 148.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005439/1.203, allocations: 222.5 kB / 1.081 GB, free: 148.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 4.319e-06/1.203, allocations: 0 / 1.081 GB, free: 148.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.001357/1.204, allocations: 449.7 kB / 1.081 GB, free: 148.5 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/1.204, allocations: 61.52 kB / 1.081 GB, free: 148.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006521/1.205, allocations: 393.2 kB / 1.082 GB, free: 148.2 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.047e-05/1.205, allocations: 45.86 kB / 1.082 GB, free: 148.1 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002716/1.205, allocations: 335.3 kB / 1.082 GB, free: 147.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/1.206, allocations: 129.1 kB / 1.082 GB, free: 147.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.73e-05/1.206, allocations: 14.72 kB / 1.082 GB, free: 147.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001094/1.206, allocations: 358.7 kB / 1.083 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004564/1.206, allocations: 162.2 kB / 1.083 GB, free: 147.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005926/1.207, allocations: 390.8 kB / 1.083 GB, free: 146.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005242/1.207, allocations: 192.9 kB / 1.083 GB, free: 146.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/1.207, allocations: 1.281 kB / 1.083 GB, free: 146.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001551/1.209, allocations: 0.5979 MB / 1.084 GB, free: 146.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005874/1.21, allocations: 2.703 MB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/1.21, allocations: 6.031 kB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.023e-05/1.21, allocations: 15.52 kB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007724/1.21, allocations: 108.2 kB / 1.087 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.773e-05/1.21, allocations: 14.52 kB / 1.087 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006796/1.211, allocations: 65.19 kB / 1.087 GB, free: 143.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/1.211, allocations: 37.64 kB / 1.087 GB, free: 143.5 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/1.211, allocations: 10.31 kB / 1.087 GB, free: 143.5 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001422/1.213, allocations: 0.5227 MB / 1.087 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/1.213, allocations: 6.531 kB / 1.087 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/1.213, allocations: 11.56 kB / 1.087 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006871/1.214, allocations: 108.2 kB / 1.087 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.585e-05/1.214, allocations: 15.05 kB / 1.087 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006166/1.214, allocations: 62.86 kB / 1.087 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/1.214, allocations: 29.62 kB / 1.087 GB, free: 143.2 MB / 0.698 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 () * 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.0007281/1.215, allocations: 322.5 kB / 1.088 GB, free: 142.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/1.215, allocations: 45.75 kB / 1.088 GB, free: 142.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/1.217, allocations: 389.7 kB / 1.088 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/1.217, allocations: 9.078 kB / 1.088 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/1.217, allocations: 4.547 kB / 1.088 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/1.217, allocations: 0.5 kB / 1.088 GB, free: 142.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/1.219, allocations: 1.031 MB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/1.219, allocations: 1.406 kB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/1.22, allocations: 48.28 kB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/1.22, allocations: 5.984 kB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/1.22, allocations: 12.06 kB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/1.22, allocations: 1.344 kB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/1.22, allocations: 0 / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/1.221, allocations: 0.6134 MB / 1.09 GB, free: 141.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002515/1.222, allocations: 151.2 kB / 1.09 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.587e-05/1.222, allocations: 19.59 kB / 1.09 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/1.222, allocations: 7.688 kB / 1.09 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/1.222, allocations: 50.67 kB / 1.09 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-05/1.222, allocations: 16.34 kB / 1.09 GB, free: 141.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004146/1.223, allocations: 260.7 kB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.91e-07/1.223, allocations: 0 / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001361/1.224, allocations: 242.9 kB / 1.091 GB, free: 141.1 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (50): * Single equations (assignments): 46 * 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.000244/1.224, allocations: 124.3 kB / 1.091 GB, free: 141 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001747/1.226, allocations: 0.7249 MB / 1.091 GB, free: 140.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/1.226, allocations: 8.062 kB / 1.091 GB, free: 140.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004262/1.227, allocations: 176.8 kB / 1.092 GB, free: 140.6 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008217/1.227, allocations: 89.05 kB / 1.092 GB, free: 140.6 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/1.23, allocations: 1.17 MB / 1.093 GB, free: 139.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000447/1.231, allocations: 0.9199 MB / 1.094 GB, free: 138.9 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0007263/1.231, allocations: 109.8 kB / 1.094 GB, free: 138.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/1.231, allocations: 54.17 kB / 1.094 GB, free: 138.9 MB / 0.698 GB Notification: Performance of SimCode: time 9.92e-07/1.231, allocations: 0 / 1.094 GB, free: 138.9 MB / 0.698 GB Notification: Performance of Templates: time 0.01696/1.248, allocations: 5.358 MB / 1.099 GB, free: 134.8 MB / 0.698 GB