Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.135/2.135, allocations: 251.1 MB / 266.7 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001324/0.001324, allocations: 182.1 kB / 326.3 MB, free: 2.871 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.213/2.213, allocations: 205.4 MB / 0.5772 GB, free: 20.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009138/0.0009138, allocations: 96.47 kB / 0.6817 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004781/0.0004783, allocations: 16.52 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1878, allocations: 106.3 MB / 0.8995 GB, free: 65.53 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002856/0.1907, allocations: 1.93 MB / 0.9014 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002012/0.1928, allocations: 0.975 MB / 0.9023 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.193, allocations: 4 kB / 0.9023 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.1932, allocations: 43.59 kB / 0.9024 GB, free: 62.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002558/0.1935, allocations: 39.72 kB / 0.9024 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006147/0.1941, allocations: 179.8 kB / 0.9026 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006544/0.1948, allocations: 0.5426 MB / 0.9031 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005831/0.1954, allocations: 364.4 kB / 0.9035 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.1956, allocations: 143.4 kB / 0.9036 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.1958, allocations: 167.2 kB / 0.9038 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.365e-05/0.1959, allocations: 20 kB / 0.9038 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.196, allocations: 31.98 kB / 0.9038 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.1962, allocations: 87.66 kB / 0.9039 GB, free: 61 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.053e-05/0.1963, allocations: 101.5 kB / 0.904 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006087/0.1969, allocations: 0.526 MB / 0.9045 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1969, allocations: 0 / 0.9045 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.943e-06/0.1969, allocations: 0 / 0.9045 GB, free: 60.36 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.1969, allocations: 4 kB / 0.9045 GB, free: 60.36 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001228/0.1982, allocations: 0.6308 MB / 0.9051 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1982, allocations: 8.031 kB / 0.9051 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.1984, allocations: 48.38 kB / 0.9052 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004391/0.1988, allocations: 336.3 kB / 0.9055 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.427e-05/0.1989, allocations: 57.66 kB / 0.9056 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.199, allocations: 60.38 kB / 0.9056 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.2003, allocations: 0.5736 MB / 0.9062 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/0.2003, allocations: 7.938 kB / 0.9062 GB, free: 58.53 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.937e-05/0.2004, allocations: 24 kB / 0.9062 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.733e-05/0.2004, allocations: 17 kB / 0.9062 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.2016, allocations: 427.7 kB / 0.9066 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002852/0.2045, allocations: 1.938 MB / 0.9085 GB, free: 56.05 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007814/0.2053, allocations: 347.1 kB / 0.9089 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004093/0.2057, allocations: 184.8 kB / 0.909 GB, free: 55.52 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.054e-05/0.2058, allocations: 11.98 kB / 0.9091 GB, free: 55.51 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004933/0.2063, allocations: 226 kB / 0.9093 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 5.009e-06/0.2063, allocations: 0 / 0.9093 GB, free: 55.27 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.001234/0.2076, allocations: 482.5 kB / 0.9097 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.2076, allocations: 63.16 kB / 0.9098 GB, free: 54.72 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.2079, allocations: 241.7 kB / 0.91 GB, free: 54.48 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.851e-05/0.208, allocations: 49.7 kB / 0.9101 GB, free: 54.42 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.2081, allocations: 220.7 kB / 0.9103 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.2082, allocations: 114.5 kB / 0.9104 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.622e-05/0.2083, allocations: 8 kB / 0.9104 GB, free: 54.08 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.06e-05/0.2084, allocations: 346.8 kB / 0.9107 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.2088, allocations: 161.2 kB / 0.9109 GB, free: 53.58 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.2093, allocations: 292.6 kB / 0.9112 GB, free: 53.24 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004372/0.2098, allocations: 170.1 kB / 0.9113 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.2098, allocations: 8 kB / 0.9113 GB, free: 53.07 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001149/0.211, allocations: 0.4988 MB / 0.9118 GB, free: 52.56 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.211, allocations: 8 kB / 0.9118 GB, free: 52.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.211, allocations: 8.031 kB / 0.9118 GB, free: 52.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.2111, allocations: 4 kB / 0.9118 GB, free: 52.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003976/0.2115, allocations: 63.84 kB / 0.9119 GB, free: 52.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-05/0.2115, allocations: 7.938 kB / 0.9119 GB, free: 52.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003816/0.2119, allocations: 67.5 kB / 0.912 GB, free: 52.41 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.826e-05/0.212, allocations: 20 kB / 0.912 GB, free: 52.39 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0003482/0.2123, allocations: 238.8 kB / 0.9122 GB, free: 52.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.904e-05/0.2124, allocations: 27.62 kB / 0.9122 GB, free: 52.11 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.2135, allocations: 435.5 kB / 0.9127 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.2136, allocations: 0 / 0.9127 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.2136, allocations: 0 / 0.9127 GB, free: 51.68 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.148e-05/0.2136, allocations: 108.6 kB / 0.9128 GB, free: 51.56 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.754e-05/0.2137, allocations: 15.92 kB / 0.9128 GB, free: 51.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002752/0.214, allocations: 27.98 kB / 0.9128 GB, free: 51.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.2142, allocations: 64.33 kB / 0.9129 GB, free: 51.45 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001162/0.2154, allocations: 499.6 kB / 0.9133 GB, free: 50.95 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0009227/0.2163, allocations: 0.5576 MB / 0.9139 GB, free: 50.38 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004336/0.2168, allocations: 191.4 kB / 0.9141 GB, free: 50.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001317/0.2169, allocations: 146.9 kB / 0.9142 GB, free: 50.05 MB / 0.6042 GB Notification: Performance of Backend: time 7.12e-07/0.2169, allocations: 3.938 kB / 0.9142 GB, free: 50.05 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001139/0.2181, allocations: 374.5 kB / 0.9146 GB, free: 49.67 MB / 0.6042 GB Notification: Performance of SimCode: time 0.001461/0.2196, allocations: 1.158 MB / 0.9157 GB, free: 48.47 MB / 0.6042 GB Notification: Performance of Templates: time 0.01184/0.2314, allocations: 4.035 MB / 0.9196 GB, free: 44.47 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)