Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.368/1.368, allocations: 251.5 MB / 267.4 MB, free: 10.86 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.0009689/0.000969, allocations: 170 kB / 326.5 MB, free: 2.66 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205 MB / 0.5766 GB, free: 20.96 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.0008982/0.0008983, allocations: 87.89 kB / 0.6804 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 6.312 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1946, allocations: 105.4 MB / 0.8968 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002364/0.197, allocations: 2.016 MB / 0.8987 GB, free: 66.12 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1988, allocations: 1.025 MB / 0.8997 GB, free: 65.09 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003266/0.1992, allocations: 15.88 kB / 0.8997 GB, free: 65.07 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002362/0.1994, allocations: 39.66 kB / 0.8998 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000338/0.1998, allocations: 31.78 kB / 0.8998 GB, free: 65 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005969/0.2004, allocations: 239.7 kB / 0.9 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006278/0.201, allocations: 0.5739 MB / 0.9006 GB, free: 64.2 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005839/0.2016, allocations: 389.7 kB / 0.901 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.2019, allocations: 147.4 kB / 0.9011 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002268/0.2021, allocations: 171 kB / 0.9013 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.574e-05/0.2022, allocations: 20 kB / 0.9013 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.2023, allocations: 39.92 kB / 0.9013 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.2024, allocations: 91.66 kB / 0.9014 GB, free: 63.35 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.2026, allocations: 182.9 kB / 0.9016 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004588/0.203, allocations: 0.6267 MB / 0.9022 GB, free: 62.54 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.203, allocations: 7.984 kB / 0.9022 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.963e-06/0.2031, allocations: 0 / 0.9022 GB, free: 62.53 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.93e-05/0.2031, allocations: 0 / 0.9022 GB, free: 62.53 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.0009881/0.2041, allocations: 0.6286 MB / 0.9028 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.2041, allocations: 8.031 kB / 0.9028 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.2043, allocations: 48.38 kB / 0.9029 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/0.2046, allocations: 348.2 kB / 0.9032 GB, free: 61.42 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.2047, allocations: 45.69 kB / 0.9033 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.2048, allocations: 56.31 kB / 0.9033 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008664/0.2056, allocations: 0.5777 MB / 0.9039 GB, free: 60.72 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.2057, allocations: 3.938 kB / 0.9039 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.077e-05/0.2057, allocations: 23.98 kB / 0.9039 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.2057, allocations: 17 kB / 0.9039 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006563/0.2064, allocations: 435.7 kB / 0.9043 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.2083, allocations: 1.926 MB / 0.9062 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.2088, allocations: 366.2 kB / 0.9066 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002366/0.209, allocations: 184.8 kB / 0.9067 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.2091, allocations: 11.98 kB / 0.9068 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003253/0.2094, allocations: 222.2 kB / 0.907 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 2.465e-06/0.2094, allocations: 4 kB / 0.907 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.000729/0.2101, allocations: 481.2 kB / 0.9074 GB, free: 56.97 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.576e-05/0.2102, allocations: 67.09 kB / 0.9075 GB, free: 56.89 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.2104, allocations: 241.7 kB / 0.9077 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.2104, allocations: 49.7 kB / 0.9078 GB, free: 56.59 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2105, allocations: 220.7 kB / 0.908 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.202e-05/0.2106, allocations: 114.5 kB / 0.9081 GB, free: 56.26 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.432e-05/0.2107, allocations: 93.66 kB / 0.9082 GB, free: 56.16 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.57e-05/0.2108, allocations: 350.7 kB / 0.9085 GB, free: 55.81 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002441/0.211, allocations: 161.2 kB / 0.9087 GB, free: 55.65 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.2113, allocations: 298.5 kB / 0.9089 GB, free: 55.31 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004492/0.2117, allocations: 398.5 kB / 0.9093 GB, free: 54.87 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2118, allocations: 0 / 0.9093 GB, free: 54.87 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006603/0.2124, allocations: 0.5139 MB / 0.9098 GB, free: 54.35 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.2125, allocations: 8 kB / 0.9098 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.2125, allocations: 4 kB / 0.9098 GB, free: 54.34 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/0.2125, allocations: 4.469 kB / 0.9098 GB, free: 54.33 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.2127, allocations: 67.84 kB / 0.9099 GB, free: 54.27 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.2127, allocations: 7.984 kB / 0.9099 GB, free: 54.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002003/0.2129, allocations: 59.52 kB / 0.91 GB, free: 54.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/0.213, allocations: 28 kB / 0.91 GB, free: 54.17 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,con.t4.enableFire,con.t4.condition,con.t3.enableFire,con.t3.condition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002141/0.2132, allocations: 242.7 kB / 0.9102 GB, free: 53.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.838e-05/0.2132, allocations: 27.62 kB / 0.9103 GB, free: 53.9 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005967/0.2138, allocations: 427.5 kB / 0.9107 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2139, allocations: 0 / 0.9107 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2139, allocations: 0 / 0.9107 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.405e-05/0.2139, allocations: 120.6 kB / 0.9108 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.257e-05/0.214, allocations: 8 kB / 0.9108 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.2141, allocations: 27.92 kB / 0.9108 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001231/0.2142, allocations: 60.36 kB / 0.9109 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006362/0.2149, allocations: 0.4918 MB / 0.9114 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005179/0.2154, allocations: 0.5576 MB / 0.9119 GB, free: 52.17 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002265/0.2157, allocations: 199.4 kB / 0.9121 GB, free: 51.98 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.533e-05/0.2157, allocations: 140.2 kB / 0.9122 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of Backend: time 6.61e-07/0.2157, allocations: 0 / 0.9122 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007002/0.2164, allocations: 382.3 kB / 0.9126 GB, free: 51.46 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0009866/0.2174, allocations: 1.196 MB / 0.9138 GB, free: 50.22 MB / 0.6042 GB Notification: Performance of Templates: time 0.007362/0.2248, allocations: 4.209 MB / 0.9179 GB, free: 46.06 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)