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.001105/0.001105, allocations: 107.1 kB / 15.99 MB, free: 6.348 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.001064/0.001064, allocations: 190.9 kB / 16.91 MB, free: 6.184 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.387/1.387, allocations: 205.1 MB / 222.8 MB, free: 4.707 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.3 MB / 0.5492 GB, free: 13.66 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.001451/0.001452, allocations: 68.12 kB / 0.6717 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.28, allocations: 114.6 MB / 0.7835 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003689/0.2837, allocations: 2.362 MB / 0.7858 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.2854, allocations: 0.9905 MB / 0.7868 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001735/0.2856, allocations: 11.94 kB / 0.7868 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.2858, allocations: 35.66 kB / 0.7868 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.2861, allocations: 47.69 kB / 0.7869 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.2866, allocations: 243.8 kB / 0.7871 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005989/0.2872, allocations: 0.6363 MB / 0.7877 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005622/0.2878, allocations: 464.5 kB / 0.7882 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.2881, allocations: 215.3 kB / 0.7884 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000236/0.2883, allocations: 231 kB / 0.7886 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.576e-05/0.2884, allocations: 64 kB / 0.7887 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.2885, allocations: 91.98 kB / 0.7888 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.2887, allocations: 139.7 kB / 0.7889 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002245/0.2889, allocations: 246.8 kB / 0.7891 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005258/0.2895, allocations: 0.5811 MB / 0.7897 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.2895, allocations: 0 / 0.7897 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.114e-06/0.2895, allocations: 4 kB / 0.7897 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.246e-06/0.2895, allocations: 0 / 0.7897 GB, free: 7.551 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.001143/0.2907, allocations: 0.7319 MB / 0.7904 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.2907, allocations: 8.031 kB / 0.7904 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.2908, allocations: 52.38 kB / 0.7905 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.2912, allocations: 332.3 kB / 0.7908 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.83e-05/0.2913, allocations: 49.69 kB / 0.7908 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.156e-05/0.2914, allocations: 52.38 kB / 0.7909 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009015/0.2923, allocations: 0.5816 MB / 0.7915 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.2923, allocations: 3.938 kB / 0.7915 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.964e-05/0.2924, allocations: 27.98 kB / 0.7915 GB, free: 5.605 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/0.2924, allocations: 20.94 kB / 0.7915 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007319/0.2931, allocations: 427.7 kB / 0.7919 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.2953, allocations: 1.923 MB / 0.7938 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005563/0.2958, allocations: 349.9 kB / 0.7941 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002782/0.2961, allocations: 192.7 kB / 0.7943 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.2962, allocations: 8 kB / 0.7943 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003733/0.2966, allocations: 229.9 kB / 0.7945 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=46): time 1.984e-06/0.2966, allocations: 4 kB / 0.7945 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of matching and sorting (n=46): time 0.0008622/0.2975, allocations: 470.6 kB / 0.795 GB, free: 1.906 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.2975, allocations: 67.14 kB / 0.795 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/0.2977, allocations: 237.7 kB / 0.7953 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.867e-05/0.2978, allocations: 57.62 kB / 0.7953 GB, free: 1.523 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.2979, allocations: 212.7 kB / 0.7955 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.329e-05/0.298, allocations: 118.5 kB / 0.7956 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.2982, allocations: 138.3 kB / 0.7958 GB, free: 1.051 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.2983, allocations: 346.7 kB / 0.7961 GB, free: 0.7031 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.2986, allocations: 161.2 kB / 0.7963 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.299, allocations: 291 kB / 0.7965 GB, free: 220 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005366/0.2995, allocations: 406.5 kB / 0.7969 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.2995, allocations: 4 kB / 0.7969 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007482/0.3003, allocations: 0.4984 MB / 0.7974 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.3003, allocations: 8 kB / 0.7974 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3003, allocations: 4.469 kB / 0.7974 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3004, allocations: 12 kB / 0.7974 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.3006, allocations: 63.83 kB / 0.7975 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3006, allocations: 7.938 kB / 0.7975 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.3008, allocations: 55.52 kB / 0.7976 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.3009, allocations: 27.98 kB / 0.7976 GB, free: 15.08 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.0002481/0.3012, allocations: 235.5 kB / 0.7978 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.801e-05/0.3012, allocations: 31.61 kB / 0.7978 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007095/0.3019, allocations: 431.5 kB / 0.7983 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.302, allocations: 4 kB / 0.7983 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.302, allocations: 0 / 0.7983 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.302, allocations: 3.984 kB / 0.7983 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.3034, allocations: 1.134 MB / 0.7994 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3034, allocations: 4 kB / 0.7994 GB, free: 13.17 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.3036, allocations: 31.92 kB / 0.7994 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.3036, allocations: 7.938 kB / 0.7994 GB, free: 13.13 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.3036, allocations: 7.984 kB / 0.7994 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/0.3036, allocations: 4 kB / 0.7994 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3036, allocations: 3.938 kB / 0.7994 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.3043, allocations: 0.4997 MB / 0.7999 GB, free: 12.6 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.544e-05/0.3043, allocations: 108.6 kB / 0.8 GB, free: 12.47 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.4e-05/0.3044, allocations: 8 kB / 0.8 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.3046, allocations: 23.97 kB / 0.8 GB, free: 12.44 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.3047, allocations: 68.36 kB / 0.8001 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.3048, allocations: 20 kB / 0.8001 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001052/0.3049, allocations: 140.2 kB / 0.8003 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3049, allocations: 0 / 0.8003 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004185/0.3053, allocations: 107.6 kB / 0.8004 GB, free: 12.11 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.0002307/0.3055, allocations: 139.2 kB / 0.8005 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008826/0.3064, allocations: 477.4 kB / 0.801 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3064, allocations: 0 / 0.801 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003105/0.3068, allocations: 218.4 kB / 0.8012 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003667/0.3071, allocations: 49.64 kB / 0.8012 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.3085, allocations: 0.9064 MB / 0.8021 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/0.309, allocations: 0.8268 MB / 0.8029 GB, free: 9.457 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.3092, allocations: 47.42 kB / 0.803 GB, free: 9.41 MB / 0.6231 GB Notification: Performance of SimCode: time 4.41e-07/0.3092, allocations: 0 / 0.803 GB, free: 9.41 MB / 0.6231 GB Notification: Performance of Templates: time 0.007511/0.3167, allocations: 5.289 MB / 0.8081 GB, free: 4.133 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)