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.551/1.551, allocations: 252 MB / 267.6 MB, free: 10.95 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.001029/0.001029, allocations: 190.7 kB / 327.3 MB, free: 2.203 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.1/2.1, allocations: 205.4 MB / 0.5783 GB, free: 20.2 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.000804/0.0008038, allocations: 90.3 kB / 0.6829 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004846/0.0004846, allocations: 15.44 kB / 0.797 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3029, allocations: 106.3 MB / 0.9008 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002379/0.3053, allocations: 1.922 MB / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001756/0.3071, allocations: 0.9788 MB / 0.9037 GB, free: 61 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003663/0.3075, allocations: 7.938 kB / 0.9037 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.3077, allocations: 47.58 kB / 0.9037 GB, free: 60.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003156/0.3081, allocations: 35.77 kB / 0.9038 GB, free: 60.91 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006608/0.3087, allocations: 175.7 kB / 0.9039 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.000697/0.3095, allocations: 0.5427 MB / 0.9045 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005512/0.31, allocations: 360.3 kB / 0.9048 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.3103, allocations: 139.4 kB / 0.9049 GB, free: 59.7 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.3105, allocations: 167.1 kB / 0.9051 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.18e-05/0.3106, allocations: 20 kB / 0.9051 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.3107, allocations: 27.98 kB / 0.9051 GB, free: 59.49 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.3108, allocations: 91.66 kB / 0.9052 GB, free: 59.4 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.3109, allocations: 101.5 kB / 0.9053 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004581/0.3114, allocations: 0.526 MB / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3114, allocations: 4 kB / 0.9058 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3114, allocations: 0 / 0.9058 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.606e-05/0.3114, allocations: 0 / 0.9058 GB, free: 58.76 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.001116/0.3125, allocations: 0.6346 MB / 0.9065 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3126, allocations: 8.031 kB / 0.9065 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.3127, allocations: 51.39 kB / 0.9065 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.3131, allocations: 339 kB / 0.9068 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.162e-05/0.3132, allocations: 49.3 kB / 0.9069 GB, free: 57.59 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.3133, allocations: 56 kB / 0.9069 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009086/0.3142, allocations: 0.5695 MB / 0.9075 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3142, allocations: 4 kB / 0.9075 GB, free: 56.94 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.3143, allocations: 16 kB / 0.9075 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.393e-05/0.3143, allocations: 21 kB / 0.9075 GB, free: 56.9 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007477/0.315, allocations: 431.6 kB / 0.9079 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002148/0.3172, allocations: 1.934 MB / 0.9098 GB, free: 54.47 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005133/0.3177, allocations: 349.7 kB / 0.9102 GB, free: 54.12 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002507/0.318, allocations: 188.8 kB / 0.9103 GB, free: 53.93 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/0.3181, allocations: 8 kB / 0.9104 GB, free: 53.93 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003422/0.3184, allocations: 222 kB / 0.9106 GB, free: 53.7 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 2.735e-06/0.3184, allocations: 0 / 0.9106 GB, free: 53.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.0008147/0.3192, allocations: 486.5 kB / 0.911 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.539e-05/0.3193, allocations: 63.16 kB / 0.9111 GB, free: 53.14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.3195, allocations: 237.7 kB / 0.9113 GB, free: 52.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.789e-05/0.3196, allocations: 49.7 kB / 0.9114 GB, free: 52.84 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3197, allocations: 220.7 kB / 0.9116 GB, free: 52.62 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.31e-05/0.3198, allocations: 118.5 kB / 0.9117 GB, free: 52.51 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.076e-05/0.3198, allocations: 8 kB / 0.9117 GB, free: 52.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.3199, allocations: 346.8 kB / 0.912 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.3202, allocations: 165.2 kB / 0.9122 GB, free: 51.99 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003126/0.3205, allocations: 286 kB / 0.9125 GB, free: 51.67 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/0.3208, allocations: 170.1 kB / 0.9126 GB, free: 51.5 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3208, allocations: 4 kB / 0.9126 GB, free: 51.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007198/0.3215, allocations: 0.5062 MB / 0.9131 GB, free: 50.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3215, allocations: 10.5 kB / 0.9131 GB, free: 50.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3216, allocations: 7.938 kB / 0.9131 GB, free: 50.97 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3216, allocations: 8 kB / 0.9131 GB, free: 50.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.3218, allocations: 59.84 kB / 0.9132 GB, free: 50.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.3218, allocations: 11.98 kB / 0.9132 GB, free: 50.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.3221, allocations: 67.89 kB / 0.9133 GB, free: 50.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.353e-05/0.3221, allocations: 20 kB / 0.9133 GB, free: 50.8 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,$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.0002451/0.3224, allocations: 234.8 kB / 0.9135 GB, free: 50.57 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.3225, allocations: 31.62 kB / 0.9135 GB, free: 50.54 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006592/0.3231, allocations: 431.5 kB / 0.914 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.321e-06/0.3231, allocations: 4 kB / 0.914 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3231, allocations: 0 / 0.914 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3232, allocations: 0 / 0.914 GB, free: 50.11 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.3245, allocations: 1.13 MB / 0.9151 GB, free: 48.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.3245, allocations: 0 / 0.9151 GB, free: 48.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.3247, allocations: 39.84 kB / 0.9151 GB, free: 48.86 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.3247, allocations: 4 kB / 0.9151 GB, free: 48.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.3247, allocations: 16 kB / 0.9151 GB, free: 48.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3248, allocations: 7.953 kB / 0.9151 GB, free: 48.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3248, allocations: 3.984 kB / 0.9151 GB, free: 48.83 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/0.3253, allocations: 0.4919 MB / 0.9156 GB, free: 48.32 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.3254, allocations: 108.6 kB / 0.9157 GB, free: 48.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.148e-05/0.3254, allocations: 12 kB / 0.9157 GB, free: 48.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.3256, allocations: 35.97 kB / 0.9158 GB, free: 48.15 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.3258, allocations: 68.3 kB / 0.9158 GB, free: 48.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.3258, allocations: 12 kB / 0.9158 GB, free: 48.07 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 9.83e-05/0.3259, allocations: 135.2 kB / 0.916 GB, free: 47.94 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.202e-06/0.3259, allocations: 0 / 0.916 GB, free: 47.94 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004021/0.3263, allocations: 111.6 kB / 0.9161 GB, free: 47.83 MB / 0.6042 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.0002262/0.3266, allocations: 147.1 kB / 0.9162 GB, free: 47.68 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006672/0.3272, allocations: 434.5 kB / 0.9166 GB, free: 47.25 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3273, allocations: 8 kB / 0.9166 GB, free: 47.24 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002893/0.3275, allocations: 218.4 kB / 0.9168 GB, free: 47.03 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.3279, allocations: 43.91 kB / 0.9169 GB, free: 46.99 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.3291, allocations: 0.8771 MB / 0.9177 GB, free: 46.08 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.3294, allocations: 0.8155 MB / 0.9185 GB, free: 45.23 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.3296, allocations: 43.42 kB / 0.9186 GB, free: 45.2 MB / 0.6042 GB Notification: Performance of SimCode: time 1.012e-06/0.3296, allocations: 0 / 0.9186 GB, free: 45.2 MB / 0.6042 GB Notification: Performance of Templates: time 0.008234/0.3378, allocations: 5.225 MB / 0.9237 GB, free: 40 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)