Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo): time 0.8442/0.8442, allocations: 132.4 MB / 139.9 MB, free: 2.812 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001279/0.001279, allocations: 176.6 kB / 171.8 MB, free: 4.934 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.628/1.628, allocations: 170.6 MB / 374.2 MB, free: 208 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001531/0.001531, allocations: 115 kB / 444.8 MB, free: 14.18 MB / 314.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.1746/0.1747, allocations: 73.4 MB / 0.6666 GB, free: 15.66 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6054/0.7801, allocations: 104.4 MB / 0.7686 GB, free: 11.27 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003208/0.7805, allocations: 91.92 kB / 0.7686 GB, free: 11.18 MB / 474.7 MB [/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/Examples/ChillerPlant/BaseClasses/Controls/BatteryControl.mo:163:3-166:27:writable] Warning: connect(y, y) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.02253/0.803, allocations: 9.075 MB / 0.7775 GB, free: 2.09 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.8031, allocations: 0 / 0.7775 GB, free: 2.09 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.943e-05/0.8031, allocations: 19.98 kB / 0.7775 GB, free: 2.07 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001066/0.8042, allocations: 0.6923 MB / 0.7782 GB, free: 1.324 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.8042, allocations: 12.03 kB / 0.7782 GB, free: 1.312 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.8044, allocations: 67.2 kB / 0.7783 GB, free: 1.246 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006789/0.8051, allocations: 429.3 kB / 0.7787 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.8051, allocations: 20 kB / 0.7787 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.778e-05/0.8052, allocations: 39.98 kB / 0.7787 GB, free: 0.7305 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008026/0.806, allocations: 450.5 kB / 0.7792 GB, free: 300 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.807, allocations: 0.6423 MB / 0.7798 GB, free: 15.59 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.8071, allocations: 0 / 0.7798 GB, free: 15.59 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.8071, allocations: 3.938 kB / 0.7798 GB, free: 15.58 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.322e-05/0.8072, allocations: 29.31 kB / 0.7798 GB, free: 15.55 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003191/0.8104, allocations: 2.733 MB / 0.7825 GB, free: 12.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003815/0.8108, allocations: 247.2 kB / 0.7827 GB, free: 12.41 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.8109, allocations: 105.4 kB / 0.7828 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.811, allocations: 4.281 kB / 0.7828 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000277/0.8113, allocations: 175.4 kB / 0.783 GB, free: 12.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=36): time 1.803e-06/0.8113, allocations: 0 / 0.783 GB, free: 12.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=36): time 0.0006059/0.8119, allocations: 269 kB / 0.7833 GB, free: 11.85 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/0.812, allocations: 114.7 kB / 0.7834 GB, free: 11.71 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.8123, allocations: 305.7 kB / 0.7837 GB, free: 11.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.8124, allocations: 37.7 kB / 0.7837 GB, free: 11.37 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.8126, allocations: 268.3 kB / 0.784 GB, free: 11.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.8127, allocations: 82.98 kB / 0.784 GB, free: 11.02 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/0.8128, allocations: 0 / 0.784 GB, free: 11.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.8129, allocations: 346.8 kB / 0.7844 GB, free: 10.67 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.8131, allocations: 121.5 kB / 0.7845 GB, free: 10.55 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003671/0.8135, allocations: 333.4 kB / 0.7848 GB, free: 10.14 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.8139, allocations: 167.8 kB / 0.785 GB, free: 9.973 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.8139, allocations: 0 / 0.785 GB, free: 9.973 MB / 490.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007314/0.8146, allocations: 452.1 kB / 0.7854 GB, free: 9.523 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.8146, allocations: 10.88 kB / 0.7854 GB, free: 9.516 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.8147, allocations: 4 kB / 0.7854 GB, free: 9.512 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.887e-05/0.8147, allocations: 19.95 kB / 0.7854 GB, free: 9.492 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.8149, allocations: 55.78 kB / 0.7855 GB, free: 9.438 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.8149, allocations: 8 kB / 0.7855 GB, free: 9.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.8152, allocations: 39.81 kB / 0.7855 GB, free: 9.391 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.439e-05/0.8152, allocations: 28 kB / 0.7855 GB, free: 9.363 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 64 ($PRE.con.T1.enableFire,$PRE.con.T3.enableFire,$PRE.con.T2.enableFire,$PRE.con.T4.enableFire,$PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.multiSwitch1.u[3],$PRE.con.off.oldActive,con.off.oldActive,$PRE.con.charge.oldActive,con.charge.oldActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.off.node.resume,con.off.node.suspend,$whenCondition2,$whenCondition1,con.off.outPort[2].available,$PRE.con.off.newActive,con.off.newActive,con.off.inport_fire,con.off.outport_fire,con.T1.fire,con.T1.enableFire,$PRE.con.T1.t_start,con.T1.t_start,con.T1.conditionPort,$PRE.con.charge.newActive,con.charge.newActive,con.charge.inport_fire,con.charge.outport_fire,con.T3.enableFire,con.T3.conditionPort,$PRE.con.discharge.newActive,con.discharge.newActive,con.discharge.inport_fire,con.discharge.outport_fire,con.and1.u1,con.and1.u2,con.T2.fire,con.T2.enableFire,$PRE.con.T2.t_start,con.T2.t_start,con.T2.conditionPort,con.and2.u2,con.T4.enableFire,con.T4.conditionPort,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.u[3],con.multiSwitch1.firstActiveIndex,con.T2.outPort.checkOneDelayedTransitionPerLoop,con.T1.outPort.checkOneDelayedTransitionPerLoop,con.charge.outPort[1].checkOneDelayedTransitionPerLoop,con.discharge.outPort[1].checkOneDelayedTransitionPerLoop,con.off.outPort[2].checkOneDelayedTransitionPerLoop,con.off.inPort[2].checkUnaryConnection,con.off.inPort[1].checkUnaryConnection,con.discharge.inPort[1].checkUnaryConnection,con.charge.inPort[1].checkUnaryConnection,con.T4.condition,con.T2.condition,con.T3.condition,con.T1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.000179/0.8154, allocations: 168.7 kB / 0.7857 GB, free: 9.191 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.515e-05/0.8155, allocations: 31.62 kB / 0.7857 GB, free: 9.16 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005906/0.8161, allocations: 297 kB / 0.786 GB, free: 8.859 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.8161, allocations: 4 kB / 0.786 GB, free: 8.855 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.8161, allocations: 7.938 kB / 0.786 GB, free: 8.848 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.8161, allocations: 4 kB / 0.786 GB, free: 8.844 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.8173, allocations: 0.8036 MB / 0.7868 GB, free: 7.996 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.8173, allocations: 0 / 0.7868 GB, free: 7.996 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.331e-05/0.8174, allocations: 23.92 kB / 0.7868 GB, free: 7.973 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.8174, allocations: 0 / 0.7868 GB, free: 7.973 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.8175, allocations: 7.953 kB / 0.7869 GB, free: 7.965 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.8175, allocations: 0 / 0.7869 GB, free: 7.965 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.8175, allocations: 4 kB / 0.7869 GB, free: 7.961 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005047/0.818, allocations: 379.3 kB / 0.7872 GB, free: 7.574 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.8182, allocations: 140.7 kB / 0.7873 GB, free: 7.418 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/0.8182, allocations: 0 / 0.7873 GB, free: 7.418 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.8184, allocations: 27.92 kB / 0.7874 GB, free: 7.391 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.8185, allocations: 55.92 kB / 0.7874 GB, free: 7.336 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.8186, allocations: 11.94 kB / 0.7874 GB, free: 7.324 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001709/0.8188, allocations: 182 kB / 0.7876 GB, free: 7.145 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.8188, allocations: 0 / 0.7876 GB, free: 7.145 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0004256/0.8192, allocations: 71.98 kB / 0.7877 GB, free: 7.074 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 34 (con.T2.enableFire,con.T1.enableFire,$whenCondition2,$whenCondition1,con.off.outPort[2].available,con.off.newActive,con.off.oldActive,con.off.inport_fire,con.off.outport_fire,con.T1.fire,con.T1.t_start,con.T1.conditionPort,con.charge.newActive,con.charge.oldActive,con.charge.inport_fire,con.charge.outport_fire,con.T3.enableFire,con.T3.conditionPort,con.discharge.newActive,con.discharge.oldActive,con.discharge.inport_fire,con.discharge.outport_fire,con.and1.u1,con.and1.u2,con.T2.fire,con.T2.t_start,con.T2.conditionPort,con.and2.u2,con.T4.enableFire,con.T4.conditionPort,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.u[3],con.multiSwitch1.firstActiveIndex) * Number of discrete states: 3 (con.discharge.newActive,con.charge.newActive,con.off.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002428/0.8194, allocations: 138.3 kB / 0.7878 GB, free: 6.934 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005079/0.82, allocations: 335.5 kB / 0.7881 GB, free: 6.605 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.82, allocations: 3.938 kB / 0.7881 GB, free: 6.602 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.8202, allocations: 145.5 kB / 0.7883 GB, free: 6.461 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.8204, allocations: 28.77 kB / 0.7883 GB, free: 6.434 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.8218, allocations: 0.6406 MB / 0.7889 GB, free: 5.77 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/0.8223, allocations: 0.8749 MB / 0.7898 GB, free: 4.871 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0002012/0.8225, allocations: 67.23 kB / 0.7898 GB, free: 4.801 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.641e-05/0.8226, allocations: 39.42 kB / 0.7899 GB, free: 4.762 MB / 490.7 MB Notification: Performance of SimCode: time 2.61e-07/0.8226, allocations: 0 / 0.7899 GB, free: 4.762 MB / 490.7 MB Notification: Performance of Templates: time 0.007607/0.8302, allocations: 3.117 MB / 0.7929 GB, free: 1.668 MB / 490.7 MB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)