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.616/2.616, allocations: 253.2 MB / 260.6 MB, free: 7.461 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.00139/0.00139, allocations: 181.4 kB / 319.9 MB, free: 3.086 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.317/2.317, allocations: 205.6 MB / 0.5708 GB, free: 15.27 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.001073/0.001073, allocations: 92.59 kB / 0.6751 GB, free: 4.621 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.788e-05/1.783e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2164, allocations: 106.3 MB / 0.8887 GB, free: 11.86 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9179/1.134, allocations: 157.9 MB / 1.043 GB, free: 13.46 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003522/1.135, allocations: 101.7 kB / 1.043 GB, free: 13.41 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.08461/1.219, allocations: 20.89 MB / 1.063 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.495e-06/1.22, allocations: 0 / 1.063 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.781e-05/1.22, allocations: 16.88 kB / 1.063 GB, free: 12.35 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.002108/1.222, allocations: 0.7917 MB / 1.064 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/1.222, allocations: 15.95 kB / 1.064 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/1.223, allocations: 123 kB / 1.064 GB, free: 11.41 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009927/1.224, allocations: 408.3 kB / 1.065 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.955e-05/1.224, allocations: 43.06 kB / 1.065 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/1.224, allocations: 47.94 kB / 1.065 GB, free: 10.94 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001426/1.226, allocations: 490.7 kB / 1.065 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/1.227, allocations: 0.7439 MB / 1.066 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.948e-05/1.227, allocations: 0 / 1.066 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.625e-05/1.228, allocations: 4 kB / 1.066 GB, free: 10 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-05/1.228, allocations: 45.86 kB / 1.066 GB, free: 9.965 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006211/1.234, allocations: 3.553 MB / 1.07 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007832/1.235, allocations: 270.1 kB / 1.07 GB, free: 6.457 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005333/1.235, allocations: 180.2 kB / 1.07 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/1.235, allocations: 4.375 kB / 1.07 GB, free: 6.332 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005049/1.236, allocations: 198.1 kB / 1.07 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 3.537e-06/1.236, allocations: 0 / 1.07 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0008875/1.237, allocations: 297.5 kB / 1.07 GB, free: 5.938 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/1.237, allocations: 67.14 kB / 1.07 GB, free: 5.859 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000505/1.237, allocations: 311.3 kB / 1.071 GB, free: 5.617 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.229e-05/1.237, allocations: 37.52 kB / 1.071 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003519/1.238, allocations: 353.4 kB / 1.071 GB, free: 5.281 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/1.238, allocations: 116.2 kB / 1.071 GB, free: 5.184 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-05/1.238, allocations: 4 kB / 1.071 GB, free: 5.18 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001794/1.238, allocations: 349 kB / 1.072 GB, free: 4.848 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/1.239, allocations: 134.4 kB / 1.072 GB, free: 4.766 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005742/1.239, allocations: 369 kB / 1.072 GB, free: 4.383 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004451/1.24, allocations: 159 kB / 1.072 GB, free: 4.27 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.774e-06/1.24, allocations: 4 kB / 1.072 GB, free: 4.266 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001333/1.241, allocations: 0.506 MB / 1.073 GB, free: 3.852 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001226/1.242, allocations: 2.7 MB / 1.075 GB, free: 0.9883 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.971e-05/1.242, allocations: 8 kB / 1.075 GB, free: 0.9805 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.45e-05/1.242, allocations: 12 kB / 1.075 GB, free: 0.9688 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007726/1.243, allocations: 106.8 kB / 1.075 GB, free: 0.8711 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.539e-05/1.243, allocations: 15.94 kB / 1.076 GB, free: 0.8555 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006107/1.244, allocations: 39.58 kB / 1.076 GB, free: 0.8164 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.573e-05/1.244, allocations: 34.38 kB / 1.076 GB, free: 0.7891 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/1.244, allocations: 5.875 kB / 1.076 GB, free: 0.7852 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001149/1.245, allocations: 431.7 kB / 1.076 GB, free: 460 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/1.245, allocations: 8 kB / 1.076 GB, free: 452 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/1.245, allocations: 12 kB / 1.076 GB, free: 440 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006031/1.246, allocations: 107.6 kB / 1.076 GB, free: 340 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.108e-05/1.246, allocations: 19.92 kB / 1.076 GB, free: 320 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005018/1.246, allocations: 40.09 kB / 1.076 GB, free: 280 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.123e-05/1.247, allocations: 38.94 kB / 1.076 GB, free: 248 kB / 0.6823 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.0002468/1.247, allocations: 141.7 kB / 1.076 GB, free: 104 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/1.247, allocations: 43.52 kB / 1.076 GB, free: 60 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001073/1.248, allocations: 337.3 kB / 1.077 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/1.248, allocations: 4 kB / 1.077 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/1.248, allocations: 0 / 1.077 GB, free: 15.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/1.248, allocations: 7.984 kB / 1.077 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/1.25, allocations: 0.9761 MB / 1.078 GB, free: 14.96 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/1.25, allocations: 0 / 1.078 GB, free: 14.96 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/1.251, allocations: 39.91 kB / 1.078 GB, free: 14.92 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.25e-05/1.251, allocations: 8.062 kB / 1.078 GB, free: 14.91 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/1.251, allocations: 11.33 kB / 1.078 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/1.251, allocations: 0 / 1.078 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/1.251, allocations: 4 kB / 1.078 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001312/1.252, allocations: 0.5942 MB / 1.078 GB, free: 14.41 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000262/1.252, allocations: 147 kB / 1.078 GB, free: 14.26 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.432e-05/1.253, allocations: 4 kB / 1.078 GB, free: 14.25 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/1.253, allocations: 7.984 kB / 1.078 GB, free: 14.25 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/1.253, allocations: 46.81 kB / 1.079 GB, free: 14.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.735e-05/1.253, allocations: 19.36 kB / 1.079 GB, free: 14.19 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003095/1.253, allocations: 192.9 kB / 1.079 GB, free: 14.04 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.81e-07/1.254, allocations: 0 / 1.079 GB, free: 14.04 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001264/1.255, allocations: 211.4 kB / 1.079 GB, free: 13.83 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.0002676/1.255, allocations: 137.8 kB / 1.079 GB, free: 13.69 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001652/1.257, allocations: 0.6419 MB / 1.08 GB, free: 13.23 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.257, allocations: 0 / 1.08 GB, free: 13.23 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004175/1.257, allocations: 164.1 kB / 1.08 GB, free: 13.11 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008729/1.258, allocations: 85.8 kB / 1.08 GB, free: 13.04 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/1.26, allocations: 0.6871 MB / 1.081 GB, free: 12.41 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006901/1.261, allocations: 0.9261 MB / 1.081 GB, free: 11.46 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000843/1.262, allocations: 108.5 kB / 1.082 GB, free: 11.36 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/1.262, allocations: 47.11 kB / 1.082 GB, free: 11.32 MB / 0.698 GB Notification: Performance of SimCode: time 1.613e-06/1.262, allocations: 0 / 1.082 GB, free: 11.32 MB / 0.698 GB Notification: Performance of Templates: time 0.01861/1.281, allocations: 5.392 MB / 1.087 GB, free: 5.988 MB / 0.698 GB