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.7239/0.7239, allocations: 132.3 MB / 144.9 MB, free: 10.68 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.001041/0.001041, allocations: 174.6 kB / 176.9 MB, free: 2.188 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.428/1.428, allocations: 170.5 MB / 379.3 MB, free: 11.85 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.001597/0.001597, allocations: 103.8 kB / 450 MB, free: 5.75 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.4688/0.4689, allocations: 73.39 MB / 0.6736 GB, free: 47.67 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.6022, allocations: 105 MB / 0.7762 GB, free: 11.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.6025, allocations: 94.28 kB / 0.7763 GB, free: 11.54 MB / 490.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.02087/0.6234, allocations: 9.141 MB / 0.7852 GB, free: 2.441 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.6234, allocations: 4 kB / 0.7852 GB, free: 2.438 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.6235, allocations: 19.98 kB / 0.7852 GB, free: 2.418 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.0009513/0.6244, allocations: 0.6896 MB / 0.7859 GB, free: 1.68 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.6245, allocations: 8.031 kB / 0.7859 GB, free: 1.672 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.6246, allocations: 71.23 kB / 0.786 GB, free: 1.602 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006359/0.6253, allocations: 432.8 kB / 0.7864 GB, free: 1.145 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.959e-05/0.6253, allocations: 56.66 kB / 0.7864 GB, free: 1.094 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-05/0.6254, allocations: 60 kB / 0.7865 GB, free: 1.035 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.6265, allocations: 0.7341 MB / 0.7872 GB, free: 248 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.6265, allocations: 0 / 0.7872 GB, free: 248 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.597e-05/0.6266, allocations: 24 kB / 0.7872 GB, free: 224 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.584e-05/0.6266, allocations: 25 kB / 0.7873 GB, free: 196 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007911/0.6274, allocations: 0.4891 MB / 0.7877 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002873/0.6303, allocations: 2.857 MB / 0.7905 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.6307, allocations: 251.6 kB / 0.7908 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001646/0.6308, allocations: 125.4 kB / 0.7909 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.482e-05/0.6309, allocations: 12.2 kB / 0.7909 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002724/0.6312, allocations: 179.6 kB / 0.7911 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=36): time 2.295e-06/0.6312, allocations: 4 kB / 0.7911 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=36): time 0.0004767/0.6317, allocations: 284.7 kB / 0.7914 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.381e-05/0.6317, allocations: 114.8 kB / 0.7915 GB, free: 11.68 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002825/0.632, allocations: 314.9 kB / 0.7918 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.6321, allocations: 41.69 kB / 0.7918 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001733/0.6323, allocations: 272.4 kB / 0.7921 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.547e-05/0.6323, allocations: 83.03 kB / 0.7921 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.6324, allocations: 12.84 kB / 0.7922 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.6325, allocations: 346.8 kB / 0.7925 GB, free: 10.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.6327, allocations: 137.5 kB / 0.7926 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003261/0.633, allocations: 349.5 kB / 0.7929 GB, free: 10.04 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002381/0.6333, allocations: 167.6 kB / 0.7931 GB, free: 9.871 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.6333, allocations: 4 kB / 0.7931 GB, free: 9.867 MB / 0.4948 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006798/0.634, allocations: 0.5037 MB / 0.7936 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.634, allocations: 7.938 kB / 0.7936 GB, free: 9.352 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.634, allocations: 8 kB / 0.7936 GB, free: 9.344 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.844e-05/0.6341, allocations: 18.39 kB / 0.7936 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.6343, allocations: 51.78 kB / 0.7937 GB, free: 9.277 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.6343, allocations: 8 kB / 0.7937 GB, free: 9.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.6345, allocations: 44.06 kB / 0.7937 GB, free: 9.227 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.108e-05/0.6346, allocations: 28 kB / 0.7938 GB, free: 9.199 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.0001461/0.6347, allocations: 180.7 kB / 0.7939 GB, free: 9.016 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.6348, allocations: 35.53 kB / 0.794 GB, free: 8.98 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005275/0.6353, allocations: 327 kB / 0.7943 GB, free: 8.66 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-06/0.6353, allocations: 7.953 kB / 0.7943 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6354, allocations: 0 / 0.7943 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.6354, allocations: 3.984 kB / 0.7943 GB, free: 8.648 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.6365, allocations: 0.9218 MB / 0.7952 GB, free: 7.672 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.6365, allocations: 0 / 0.7952 GB, free: 7.672 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.21e-05/0.6366, allocations: 19.92 kB / 0.7952 GB, free: 7.652 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.6366, allocations: 7.953 kB / 0.7952 GB, free: 7.645 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.6366, allocations: 15.98 kB / 0.7952 GB, free: 7.629 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.6366, allocations: 0 / 0.7952 GB, free: 7.629 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.6366, allocations: 0 / 0.7952 GB, free: 7.629 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004236/0.6371, allocations: 383.7 kB / 0.7956 GB, free: 7.238 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.6372, allocations: 140.6 kB / 0.7957 GB, free: 7.082 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.6372, allocations: 11.95 kB / 0.7957 GB, free: 7.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.6374, allocations: 31.97 kB / 0.7958 GB, free: 7.039 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.6376, allocations: 51.92 kB / 0.7958 GB, free: 6.988 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.751e-05/0.6376, allocations: 15.25 kB / 0.7958 GB, free: 6.977 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001586/0.6378, allocations: 187.1 kB / 0.796 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6378, allocations: 0 / 0.796 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000408/0.6382, allocations: 92.64 kB / 0.7961 GB, free: 6.703 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.0002235/0.6384, allocations: 154.2 kB / 0.7963 GB, free: 6.547 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005138/0.6389, allocations: 369.1 kB / 0.7966 GB, free: 6.188 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.639, allocations: 4.188 kB / 0.7966 GB, free: 6.184 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.6392, allocations: 150.5 kB / 0.7968 GB, free: 6.039 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.6394, allocations: 29.97 kB / 0.7968 GB, free: 6.008 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.6407, allocations: 0.6508 MB / 0.7974 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003884/0.6411, allocations: 0.871 MB / 0.7983 GB, free: 4.438 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001932/0.6413, allocations: 71.12 kB / 0.7983 GB, free: 4.371 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.442e-05/0.6414, allocations: 39.42 kB / 0.7984 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of SimCode: time 4.71e-07/0.6414, allocations: 4 kB / 0.7984 GB, free: 4.328 MB / 0.4948 GB Notification: Performance of Templates: time 0.007193/0.6486, allocations: 3.279 MB / 0.8016 GB, free: 1.117 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)