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.001049/0.001049, allocations: 105.2 kB / 16.35 MB, free: 5.879 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.0009991/0.0009991, allocations: 195.1 kB / 17.29 MB, free: 5.516 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.302/1.302, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.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.742/1.742, allocations: 292.3 MB / 0.5496 GB, free: 17.45 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.001429/0.001429, allocations: 59.91 kB / 0.6729 GB, free: 5.828 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2111, allocations: 114.6 MB / 0.7848 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003427/0.2146, allocations: 2.265 MB / 0.787 GB, free: 0.8633 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3735/0.5881, allocations: 0.9865 MB / 0.788 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004749/0.5887, allocations: 12.09 kB / 0.788 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002359/0.5889, allocations: 62.34 kB / 0.788 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002797/0.5893, allocations: 46.36 kB / 0.7881 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.5899, allocations: 282.3 kB / 0.7883 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005192/0.5904, allocations: 0.6298 MB / 0.789 GB, free: 46.55 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005032/0.5909, allocations: 470.6 kB / 0.7894 GB, free: 46.52 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.5911, allocations: 216.2 kB / 0.7896 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.5913, allocations: 223.7 kB / 0.7898 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.362e-05/0.5914, allocations: 67.78 kB / 0.7899 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.5916, allocations: 87.11 kB / 0.79 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.5917, allocations: 147.4 kB / 0.7901 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.5919, allocations: 246.9 kB / 0.7903 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005142/0.5924, allocations: 0.7292 MB / 0.7911 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.5924, allocations: 1.219 kB / 0.7911 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5924, allocations: 0 / 0.7911 GB, free: 46.27 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.311e-05/0.5925, allocations: 0 / 0.7911 GB, free: 46.27 MB / 0.6544 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.0009806/0.5934, allocations: 0.7242 MB / 0.7918 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.5935, allocations: 12.66 kB / 0.7918 GB, free: 45.81 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.632e-05/0.5936, allocations: 51.38 kB / 0.7918 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.5939, allocations: 339 kB / 0.7922 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.602e-05/0.594, allocations: 46.91 kB / 0.7922 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-05/0.5941, allocations: 58.58 kB / 0.7923 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007775/0.5949, allocations: 0.5823 MB / 0.7928 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.5949, allocations: 0 / 0.7928 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.5949, allocations: 19.75 kB / 0.7928 GB, free: 45.45 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.595, allocations: 21.5 kB / 0.7929 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006246/0.5956, allocations: 431.1 kB / 0.7933 GB, free: 45.44 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.5974, allocations: 1.903 MB / 0.7951 GB, free: 44.51 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004828/0.5979, allocations: 350.6 kB / 0.7955 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002428/0.5981, allocations: 189.8 kB / 0.7956 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 5.222e-05/0.5982, allocations: 5.062 kB / 0.7956 GB, free: 44.48 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003194/0.5985, allocations: 238.3 kB / 0.7959 GB, free: 44.42 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=46): time 1.964e-06/0.5985, allocations: 0 / 0.7959 GB, free: 44.42 MB / 0.6544 GB Notification: Performance of matching and sorting (n=46): time 0.0007576/0.5993, allocations: 478.5 kB / 0.7963 GB, free: 44.28 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.5993, allocations: 66.56 kB / 0.7964 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.5995, allocations: 243.5 kB / 0.7966 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.5996, allocations: 46.89 kB / 0.7967 GB, free: 44 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.5997, allocations: 221.9 kB / 0.7969 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.195e-05/0.5997, allocations: 108.7 kB / 0.797 GB, free: 43.75 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.5999, allocations: 140.3 kB / 0.7971 GB, free: 43.68 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.352e-05/0.6, allocations: 351.9 kB / 0.7975 GB, free: 43.35 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002583/0.6002, allocations: 166.7 kB / 0.7976 GB, free: 43.29 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.6006, allocations: 288.7 kB / 0.7979 GB, free: 43.09 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.601, allocations: 401.4 kB / 0.7983 GB, free: 42.84 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.6011, allocations: 3.453 kB / 0.7983 GB, free: 42.84 MB / 0.6544 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007079/0.6018, allocations: 0.4955 MB / 0.7988 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.6018, allocations: 11.52 kB / 0.7988 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.6018, allocations: 6.844 kB / 0.7988 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.6018, allocations: 6 kB / 0.7988 GB, free: 42.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.6021, allocations: 62.72 kB / 0.7988 GB, free: 42.64 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.6021, allocations: 11.56 kB / 0.7989 GB, free: 42.64 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002041/0.6023, allocations: 61.17 kB / 0.7989 GB, free: 42.61 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/0.6023, allocations: 25.16 kB / 0.7989 GB, free: 42.61 MB / 0.6544 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.localCondition,con.t3.enableFire,con.t3.localCondition,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.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,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.0001949/0.6025, allocations: 235.6 kB / 0.7992 GB, free: 42.43 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.6026, allocations: 28.38 kB / 0.7992 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000691/0.6033, allocations: 423.8 kB / 0.7996 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.6033, allocations: 6.594 kB / 0.7996 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.6033, allocations: 3.594 kB / 0.7996 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.6033, allocations: 1.406 kB / 0.7996 GB, free: 42.24 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.6047, allocations: 1.128 MB / 0.8007 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.6047, allocations: 0 / 0.8007 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.6049, allocations: 38.05 kB / 0.8007 GB, free: 41.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.6049, allocations: 4.562 kB / 0.8007 GB, free: 41.56 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.6049, allocations: 11.12 kB / 0.8008 GB, free: 41.56 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.6049, allocations: 0 / 0.8008 GB, free: 41.56 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.6049, allocations: 1.438 kB / 0.8008 GB, free: 41.56 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006204/0.6056, allocations: 0.4958 MB / 0.8012 GB, free: 41.29 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.6056, allocations: 116.6 kB / 0.8014 GB, free: 41.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.274e-05/0.6057, allocations: 10.36 kB / 0.8014 GB, free: 41.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.6058, allocations: 24.56 kB / 0.8014 GB, free: 41.16 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.606, allocations: 64.2 kB / 0.8014 GB, free: 41.14 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.606, allocations: 16.95 kB / 0.8015 GB, free: 41.14 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 9.091e-05/0.6061, allocations: 137.2 kB / 0.8016 GB, free: 41.04 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6062, allocations: 4 kB / 0.8016 GB, free: 41.04 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0004132/0.6066, allocations: 110.2 kB / 0.8017 GB, free: 41 MB / 0.6544 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.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$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.localActive,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.localCondition,con.t1.fire,con.t1.t_start,con.t2.localCondition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.localCondition,con.t3.enableFire,con.t4.localCondition,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.0002097/0.6068, allocations: 145.5 kB / 0.8018 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0007162/0.6075, allocations: 445.6 kB / 0.8023 GB, free: 40.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6075, allocations: 0 / 0.8023 GB, free: 40.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003555/0.6079, allocations: 219.8 kB / 0.8025 GB, free: 40.71 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.6083, allocations: 47.73 kB / 0.8025 GB, free: 40.69 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.6094, allocations: 0.7152 MB / 0.8032 GB, free: 40.29 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.6098, allocations: 0.8245 MB / 0.804 GB, free: 39.59 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0002144/0.61, allocations: 64.5 kB / 0.8041 GB, free: 39.58 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.6101, allocations: 44.89 kB / 0.8041 GB, free: 39.57 MB / 0.6544 GB Notification: Performance of SimCode: time 4.1e-07/0.6101, allocations: 0 / 0.8041 GB, free: 39.57 MB / 0.6544 GB Notification: Performance of Templates: time 0.01042/0.6205, allocations: 4.346 MB / 0.8084 GB, free: 39.39 MB / 0.6544 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 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)