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.7874/0.7874, allocations: 132.4 MB / 139.9 MB, free: 15.38 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.001018/0.001018, allocations: 169.6 kB / 171.8 MB, free: 2.047 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.805/1.805, allocations: 170.6 MB / 374.2 MB, free: 15.76 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.001713/0.001713, allocations: 127.2 kB / 444.8 MB, free: 9.277 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.5399/0.5399, allocations: 73.4 MB / 0.6666 GB, free: 46.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1749/0.715, allocations: 104.4 MB / 0.7685 GB, free: 448 kB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004277/0.7155, allocations: 92.62 kB / 0.7686 GB, free: 356 kB / 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.02472/0.7403, allocations: 9.085 MB / 0.7775 GB, free: 7.352 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.7403, allocations: 3.938 kB / 0.7775 GB, free: 7.348 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.185e-05/0.7404, allocations: 20 kB / 0.7775 GB, free: 7.328 MB / 490.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.001558/0.7419, allocations: 0.6913 MB / 0.7782 GB, free: 6.586 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.742, allocations: 8.031 kB / 0.7782 GB, free: 6.578 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002535/0.7423, allocations: 71.17 kB / 0.7783 GB, free: 6.508 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000785/0.7431, allocations: 433.6 kB / 0.7787 GB, free: 6.051 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.945e-05/0.7431, allocations: 20 kB / 0.7787 GB, free: 6.031 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.7432, allocations: 36 kB / 0.7787 GB, free: 5.996 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001046/0.7443, allocations: 447.8 kB / 0.7792 GB, free: 5.562 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.7456, allocations: 0.6463 MB / 0.7798 GB, free: 4.852 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.7457, allocations: 3.938 kB / 0.7798 GB, free: 4.848 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.611e-05/0.7458, allocations: 4 kB / 0.7798 GB, free: 4.844 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-05/0.7458, allocations: 21.31 kB / 0.7798 GB, free: 4.824 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004012/0.7499, allocations: 2.731 MB / 0.7825 GB, free: 1.945 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003796/0.7503, allocations: 239.3 kB / 0.7827 GB, free: 1.699 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.7504, allocations: 105.4 kB / 0.7828 GB, free: 1.594 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.549e-05/0.7505, allocations: 8.281 kB / 0.7828 GB, free: 1.586 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002788/0.7508, allocations: 179.4 kB / 0.783 GB, free: 1.398 MB / 490.7 MB Notification: Performance of pre-optimization done (n=36): time 2.705e-06/0.7508, allocations: 3.938 kB / 0.783 GB, free: 1.395 MB / 490.7 MB Notification: Performance of matching and sorting (n=36): time 0.0005977/0.7514, allocations: 277 kB / 0.7833 GB, free: 1.117 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.7515, allocations: 110.7 kB / 0.7834 GB, free: 0.9844 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.7519, allocations: 302.6 kB / 0.7837 GB, free: 0.6875 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.689e-05/0.7519, allocations: 33.7 kB / 0.7837 GB, free: 0.6484 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.7521, allocations: 272.4 kB / 0.784 GB, free: 388 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.265e-05/0.7522, allocations: 75.06 kB / 0.784 GB, free: 312 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.686e-05/0.7523, allocations: 0 / 0.784 GB, free: 312 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.7524, allocations: 346.8 kB / 0.7844 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002198/0.7527, allocations: 129.5 kB / 0.7845 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/0.753, allocations: 328.9 kB / 0.7848 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003794/0.7534, allocations: 159.9 kB / 0.7849 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.7534, allocations: 12.97 kB / 0.785 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008814/0.7543, allocations: 449.5 kB / 0.7854 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.7544, allocations: 8 kB / 0.7854 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.7544, allocations: 8 kB / 0.7854 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/0.7544, allocations: 8 kB / 0.7854 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/0.7546, allocations: 55.84 kB / 0.7855 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.7546, allocations: 19.88 kB / 0.7855 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.755, allocations: 32.2 kB / 0.7855 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-05/0.755, allocations: 31.98 kB / 0.7855 GB, free: 14.65 MB / 0.4948 GB 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.0001831/0.7552, allocations: 160.2 kB / 0.7857 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.218e-05/0.7553, allocations: 31.62 kB / 0.7857 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006034/0.7559, allocations: 312.2 kB / 0.786 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.7559, allocations: 4 kB / 0.786 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.7559, allocations: 0 / 0.786 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.756, allocations: 3.953 kB / 0.786 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.7572, allocations: 0.8036 MB / 0.7868 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.7573, allocations: 0 / 0.7868 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.201e-05/0.7574, allocations: 19.98 kB / 0.7868 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.7574, allocations: 4 kB / 0.7868 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.7574, allocations: 0 / 0.7868 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.526e-06/0.7574, allocations: 13.16 kB / 0.7869 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/0.7574, allocations: 7.984 kB / 0.7869 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005957/0.758, allocations: 371.3 kB / 0.7872 GB, free: 12.87 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.7582, allocations: 136.7 kB / 0.7873 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/0.7583, allocations: 7.984 kB / 0.7874 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.7585, allocations: 27.97 kB / 0.7874 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.7586, allocations: 55.88 kB / 0.7874 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.138e-05/0.7587, allocations: 8 kB / 0.7874 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001958/0.7589, allocations: 185.3 kB / 0.7876 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7589, allocations: 0 / 0.7876 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0005055/0.7594, allocations: 68 kB / 0.7877 GB, free: 12.38 MB / 0.4948 GB 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.0003029/0.7597, allocations: 140.5 kB / 0.7878 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005926/0.7603, allocations: 341 kB / 0.7881 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.7603, allocations: 128 / 0.7881 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.7606, allocations: 139.9 kB / 0.7883 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.7608, allocations: 28.77 kB / 0.7883 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.7625, allocations: 0.6302 MB / 0.7889 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005669/0.7631, allocations: 0.8749 MB / 0.7898 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002419/0.7633, allocations: 71.2 kB / 0.7898 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.658e-05/0.7634, allocations: 39.42 kB / 0.7899 GB, free: 10.08 MB / 0.4948 GB Notification: Performance of SimCode: time 2.745e-06/0.7635, allocations: 4 kB / 0.7899 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of Templates: time 0.009342/0.7728, allocations: 3.11 MB / 0.7929 GB, free: 7.031 MB / 0.4948 GB 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)