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.9283/0.9283, allocations: 133.7 MB / 148.6 MB, free: 13.67 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.001346/0.001346, allocations: 182.6 kB / 180.9 MB, free: 15.08 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.992/1.992, allocations: 170.7 MB / 383.7 MB, free: 16.11 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.001859/0.001859, allocations: 120 kB / 454.6 MB, free: 9.711 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.2417/0.2423, allocations: 73.41 MB / 0.6812 GB, free: 5.562 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.758/1, allocations: 105.1 MB / 0.7838 GB, free: 22.21 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/1.001, allocations: 91.31 kB / 0.7839 GB, free: 22.18 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.02144/1.022, allocations: 9.185 MB / 0.7929 GB, free: 16.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.022, allocations: 0 / 0.7929 GB, free: 16.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.171e-05/1.022, allocations: 23.98 kB / 0.7929 GB, free: 16.21 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.001/1.023, allocations: 0.7291 MB / 0.7936 GB, free: 15.48 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/1.023, allocations: 12.56 kB / 0.7936 GB, free: 15.47 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/1.023, allocations: 67.25 kB / 0.7937 GB, free: 15.41 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006059/1.024, allocations: 432.3 kB / 0.7941 GB, free: 15.03 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.731e-05/1.024, allocations: 50.48 kB / 0.7942 GB, free: 15 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.268e-05/1.024, allocations: 60.81 kB / 0.7942 GB, free: 14.96 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/1.025, allocations: 0.7507 MB / 0.795 GB, free: 14.37 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/1.025, allocations: 0 / 0.795 GB, free: 14.37 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.619e-05/1.025, allocations: 27.78 kB / 0.795 GB, free: 14.36 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/1.025, allocations: 24.56 kB / 0.795 GB, free: 14.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007573/1.026, allocations: 0.5066 MB / 0.7955 GB, free: 14.01 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/1.029, allocations: 2.863 MB / 0.7983 GB, free: 11.5 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004034/1.029, allocations: 265.7 kB / 0.7986 GB, free: 11.31 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.901e-05/1.029, allocations: 8.266 kB / 0.7986 GB, free: 11.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000281/1.03, allocations: 185.2 kB / 0.7987 GB, free: 11.16 MB / 490.7 MB Notification: Performance of pre-optimization done (n=36): time 1.713e-06/1.03, allocations: 0 / 0.7987 GB, free: 11.16 MB / 490.7 MB Notification: Performance of matching and sorting (n=36): time 0.0006959/1.03, allocations: 429.2 kB / 0.7992 GB, free: 10.75 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.721e-05/1.03, allocations: 110.8 kB / 0.7993 GB, free: 10.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/1.031, allocations: 313.9 kB / 0.7996 GB, free: 10.31 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/1.031, allocations: 45.69 kB / 0.7996 GB, free: 10.26 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/1.031, allocations: 268.4 kB / 0.7999 GB, free: 9.988 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.585e-05/1.031, allocations: 83.09 kB / 0.7999 GB, free: 9.906 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.888e-05/1.031, allocations: 12 kB / 0.7999 GB, free: 9.895 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.223e-05/1.031, allocations: 350.8 kB / 0.8003 GB, free: 9.543 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/1.031, allocations: 145.2 kB / 0.8004 GB, free: 9.402 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/1.032, allocations: 360.2 kB / 0.8008 GB, free: 8.961 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/1.032, allocations: 179.7 kB / 0.8009 GB, free: 8.785 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/1.032, allocations: 4 kB / 0.8009 GB, free: 8.781 MB / 490.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006639/1.032, allocations: 0.5149 MB / 0.8014 GB, free: 8.262 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/1.033, allocations: 11.98 kB / 0.8015 GB, free: 8.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/1.033, allocations: 4 kB / 0.8015 GB, free: 8.246 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.905e-05/1.033, allocations: 19.95 kB / 0.8015 GB, free: 8.227 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/1.033, allocations: 48.38 kB / 0.8015 GB, free: 8.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/1.033, allocations: 19.94 kB / 0.8015 GB, free: 8.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/1.033, allocations: 47.91 kB / 0.8016 GB, free: 8.113 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.694e-05/1.033, allocations: 27.94 kB / 0.8016 GB, free: 8.086 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 () * Number of clocked 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.0003215/1.033, allocations: 273.6 kB / 0.8019 GB, free: 7.809 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.229e-05/1.034, allocations: 27.62 kB / 0.8019 GB, free: 7.781 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006014/1.034, allocations: 343.2 kB / 0.8022 GB, free: 7.441 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/1.034, allocations: 4 kB / 0.8022 GB, free: 7.438 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/1.034, allocations: 3.953 kB / 0.8022 GB, free: 7.434 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/1.034, allocations: 3.984 kB / 0.8022 GB, free: 7.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/1.035, allocations: 0.9359 MB / 0.8032 GB, free: 6.438 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/1.035, allocations: 0 / 0.8032 GB, free: 6.438 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.634e-05/1.035, allocations: 19.92 kB / 0.8032 GB, free: 6.418 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/1.035, allocations: 3.953 kB / 0.8032 GB, free: 6.414 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/1.035, allocations: 11.98 kB / 0.8032 GB, free: 6.402 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/1.035, allocations: 4 kB / 0.8032 GB, free: 6.398 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.035, allocations: 0 / 0.8032 GB, free: 6.398 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004636/1.036, allocations: 423.4 kB / 0.8036 GB, free: 5.969 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/1.036, allocations: 136.6 kB / 0.8037 GB, free: 5.816 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.758e-05/1.036, allocations: 15.94 kB / 0.8037 GB, free: 5.801 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/1.036, allocations: 31.98 kB / 0.8038 GB, free: 5.77 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/1.036, allocations: 51.92 kB / 0.8038 GB, free: 5.719 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.041e-05/1.037, allocations: 15.98 kB / 0.8038 GB, free: 5.703 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001701/1.037, allocations: 190 kB / 0.804 GB, free: 5.516 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.037, allocations: 0 / 0.804 GB, free: 5.516 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0004511/1.037, allocations: 91.98 kB / 0.8041 GB, free: 5.426 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) * Number of clocked states: 0 () * 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.0003184/1.037, allocations: 147.2 kB / 0.8042 GB, free: 5.273 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005877/1.038, allocations: 384.9 kB / 0.8046 GB, free: 4.898 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.038, allocations: 0 / 0.8046 GB, free: 4.898 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002218/1.038, allocations: 159.8 kB / 0.8048 GB, free: 4.742 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/1.039, allocations: 32.2 kB / 0.8048 GB, free: 4.715 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/1.041, allocations: 1.004 MB / 0.8058 GB, free: 3.691 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/1.041, allocations: 0.8717 MB / 0.8066 GB, free: 2.793 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0002003/1.041, allocations: 75.16 kB / 0.8067 GB, free: 2.723 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.142e-05/1.041, allocations: 39.42 kB / 0.8067 GB, free: 2.684 MB / 490.7 MB Notification: Performance of SimCode: time 3.41e-07/1.041, allocations: 0 / 0.8067 GB, free: 2.684 MB / 490.7 MB Notification: Performance of Templates: time 0.008529/1.05, allocations: 3.259 MB / 0.8099 GB, free: 15.46 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)