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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.347/1.347, allocations: 289.8 MB / 297.1 MB, free: 6.641 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.000902/0.0009019, allocations: 165.4 kB / 366.3 MB, free: 1.98 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.012/1.012, allocations: 205.1 MB / 0.6256 GB, free: 5.809 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.0007971/0.0007971, allocations: 91.62 kB / 0.7395 GB, free: 39.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.019e-06/5.069e-06, allocations: 0 / 0.859 GB, free: 13.35 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3907, allocations: 116.3 MB / 0.9725 GB, free: 68.36 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.5452, allocations: 164.4 MB / 1.133 GB, free: 76 kB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.5454, allocations: 91.94 kB / 1.133 GB, free: 15.98 MB / 0.7448 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: time 0.0467/0.5921, allocations: 20.48 MB / 1.153 GB, free: 11.36 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.159e-05/0.5922, allocations: 19.94 kB / 1.153 GB, free: 11.34 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.001281/0.5935, allocations: 0.7867 MB / 1.154 GB, free: 10.5 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.5935, allocations: 12.03 kB / 1.154 GB, free: 10.49 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006963/0.5942, allocations: 123 kB / 1.154 GB, free: 10.37 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006204/0.5949, allocations: 417.3 kB / 1.155 GB, free: 9.918 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.754e-05/0.5949, allocations: 28 kB / 1.155 GB, free: 9.891 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/0.595, allocations: 47.98 kB / 1.155 GB, free: 9.844 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000848/0.5959, allocations: 499.9 kB / 1.155 GB, free: 9.355 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.597, allocations: 0.7562 MB / 1.156 GB, free: 8.535 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.597, allocations: 0 / 1.156 GB, free: 8.535 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.559e-05/0.5971, allocations: 8 kB / 1.156 GB, free: 8.527 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-05/0.5971, allocations: 37.98 kB / 1.156 GB, free: 8.492 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003505/0.6007, allocations: 3.551 MB / 1.159 GB, free: 4.738 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004931/0.6012, allocations: 276.4 kB / 1.16 GB, free: 4.453 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.6015, allocations: 182.5 kB / 1.16 GB, free: 4.273 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.6015, allocations: 12.34 kB / 1.16 GB, free: 4.262 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.6018, allocations: 189.1 kB / 1.16 GB, free: 4.066 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=46): time 1.954e-06/0.6018, allocations: 0 / 1.16 GB, free: 4.066 MB / 0.7605 GB Notification: Performance of matching and sorting (n=46): time 0.0004966/0.6023, allocations: 280.8 kB / 1.16 GB, free: 3.785 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.177e-05/0.6024, allocations: 63.39 kB / 1.16 GB, free: 3.711 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.6027, allocations: 313.5 kB / 1.161 GB, free: 3.395 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/0.6027, allocations: 37.7 kB / 1.161 GB, free: 3.352 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001847/0.6029, allocations: 323.2 kB / 1.161 GB, free: 3.027 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 9.405e-05/0.603, allocations: 114.5 kB / 1.161 GB, free: 2.914 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.079e-05/0.603, allocations: 4 kB / 1.161 GB, free: 2.91 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.6032, allocations: 354.7 kB / 1.161 GB, free: 2.555 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.6034, allocations: 133.5 kB / 1.161 GB, free: 2.426 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003401/0.6038, allocations: 368 kB / 1.162 GB, free: 1.969 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.604, allocations: 167.1 kB / 1.162 GB, free: 1.805 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.604, allocations: 4 kB / 1.162 GB, free: 1.801 MB / 0.7605 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0007537/0.6048, allocations: 0.5076 MB / 1.163 GB, free: 1.289 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008887/0.6057, allocations: 2.689 MB / 1.165 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.6057, allocations: 8 kB / 1.165 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.6057, allocations: 12 kB / 1.165 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003334/0.6061, allocations: 103.8 kB / 1.165 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.6061, allocations: 19.92 kB / 1.165 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.6064, allocations: 43.58 kB / 1.165 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/0.6065, allocations: 32 kB / 1.165 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 6.152e-06/0.6065, allocations: 4 kB / 1.165 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006253/0.6071, allocations: 433.9 kB / 1.166 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.6072, allocations: 11.94 kB / 1.166 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.6072, allocations: 12 kB / 1.166 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003063/0.6075, allocations: 103.8 kB / 1.166 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-05/0.6075, allocations: 16.64 kB / 1.166 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.6078, allocations: 39.67 kB / 1.166 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.473e-05/0.6079, allocations: 28 kB / 1.166 GB, free: 13.54 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.000135/0.608, allocations: 156.6 kB / 1.166 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-05/0.6081, allocations: 39.53 kB / 1.166 GB, free: 13.34 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005727/0.6087, allocations: 327.8 kB / 1.166 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.6087, allocations: 12 kB / 1.166 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.6087, allocations: 0 / 1.166 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.6087, allocations: 0 / 1.166 GB, free: 13 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.61, allocations: 0.9671 MB / 1.167 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.61, allocations: 0 / 1.167 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.6102, allocations: 47.91 kB / 1.167 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.6103, allocations: 4 kB / 1.167 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.6103, allocations: 0 / 1.167 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.6103, allocations: 4 kB / 1.167 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.6103, allocations: 3.938 kB / 1.167 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007452/0.6111, allocations: 0.5935 MB / 1.168 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.6112, allocations: 140.6 kB / 1.168 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.6113, allocations: 8 kB / 1.168 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.6115, allocations: 7.984 kB / 1.168 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.6116, allocations: 40.38 kB / 1.168 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.6116, allocations: 20.05 kB / 1.168 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.0001668/0.6118, allocations: 200.5 kB / 1.168 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0007207/0.6125, allocations: 211.5 kB / 1.169 GB, free: 10.65 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.0001715/0.6127, allocations: 133.7 kB / 1.169 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0008999/0.6136, allocations: 0.6578 MB / 1.169 GB, free: 9.848 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.6136, allocations: 0 / 1.169 GB, free: 9.848 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.6138, allocations: 169.5 kB / 1.17 GB, free: 9.68 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004975/0.6144, allocations: 90.64 kB / 1.17 GB, free: 9.598 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.6157, allocations: 0.6989 MB / 1.17 GB, free: 8.871 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005901/0.6163, allocations: 0.9741 MB / 1.171 GB, free: 7.871 MB / 0.7761 GB Notification: Performance of SimCode: time 2.3e-07/0.6163, allocations: 3.938 kB / 1.171 GB, free: 7.867 MB / 0.7761 GB Notification: Performance of Templates: time 0.01274/0.6291, allocations: 7.182 MB / 1.178 GB, free: 0.7812 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)