Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.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_3.0.0_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 3.0.0/package.mo): time 0.8209/0.8209, allocations: 132.4 MB / 139.7 MB, free: 15.57 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001306/0.001306, allocations: 174 kB / 171.6 MB, free: 1.988 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.638/1.638, allocations: 170.5 MB / 373.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001727/0.001727, allocations: 119.8 kB / 444.4 MB, free: 9.375 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.5639/0.564, allocations: 73.4 MB / 0.666 GB, free: 62.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1955/0.7595, allocations: 126.5 MB / 0.7895 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.7599, allocations: 91.31 kB / 0.7896 GB, free: 9.699 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.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/Modelica_StateGraph2 2.0.2/package.mo:12160:5-12166:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:38:3-38: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.05695/0.8168, allocations: 22.03 MB / 0.8111 GB, free: 3.652 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.009e-05/0.817, allocations: 23.94 kB / 0.8111 GB, free: 3.629 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002527/0.8195, allocations: 0.8848 MB / 0.812 GB, free: 2.691 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.35e-05/0.8196, allocations: 8.031 kB / 0.812 GB, free: 2.684 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.8207, allocations: 138.8 kB / 0.8121 GB, free: 2.547 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.822, allocations: 0.4942 MB / 0.8126 GB, free: 2.008 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.032e-05/0.8221, allocations: 32 kB / 0.8126 GB, free: 1.977 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.8223, allocations: 52 kB / 0.8127 GB, free: 1.926 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001407/0.8237, allocations: 0.5741 MB / 0.8133 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.8254, allocations: 0.9033 MB / 0.8141 GB, free: 376 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.233e-05/0.8255, allocations: 4 kB / 0.8141 GB, free: 372 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.092e-05/0.8256, allocations: 4 kB / 0.8141 GB, free: 368 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-05/0.8256, allocations: 45.98 kB / 0.8142 GB, free: 324 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005581/0.8312, allocations: 3.837 MB / 0.8179 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007852/0.8321, allocations: 0.6116 MB / 0.8185 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003727/0.8324, allocations: 165.7 kB / 0.8187 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001601/0.8341, allocations: 1.066 MB / 0.8197 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002765/0.8344, allocations: 155.6 kB / 0.8199 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=38): time 4.178e-06/0.8344, allocations: 0 / 0.8199 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=38): time 0.0006257/0.835, allocations: 240.6 kB / 0.8201 GB, free: 9.832 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.8351, allocations: 63.34 kB / 0.8202 GB, free: 9.758 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005528/0.8356, allocations: 392.5 kB / 0.8205 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.8357, allocations: 37.64 kB / 0.8206 GB, free: 9.32 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.8361, allocations: 363 kB / 0.8209 GB, free: 8.957 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.8362, allocations: 98.75 kB / 0.821 GB, free: 8.859 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.051e-05/0.8362, allocations: 0 / 0.821 GB, free: 8.859 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002008/0.8364, allocations: 362.7 kB / 0.8214 GB, free: 8.496 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.8367, allocations: 109.6 kB / 0.8215 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004886/0.8372, allocations: 397.1 kB / 0.8219 GB, free: 7.875 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000402/0.8376, allocations: 163.8 kB / 0.822 GB, free: 7.715 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.016e-06/0.8376, allocations: 4 kB / 0.822 GB, free: 7.711 MB / 0.5261 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009547/0.8385, allocations: 498.1 kB / 0.8225 GB, free: 7.219 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001834/0.8404, allocations: 3.482 MB / 0.8259 GB, free: 3.465 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.82e-05/0.8404, allocations: 8.625 kB / 0.8259 GB, free: 3.457 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.581e-05/0.8405, allocations: 16 kB / 0.8259 GB, free: 3.441 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003199/0.8408, allocations: 79.77 kB / 0.826 GB, free: 3.363 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.044e-05/0.8408, allocations: 25.55 kB / 0.826 GB, free: 3.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.8413, allocations: 39.69 kB / 0.826 GB, free: 3.301 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-05/0.8414, allocations: 35.98 kB / 0.8261 GB, free: 3.266 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.8414, allocations: 7.938 kB / 0.8261 GB, free: 3.258 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007782/0.8422, allocations: 400.6 kB / 0.8265 GB, free: 2.867 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.8422, allocations: 12.03 kB / 0.8265 GB, free: 2.855 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.8423, allocations: 23.89 kB / 0.8265 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.8425, allocations: 79.78 kB / 0.8266 GB, free: 2.754 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.032e-05/0.8426, allocations: 25.56 kB / 0.8266 GB, free: 2.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.843, allocations: 19.84 kB / 0.8266 GB, free: 2.711 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/0.843, allocations: 35.98 kB / 0.8267 GB, free: 2.676 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 56 ($PRE.THold.enableFire,$PRE.TOn.enableFire,$PRE.TDischarge.enableFire,$PRE.TOff.enableFire,$PRE.off.oldActive,off.oldActive,$PRE.charge.oldActive,charge.oldActive,$PRE.discharge.oldActive,discharge.oldActive,$PRE.hold.oldActive,hold.oldActive,off.outPort[1].checkOneDelayedTransitionPerLoop,discharge.outPort[1].checkOneDelayedTransitionPerLoop,off.node.resume,off.node.suspend,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$PRE.off.newActive,off.newActive,off.activePort,THold.enableFire,THold.conditionPort,$PRE.charge.newActive,charge.newActive,charge.inport_fire,charge.activePort,TOn.enableFire,TOn.conditionPort,$PRE.discharge.newActive,discharge.newActive,discharge.outport_fire,discharge.activePort,hold.active,$PRE.hold.newActive,hold.newActive,hold.inport_fire,hold.outport_fire,TDischarge.enableFire,TDischarge.conditionPort,TOff.enableFire,TOff.conditionPort,hold.inPort[1].checkUnaryConnection,TOn.outPort.checkOneDelayedTransitionPerLoop,charge.outPort[1].checkOneDelayedTransitionPerLoop,hold.outPort[1].checkOneDelayedTransitionPerLoop,off.inPort[1].checkUnaryConnection,discharge.inPort[1].checkUnaryConnection,charge.inPort[1].checkUnaryConnection,TOff.condition,TDischarge.condition,TOn.condition,THold.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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.0002158/0.8432, allocations: 161.3 kB / 0.8268 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.8434, allocations: 43.44 kB / 0.8269 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006325/0.844, allocations: 272.8 kB / 0.8271 GB, free: 2.199 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.844, allocations: 4 kB / 0.8271 GB, free: 2.195 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.844, allocations: 0 / 0.8271 GB, free: 2.195 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.8441, allocations: 3.984 kB / 0.8271 GB, free: 2.191 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009404/0.845, allocations: 496.3 kB / 0.8276 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.845, allocations: 4.031 kB / 0.8276 GB, free: 1.656 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000182/0.8452, allocations: 31.91 kB / 0.8276 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.834e-06/0.8452, allocations: 0 / 0.8276 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.363e-05/0.8453, allocations: 8 kB / 0.8276 GB, free: 1.617 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.8453, allocations: 3.938 kB / 0.8276 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.8453, allocations: 0 / 0.8276 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007883/0.8461, allocations: 418.8 kB / 0.828 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.8463, allocations: 144.4 kB / 0.8282 GB, free: 1.016 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.019e-05/0.8464, allocations: 8 kB / 0.8282 GB, free: 1.008 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.8466, allocations: 11.92 kB / 0.8282 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.8467, allocations: 27.95 kB / 0.8282 GB, free: 0.9688 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/0.8468, allocations: 15.98 kB / 0.8282 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003197/0.8471, allocations: 239.2 kB / 0.8285 GB, free: 0.7227 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001322/0.8484, allocations: 223.4 kB / 0.8287 GB, free: 0.5039 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 27 ($whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.newActive,off.oldActive,off.activePort,THold.enableFire,THold.conditionPort,charge.newActive,charge.oldActive,charge.inport_fire,charge.activePort,TOn.enableFire,TOn.conditionPort,discharge.newActive,discharge.oldActive,discharge.outport_fire,discharge.activePort,hold.active,hold.newActive,hold.oldActive,hold.inport_fire,hold.outport_fire,TDischarge.enableFire,TDischarge.conditionPort,TOff.enableFire,TOff.conditionPort) * Number of discrete states: 6 (off.newActive,charge.newActive,discharge.newActive,hold.newActive,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 35 * 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.0003552/0.8488, allocations: 125.2 kB / 0.8288 GB, free: 384 kB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001325/0.8501, allocations: 0.5835 MB / 0.8294 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.8501, allocations: 0 / 0.8294 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.8504, allocations: 124.2 kB / 0.8295 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.851, allocations: 80.81 kB / 0.8296 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002591/0.8536, allocations: 0.7719 MB / 0.8303 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.8548, allocations: 1.016 MB / 0.8313 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of SimCode: time 1.513e-06/0.8548, allocations: 0 / 0.8313 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of Templates: time 0.01759/0.8724, allocations: 6.607 MB / 0.8378 GB, free: 7.203 MB / 0.5417 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)