Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 194.4 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.318/1.318, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.661/1.661, allocations: 292.2 MB / 0.5485 GB, free: 13.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002203, allocations: 66.94 kB / 0.671 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2089, allocations: 114.5 MB / 0.7829 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003684/0.2126, allocations: 2.37 MB / 0.7852 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001718/0.2144, allocations: 0.9905 MB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002509/0.2147, allocations: 11.94 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002189/0.2149, allocations: 39.66 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003002/0.2152, allocations: 39.72 kB / 0.7862 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006058/0.2158, allocations: 247.7 kB / 0.7865 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007417/0.2166, allocations: 0.6324 MB / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006588/0.2172, allocations: 464.5 kB / 0.7875 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003209/0.2176, allocations: 215.3 kB / 0.7877 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003277/0.2179, allocations: 235 kB / 0.788 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.218, allocations: 64 kB / 0.788 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001386/0.2182, allocations: 87.94 kB / 0.7881 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.2183, allocations: 147.6 kB / 0.7882 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.2186, allocations: 242.9 kB / 0.7885 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.2193, allocations: 0.7052 MB / 0.7892 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2193, allocations: 0 / 0.7892 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2193, allocations: 4 kB / 0.7892 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.436e-05/0.2193, allocations: 0 / 0.7892 GB, free: 7.406 MB / 0.6075 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.001212/0.2206, allocations: 0.7242 MB / 0.7899 GB, free: 6.637 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2206, allocations: 8.031 kB / 0.7899 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.2207, allocations: 52.38 kB / 0.7899 GB, free: 6.578 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.2211, allocations: 336.3 kB / 0.7902 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.926e-05/0.2212, allocations: 45.69 kB / 0.7903 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.049e-05/0.2213, allocations: 64.38 kB / 0.7904 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009215/0.2222, allocations: 0.5699 MB / 0.7909 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.2222, allocations: 7.938 kB / 0.7909 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.383e-05/0.2223, allocations: 19.98 kB / 0.7909 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-05/0.2223, allocations: 25 kB / 0.791 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007105/0.223, allocations: 423.7 kB / 0.7914 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.2251, allocations: 1.93 MB / 0.7933 GB, free: 3.02 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006396/0.2258, allocations: 354.1 kB / 0.7936 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.226, allocations: 188.8 kB / 0.7938 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.277e-05/0.2261, allocations: 4 kB / 0.7938 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003745/0.2265, allocations: 233.9 kB / 0.794 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=46): time 3.817e-06/0.2265, allocations: 3.984 kB / 0.794 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=46): time 0.0008521/0.2274, allocations: 470.6 kB / 0.7944 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.2274, allocations: 67.14 kB / 0.7945 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.2276, allocations: 241.7 kB / 0.7947 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.384e-05/0.2277, allocations: 53.69 kB / 0.7948 GB, free: 1.383 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.2278, allocations: 216.7 kB / 0.795 GB, free: 1.164 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.483e-05/0.2279, allocations: 114.5 kB / 0.7951 GB, free: 1.051 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001692/0.2281, allocations: 142.3 kB / 0.7952 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.2282, allocations: 346.7 kB / 0.7956 GB, free: 0.5586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002698/0.2285, allocations: 157.2 kB / 0.7957 GB, free: 416 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.2289, allocations: 296.6 kB / 0.796 GB, free: 68 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000545/0.2294, allocations: 406.5 kB / 0.7964 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2294, allocations: 4 kB / 0.7964 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007862/0.2302, allocations: 0.5061 MB / 0.7969 GB, free: 15.1 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2302, allocations: 4 kB / 0.7969 GB, free: 15.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.2303, allocations: 4.469 kB / 0.7969 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.2303, allocations: 8 kB / 0.7969 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.2305, allocations: 67.83 kB / 0.797 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.2305, allocations: 8 kB / 0.797 GB, free: 15.01 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002113/0.2308, allocations: 55.52 kB / 0.797 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.247e-05/0.2308, allocations: 27.98 kB / 0.7971 GB, free: 14.93 MB / 0.6231 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.0002544/0.2311, allocations: 235.4 kB / 0.7973 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.453e-05/0.2311, allocations: 27.62 kB / 0.7973 GB, free: 14.66 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007155/0.2319, allocations: 423.5 kB / 0.7977 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.2319, allocations: 8 kB / 0.7977 GB, free: 14.24 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.2319, allocations: 0 / 0.7977 GB, free: 14.24 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.2319, allocations: 3.984 kB / 0.7977 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.2334, allocations: 1.134 MB / 0.7988 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.2334, allocations: 0 / 0.7988 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.2336, allocations: 35.86 kB / 0.7989 GB, free: 12.99 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.2336, allocations: 7.938 kB / 0.7989 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.2336, allocations: 11.98 kB / 0.7989 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.2336, allocations: 0 / 0.7989 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2336, allocations: 0 / 0.7989 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006417/0.2343, allocations: 0.4958 MB / 0.7994 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.085e-05/0.2343, allocations: 108.6 kB / 0.7995 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/0.2344, allocations: 8 kB / 0.7995 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.2346, allocations: 27.97 kB / 0.7995 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.2347, allocations: 64.36 kB / 0.7996 GB, free: 12.24 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.2348, allocations: 12 kB / 0.7996 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 9.943e-05/0.2349, allocations: 144.2 kB / 0.7997 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2349, allocations: 0 / 0.7997 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004123/0.2353, allocations: 107.6 kB / 0.7998 GB, free: 11.98 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$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,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002051/0.2355, allocations: 147.1 kB / 0.8 GB, free: 11.83 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008795/0.2364, allocations: 481.6 kB / 0.8004 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2364, allocations: 0 / 0.8004 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.2367, allocations: 214.4 kB / 0.8006 GB, free: 11.15 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.2371, allocations: 52.64 kB / 0.8007 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.2383, allocations: 0.8898 MB / 0.8015 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.2386, allocations: 0.8268 MB / 0.8024 GB, free: 9.336 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001992/0.2388, allocations: 63.25 kB / 0.8024 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.2389, allocations: 43.42 kB / 0.8025 GB, free: 9.23 MB / 0.6231 GB Notification: Performance of SimCode: time 4.01e-07/0.2389, allocations: 0 / 0.8025 GB, free: 9.23 MB / 0.6231 GB Notification: Performance of Templates: time 0.007731/0.2467, allocations: 4.179 MB / 0.8065 GB, free: 5.078 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)