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.001089/0.001089, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001214/0.001214, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.809/1.809, allocations: 292.5 MB / 0.5497 GB, free: 14.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.0005095/0.0005096, allocations: 12.72 kB / 0.6735 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2644, allocations: 116.3 MB / 0.7871 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002548/0.267, allocations: 1.911 MB / 0.789 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001613/0.2687, allocations: 0.9714 MB / 0.7899 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.2688, allocations: 11.94 kB / 0.79 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.269, allocations: 35.66 kB / 0.79 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.2692, allocations: 43.81 kB / 0.79 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004183/0.2696, allocations: 183.7 kB / 0.7902 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000439/0.2701, allocations: 352.1 kB / 0.7905 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004694/0.2706, allocations: 356.3 kB / 0.7909 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.2707, allocations: 135.5 kB / 0.791 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.271, allocations: 159.2 kB / 0.7912 GB, free: 7.793 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.956e-05/0.271, allocations: 24 kB / 0.7912 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.554e-05/0.2711, allocations: 28 kB / 0.7912 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.2712, allocations: 91.66 kB / 0.7913 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001117/0.2713, allocations: 97.45 kB / 0.7914 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.2718, allocations: 0.534 MB / 0.7919 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.2718, allocations: 0 / 0.7919 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2718, allocations: 0 / 0.7919 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.2718, allocations: 0 / 0.7919 GB, free: 7.016 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.001018/0.2729, allocations: 0.6343 MB / 0.7925 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2729, allocations: 15.97 kB / 0.7925 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.16e-05/0.273, allocations: 51.39 kB / 0.7926 GB, free: 6.262 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.2734, allocations: 335 kB / 0.7929 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.977e-05/0.2735, allocations: 45.31 kB / 0.793 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.82e-05/0.2735, allocations: 56 kB / 0.793 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009127/0.2745, allocations: 0.5656 MB / 0.7936 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.2745, allocations: 3.984 kB / 0.7936 GB, free: 5.195 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.659e-05/0.2745, allocations: 24 kB / 0.7936 GB, free: 5.172 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/0.2746, allocations: 21 kB / 0.7936 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007325/0.2753, allocations: 423.7 kB / 0.794 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.2775, allocations: 1.93 MB / 0.7959 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.2781, allocations: 359.6 kB / 0.7962 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.799e-05/0.2782, allocations: 8 kB / 0.7963 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003733/0.2786, allocations: 226 kB / 0.7965 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=46): time 2.545e-06/0.2786, allocations: 0 / 0.7965 GB, free: 2.125 MB / 0.6075 GB Notification: Performance of matching and sorting (n=46): time 0.0008808/0.2795, allocations: 490.2 kB / 0.7969 GB, free: 1.641 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.2796, allocations: 63.14 kB / 0.797 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.2798, allocations: 237.7 kB / 0.7972 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.595e-05/0.2798, allocations: 53.69 kB / 0.7973 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.28, allocations: 212.7 kB / 0.7975 GB, free: 1.055 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.976e-05/0.2801, allocations: 118.4 kB / 0.7976 GB, free: 0.9375 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.2801, allocations: 16 kB / 0.7976 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001785/0.2803, allocations: 342.8 kB / 0.7979 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/0.2806, allocations: 165.2 kB / 0.7981 GB, free: 428 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003573/0.281, allocations: 287.9 kB / 0.7984 GB, free: 92 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/0.2813, allocations: 170.2 kB / 0.7985 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.2813, allocations: 4 kB / 0.7985 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007765/0.2821, allocations: 0.4983 MB / 0.799 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.2821, allocations: 10.97 kB / 0.799 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.2821, allocations: 4 kB / 0.799 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.2822, allocations: 4.469 kB / 0.799 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002371/0.2824, allocations: 75.83 kB / 0.7991 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.2824, allocations: 4 kB / 0.7991 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.2827, allocations: 63.52 kB / 0.7992 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/0.2827, allocations: 23.98 kB / 0.7992 GB, free: 15.23 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,$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.000273/0.283, allocations: 234.9 kB / 0.7994 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.283, allocations: 27.7 kB / 0.7994 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007393/0.2838, allocations: 431.3 kB / 0.7999 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.2838, allocations: 4 kB / 0.7999 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2838, allocations: 0 / 0.7999 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.914e-06/0.2838, allocations: 11.92 kB / 0.7999 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00151/0.2853, allocations: 1.134 MB / 0.801 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2854, allocations: 0 / 0.801 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.2855, allocations: 43.86 kB / 0.801 GB, free: 13.28 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.2855, allocations: 7.984 kB / 0.801 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.2856, allocations: 8 kB / 0.801 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.2856, allocations: 4 kB / 0.801 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2856, allocations: 4 kB / 0.801 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000652/0.2862, allocations: 0.4919 MB / 0.8015 GB, free: 12.75 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.784e-05/0.2863, allocations: 108.7 kB / 0.8016 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.827e-05/0.2864, allocations: 15.98 kB / 0.8016 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.2865, allocations: 27.98 kB / 0.8017 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.2867, allocations: 60.34 kB / 0.8017 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.984e-05/0.2867, allocations: 23.92 kB / 0.8017 GB, free: 12.5 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001063/0.2869, allocations: 144.2 kB / 0.8019 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2869, allocations: 4 kB / 0.8019 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004417/0.2873, allocations: 107.6 kB / 0.802 GB, free: 12.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002278/0.2875, allocations: 139.1 kB / 0.8021 GB, free: 12.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007064/0.2883, allocations: 445.9 kB / 0.8026 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2883, allocations: 0 / 0.8026 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.2886, allocations: 214.4 kB / 0.8028 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.2889, allocations: 38.2 kB / 0.8028 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.2901, allocations: 0.8447 MB / 0.8036 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.2905, allocations: 0.8272 MB / 0.8044 GB, free: 9.691 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001911/0.2907, allocations: 71.23 kB / 0.8045 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.2909, allocations: 43.36 kB / 0.8045 GB, free: 9.586 MB / 0.6231 GB Notification: Performance of SimCode: time 1.683e-06/0.2909, allocations: 0 / 0.8045 GB, free: 9.586 MB / 0.6231 GB Notification: Performance of Templates: time 0.00769/0.2986, allocations: 3.73 MB / 0.8082 GB, free: 5.879 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: