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.726/2.726, allocations: 252.6 MB / 265.2 MB, free: 5.699 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001545/0.001545, allocations: 183.8 kB / 324.5 MB, free: 14.42 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.067/2.067, allocations: 205.4 MB / 0.5754 GB, free: 10.48 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.001089/0.001088, allocations: 98.62 kB / 0.6797 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.443e-05/3.447e-05, allocations: 4 kB / 0.7911 GB, free: 96.64 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2558, allocations: 106.2 MB / 0.8949 GB, free: 6.297 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.923/1.179, allocations: 157.7 MB / 1.049 GB, free: 10.82 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/1.179, allocations: 87.02 kB / 1.049 GB, free: 10.78 MB / 0.6667 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.08679/1.266, allocations: 21.06 MB / 1.07 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.414e-06/1.266, allocations: 0 / 1.07 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.772e-05/1.266, allocations: 20.88 kB / 1.07 GB, free: 9.352 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.002208/1.269, allocations: 0.787 MB / 1.07 GB, free: 8.559 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/1.269, allocations: 8.031 kB / 1.07 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001176/1.27, allocations: 123 kB / 1.07 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/1.271, allocations: 415.2 kB / 1.071 GB, free: 8.043 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.674e-05/1.271, allocations: 67.44 kB / 1.071 GB, free: 8 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/1.271, allocations: 85.06 kB / 1.071 GB, free: 7.941 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/1.273, allocations: 0.8416 MB / 1.072 GB, free: 7.273 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/1.273, allocations: 0 / 1.072 GB, free: 7.273 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/1.274, allocations: 34.31 kB / 1.072 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001014/1.274, allocations: 41.23 kB / 1.072 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/1.275, allocations: 0.5502 MB / 1.072 GB, free: 6.855 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006618/1.282, allocations: 3.705 MB / 1.076 GB, free: 3.43 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008852/1.283, allocations: 290.6 kB / 1.076 GB, free: 3.219 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006145/1.284, allocations: 194.6 kB / 1.077 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.584e-05/1.284, allocations: 4.375 kB / 1.077 GB, free: 3.086 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005411/1.284, allocations: 219.3 kB / 1.077 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 3.577e-06/1.284, allocations: 0 / 1.077 GB, free: 2.914 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.001038/1.285, allocations: 324.4 kB / 1.077 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.978e-05/1.285, allocations: 59.41 kB / 1.077 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006845/1.286, allocations: 387 kB / 1.077 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.903e-05/1.286, allocations: 55.31 kB / 1.078 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000338/1.287, allocations: 341.7 kB / 1.078 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/1.287, allocations: 129.3 kB / 1.078 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.913e-05/1.287, allocations: 11.31 kB / 1.078 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001799/1.287, allocations: 359.3 kB / 1.078 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004503/1.287, allocations: 146.8 kB / 1.078 GB, free: 1.43 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/1.288, allocations: 387.7 kB / 1.079 GB, free: 1.02 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/1.289, allocations: 186.6 kB / 1.079 GB, free: 0.8828 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.798e-06/1.289, allocations: 4 kB / 1.079 GB, free: 0.8789 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001489/1.29, allocations: 0.5778 MB / 1.08 GB, free: 428 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001155/1.291, allocations: 2.707 MB / 1.082 GB, free: 13.55 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/1.291, allocations: 8 kB / 1.082 GB, free: 13.54 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.234e-05/1.291, allocations: 12 kB / 1.082 GB, free: 13.53 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007884/1.292, allocations: 102.4 kB / 1.082 GB, free: 13.44 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.333e-05/1.292, allocations: 19.92 kB / 1.082 GB, free: 13.42 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000654/1.293, allocations: 60.45 kB / 1.082 GB, free: 13.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.374e-05/1.293, allocations: 29.88 kB / 1.082 GB, free: 13.34 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/1.293, allocations: 4 kB / 1.082 GB, free: 13.34 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001295/1.294, allocations: 0.5132 MB / 1.083 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/1.294, allocations: 7.938 kB / 1.083 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/1.294, allocations: 16.12 kB / 1.083 GB, free: 12.93 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006698/1.295, allocations: 108.6 kB / 1.083 GB, free: 12.83 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.859e-05/1.295, allocations: 23.88 kB / 1.083 GB, free: 12.81 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006083/1.296, allocations: 54.09 kB / 1.083 GB, free: 12.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.254e-05/1.296, allocations: 35.23 kB / 1.083 GB, free: 12.74 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 () * 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.0002755/1.296, allocations: 166.6 kB / 1.083 GB, free: 12.59 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/1.296, allocations: 47.44 kB / 1.083 GB, free: 12.54 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/1.297, allocations: 378.5 kB / 1.084 GB, free: 12.27 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/1.297, allocations: 4 kB / 1.084 GB, free: 12.27 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.297, allocations: 3.953 kB / 1.084 GB, free: 12.27 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/1.298, allocations: 3.984 kB / 1.084 GB, free: 12.26 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/1.3, allocations: 1.098 MB / 1.085 GB, free: 11.33 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/1.3, allocations: 3.953 kB / 1.085 GB, free: 11.32 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00042/1.301, allocations: 42.91 kB / 1.085 GB, free: 11.29 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.419e-05/1.301, allocations: 4 kB / 1.085 GB, free: 11.28 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.536e-05/1.301, allocations: 15.23 kB / 1.085 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.078e-05/1.301, allocations: 7.938 kB / 1.085 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.301, allocations: 0 / 1.085 GB, free: 11.27 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/1.302, allocations: 0.6265 MB / 1.086 GB, free: 10.75 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/1.302, allocations: 152.6 kB / 1.086 GB, free: 10.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/1.302, allocations: 14.88 kB / 1.086 GB, free: 10.59 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/1.303, allocations: 14.16 kB / 1.086 GB, free: 10.58 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/1.303, allocations: 51.8 kB / 1.086 GB, free: 10.54 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.311e-05/1.303, allocations: 15.12 kB / 1.086 GB, free: 10.52 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004617/1.304, allocations: 265.1 kB / 1.086 GB, free: 10.32 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.31e-07/1.304, allocations: 0 / 1.086 GB, free: 10.32 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001275/1.305, allocations: 238.9 kB / 1.086 GB, free: 10.11 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.0002897/1.305, allocations: 139.2 kB / 1.086 GB, free: 9.98 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001888/1.307, allocations: 0.7085 MB / 1.087 GB, free: 9.441 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.307, allocations: 0 / 1.087 GB, free: 9.441 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005015/1.308, allocations: 178.4 kB / 1.087 GB, free: 9.266 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009095/1.309, allocations: 100.9 kB / 1.087 GB, free: 9.172 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/1.311, allocations: 0.7193 MB / 1.088 GB, free: 8.418 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007092/1.312, allocations: 0.9199 MB / 1.089 GB, free: 7.473 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000913/1.313, allocations: 132.7 kB / 1.089 GB, free: 7.344 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001923/1.313, allocations: 47.42 kB / 1.089 GB, free: 7.297 MB / 0.698 GB Notification: Performance of SimCode: time 1.533e-06/1.313, allocations: 0 / 1.089 GB, free: 7.297 MB / 0.698 GB Notification: Performance of Templates: time 0.02066/1.334, allocations: 5.879 MB / 1.095 GB, free: 1.469 MB / 0.698 GB