Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.594/2.594, allocations: 287.5 MB / 303.2 MB, free: 8.246 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.001422/0.001422, allocations: 184.1 kB / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.4 MB / 0.6305 GB, free: 10.45 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008708/0.0008707, allocations: 94.36 kB / 0.7438 GB, free: 6.438 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004836/0.0004839, allocations: 14.62 kB / 0.8667 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2183, allocations: 115.3 MB / 0.9793 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9726/1.191, allocations: 164.1 MB / 1.14 GB, free: 14.03 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003581/1.191, allocations: 99.08 kB / 1.14 GB, free: 14.02 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0/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.07649/1.268, allocations: 21.22 MB / 1.16 GB, free: 17.75 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.805e-06/1.268, allocations: 0 / 1.16 GB, free: 17.75 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.997e-05/1.268, allocations: 23.75 kB / 1.16 GB, free: 17.73 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.001855/1.27, allocations: 0.819 MB / 1.161 GB, free: 16.9 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/1.27, allocations: 12.03 kB / 1.161 GB, free: 16.89 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009679/1.271, allocations: 123.9 kB / 1.161 GB, free: 16.77 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007942/1.272, allocations: 422.1 kB / 1.162 GB, free: 16.38 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.925e-05/1.272, allocations: 67.23 kB / 1.162 GB, free: 16.34 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/1.272, allocations: 77.61 kB / 1.162 GB, free: 16.29 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00176/1.274, allocations: 0.8737 MB / 1.163 GB, free: 15.59 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/1.274, allocations: 7.875 kB / 1.163 GB, free: 15.58 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.214e-05/1.274, allocations: 27.75 kB / 1.163 GB, free: 15.57 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.121e-05/1.274, allocations: 44.92 kB / 1.163 GB, free: 15.53 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/1.275, allocations: 0.5665 MB / 1.163 GB, free: 15.15 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005971/1.281, allocations: 3.705 MB / 1.167 GB, free: 11.73 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009208/1.282, allocations: 319.7 kB / 1.167 GB, free: 11.5 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006316/1.283, allocations: 225 kB / 1.167 GB, free: 11.35 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.585e-05/1.283, allocations: 8.438 kB / 1.167 GB, free: 11.34 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005841/1.284, allocations: 255.2 kB / 1.168 GB, free: 11.13 MB / 0.698 GB Notification: Performance of pre-optimization done (n=48): time 3.686e-06/1.284, allocations: 0 / 1.168 GB, free: 11.13 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.001326/1.285, allocations: 462.5 kB / 1.168 GB, free: 10.79 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/1.285, allocations: 85.55 kB / 1.168 GB, free: 10.69 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006637/1.286, allocations: 409.8 kB / 1.169 GB, free: 10.37 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.171e-05/1.286, allocations: 54.56 kB / 1.169 GB, free: 10.32 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000321/1.286, allocations: 338.1 kB / 1.169 GB, free: 10.05 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/1.286, allocations: 138.2 kB / 1.169 GB, free: 9.938 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/1.287, allocations: 14 kB / 1.169 GB, free: 9.934 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001667/1.287, allocations: 360.2 kB / 1.17 GB, free: 9.594 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004718/1.287, allocations: 156.3 kB / 1.17 GB, free: 9.492 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006458/1.288, allocations: 399 kB / 1.17 GB, free: 9.066 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001/1.289, allocations: 0.5039 MB / 1.171 GB, free: 8.586 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/1.289, allocations: 0 / 1.171 GB, free: 8.586 MB / 0.698 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001522/1.29, allocations: 0.5943 MB / 1.171 GB, free: 8.121 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002395/1.291, allocations: 299.3 kB / 1.171 GB, free: 7.754 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/1.291, allocations: 8 kB / 1.171 GB, free: 7.746 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.519e-05/1.291, allocations: 12 kB / 1.171 GB, free: 7.734 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006838/1.291, allocations: 106.5 kB / 1.172 GB, free: 7.637 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.578e-05/1.291, allocations: 15.94 kB / 1.172 GB, free: 7.621 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006076/1.292, allocations: 65.73 kB / 1.172 GB, free: 7.566 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.518e-05/1.292, allocations: 39.05 kB / 1.172 GB, free: 7.535 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/1.292, allocations: 10.66 kB / 1.172 GB, free: 7.527 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001356/1.294, allocations: 0.5205 MB / 1.172 GB, free: 7.152 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/1.294, allocations: 8 kB / 1.172 GB, free: 7.145 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/1.294, allocations: 11.94 kB / 1.172 GB, free: 7.133 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005945/1.294, allocations: 103.3 kB / 1.172 GB, free: 7.035 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.84e-05/1.294, allocations: 19.92 kB / 1.172 GB, free: 7.016 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005686/1.295, allocations: 66.55 kB / 1.172 GB, free: 6.965 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/1.295, allocations: 27.44 kB / 1.172 GB, free: 6.941 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.0005942/1.296, allocations: 322.5 kB / 1.173 GB, free: 6.668 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/1.296, allocations: 51.36 kB / 1.173 GB, free: 6.617 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/1.297, allocations: 399.8 kB / 1.173 GB, free: 6.34 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/1.297, allocations: 4 kB / 1.173 GB, free: 6.336 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/1.297, allocations: 8 kB / 1.173 GB, free: 6.328 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/1.297, allocations: 7.969 kB / 1.173 GB, free: 6.32 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/1.299, allocations: 1.211 MB / 1.174 GB, free: 5.277 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/1.299, allocations: 0 / 1.174 GB, free: 5.277 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004162/1.3, allocations: 54.78 kB / 1.174 GB, free: 5.227 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.255e-06/1.3, allocations: 0 / 1.174 GB, free: 5.227 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.534e-05/1.3, allocations: 10.75 kB / 1.174 GB, free: 5.223 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.698e-06/1.3, allocations: 4 kB / 1.174 GB, free: 5.219 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/1.3, allocations: 7.984 kB / 1.174 GB, free: 5.211 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/1.302, allocations: 0.6553 MB / 1.175 GB, free: 4.699 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002722/1.302, allocations: 151 kB / 1.175 GB, free: 4.547 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-05/1.302, allocations: 14.92 kB / 1.175 GB, free: 4.539 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/1.302, allocations: 15.44 kB / 1.175 GB, free: 4.531 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/1.302, allocations: 51.23 kB / 1.175 GB, free: 4.488 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.374e-05/1.303, allocations: 19.94 kB / 1.175 GB, free: 4.473 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004835/1.303, allocations: 256.4 kB / 1.176 GB, free: 4.27 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.876e-06/1.303, allocations: 0 / 1.176 GB, free: 4.27 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001343/1.304, allocations: 236.4 kB / 1.176 GB, free: 4.066 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.0003083/1.305, allocations: 139.9 kB / 1.176 GB, free: 3.934 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002034/1.307, allocations: 0.7179 MB / 1.177 GB, free: 3.387 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.307, allocations: 64 / 1.177 GB, free: 3.387 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005572/1.307, allocations: 198.9 kB / 1.177 GB, free: 3.242 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/1.309, allocations: 101.2 kB / 1.177 GB, free: 3.176 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/1.311, allocations: 1.211 MB / 1.178 GB, free: 2.027 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006541/1.312, allocations: 0.9092 MB / 1.179 GB, free: 1.102 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0007815/1.313, allocations: 120.7 kB / 1.179 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/1.313, allocations: 47.42 kB / 1.179 GB, free: 0.9375 MB / 0.698 GB Notification: Performance of SimCode: time 9.02e-07/1.313, allocations: 0 / 1.179 GB, free: 0.9375 MB / 0.698 GB Notification: Performance of Templates: time 0.01839/1.332, allocations: 5.413 MB / 1.184 GB, free: 11.59 MB / 0.7136 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)