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: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.561/1.561, allocations: 289.9 MB / 297.4 MB, free: 6.383 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.001027/0.001027, allocations: 172.8 kB / 366.7 MB, free: 1.652 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.514/1.514, allocations: 205.2 MB / 0.626 GB, free: 7.188 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.0008923/0.0008923, allocations: 87.67 kB / 0.74 GB, free: 39.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.457e-05/1.462e-05, allocations: 3.984 kB / 0.8597 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.636/0.6361, allocations: 116.3 MB / 0.9733 GB, free: 76.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2147/0.8508, allocations: 164.5 MB / 1.134 GB, free: 1.703 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.8511, allocations: 83.95 kB / 1.134 GB, free: 1.621 MB / 0.7292 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.05014/0.9013, allocations: 20.9 MB / 1.154 GB, free: 12.66 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9013, allocations: 0 / 1.154 GB, free: 12.66 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.002e-05/0.9014, allocations: 15.94 kB / 1.154 GB, free: 12.65 MB / 0.7605 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.001747/0.9032, allocations: 0.7824 MB / 1.155 GB, free: 11.81 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.9032, allocations: 16.02 kB / 1.155 GB, free: 11.79 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007979/0.904, allocations: 119 kB / 1.155 GB, free: 11.68 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007242/0.9048, allocations: 413.8 kB / 1.156 GB, free: 11.23 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.9048, allocations: 28 kB / 1.156 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.905, allocations: 51.98 kB / 1.156 GB, free: 11.15 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009539/0.9059, allocations: 491.8 kB / 1.156 GB, free: 10.67 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.9071, allocations: 0.7471 MB / 1.157 GB, free: 9.863 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.9072, allocations: 4 kB / 1.157 GB, free: 9.859 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.954e-05/0.9072, allocations: 4 kB / 1.157 GB, free: 9.855 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-05/0.9073, allocations: 41.98 kB / 1.157 GB, free: 9.816 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004081/0.9114, allocations: 3.552 MB / 1.16 GB, free: 6.062 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005062/0.9119, allocations: 272.5 kB / 1.161 GB, free: 5.781 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003276/0.9123, allocations: 177.5 kB / 1.161 GB, free: 5.605 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.9123, allocations: 12.31 kB / 1.161 GB, free: 5.594 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003261/0.9126, allocations: 201 kB / 1.161 GB, free: 5.387 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 2.455e-06/0.9127, allocations: 4 kB / 1.161 GB, free: 5.383 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0005538/0.9132, allocations: 288.8 kB / 1.161 GB, free: 5.094 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.9133, allocations: 59.16 kB / 1.161 GB, free: 5.023 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.9136, allocations: 309.8 kB / 1.162 GB, free: 4.711 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 7.786e-05/0.9137, allocations: 37.7 kB / 1.162 GB, free: 4.668 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.914, allocations: 351.2 kB / 1.162 GB, free: 4.316 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.9141, allocations: 122.4 kB / 1.162 GB, free: 4.195 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.9141, allocations: 0 / 1.162 GB, free: 4.195 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.9143, allocations: 358.8 kB / 1.163 GB, free: 3.836 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/0.9145, allocations: 133.5 kB / 1.163 GB, free: 3.707 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.9149, allocations: 363.9 kB / 1.163 GB, free: 3.254 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.9152, allocations: 170.1 kB / 1.163 GB, free: 3.09 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.111e-06/0.9152, allocations: 3.938 kB / 1.163 GB, free: 3.086 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0008251/0.9161, allocations: 0.4946 MB / 1.164 GB, free: 2.582 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.001159/0.9172, allocations: 2.705 MB / 1.166 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.9172, allocations: 8 kB / 1.166 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.848e-05/0.9173, allocations: 8 kB / 1.166 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000355/0.9176, allocations: 103.8 kB / 1.166 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/0.9177, allocations: 19.92 kB / 1.166 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.918, allocations: 42.2 kB / 1.166 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.9181, allocations: 38.73 kB / 1.167 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.035e-05/0.9181, allocations: 4.625 kB / 1.167 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000685/0.9188, allocations: 433.6 kB / 1.167 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.9189, allocations: 4 kB / 1.167 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.9189, allocations: 16.12 kB / 1.167 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.9192, allocations: 99.77 kB / 1.167 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.9192, allocations: 19.92 kB / 1.167 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.9195, allocations: 31.67 kB / 1.167 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/0.9196, allocations: 36 kB / 1.167 GB, free: 14.82 MB / 0.7761 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.0001769/0.9198, allocations: 147.6 kB / 1.167 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.9199, allocations: 47.47 kB / 1.167 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000626/0.9205, allocations: 339.8 kB / 1.168 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.9205, allocations: 4 kB / 1.168 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.9205, allocations: 0 / 1.168 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.9205, allocations: 3.984 kB / 1.168 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001484/0.922, allocations: 0.9722 MB / 1.169 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.922, allocations: 0 / 1.169 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.9223, allocations: 39.92 kB / 1.169 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.9223, allocations: 0 / 1.169 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.9223, allocations: 11.98 kB / 1.169 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.9223, allocations: 5.375 kB / 1.169 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.9223, allocations: 7.891 kB / 1.169 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008066/0.9231, allocations: 0.5901 MB / 1.169 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.9233, allocations: 144.6 kB / 1.169 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.57e-05/0.9234, allocations: 7.953 kB / 1.169 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.9236, allocations: 4 kB / 1.169 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.9237, allocations: 52.42 kB / 1.169 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.9237, allocations: 18.34 kB / 1.169 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001801/0.9239, allocations: 196.6 kB / 1.17 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9239, allocations: 0 / 1.17 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0008255/0.9248, allocations: 207.4 kB / 1.17 GB, free: 11.93 MB / 0.7761 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.0002206/0.925, allocations: 131.1 kB / 1.17 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.00104/0.926, allocations: 0.6381 MB / 1.171 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.926, allocations: 4 kB / 1.171 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.9263, allocations: 170.7 kB / 1.171 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005067/0.9268, allocations: 80.94 kB / 1.171 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.9283, allocations: 0.6929 MB / 1.172 GB, free: 10.19 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005195/0.9288, allocations: 0.9158 MB / 1.172 GB, free: 9.25 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0004787/0.9293, allocations: 127 kB / 1.173 GB, free: 9.133 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.9294, allocations: 43.42 kB / 1.173 GB, free: 9.09 MB / 0.7761 GB Notification: Performance of SimCode: time 2.6e-07/0.9294, allocations: 3.938 kB / 1.173 GB, free: 9.086 MB / 0.7761 GB Notification: Performance of Templates: time 0.01214/0.9416, allocations: 5.379 MB / 1.178 GB, free: 3.832 MB / 0.7761 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (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 & ./Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)