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.561/1.561, allocations: 252 MB / 268 MB, free: 10.84 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.0009886/0.0009887, allocations: 179.2 kB / 327.6 MB, free: 2.074 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.92/1.92, allocations: 205.4 MB / 0.5786 GB, free: 20.11 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.0008372/0.0008374, allocations: 86.34 kB / 0.6832 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005003/0.0005006, allocations: 9 kB / 0.7976 GB, free: 134.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2916, allocations: 106.3 MB / 0.9015 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.00259/0.2943, allocations: 1.98 MB / 0.9034 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.2959, allocations: 1.006 MB / 0.9044 GB, free: 60.28 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.2961, allocations: 11.94 kB / 0.9044 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001513/0.2963, allocations: 39.66 kB / 0.9044 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002358/0.2965, allocations: 31.78 kB / 0.9045 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.2969, allocations: 247.7 kB / 0.9047 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0004699/0.2974, allocations: 0.5778 MB / 0.9053 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004911/0.2979, allocations: 388.6 kB / 0.9056 GB, free: 59 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001763/0.2981, allocations: 143.4 kB / 0.9058 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.2983, allocations: 167 kB / 0.9059 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.2984, allocations: 20 kB / 0.9059 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.937e-05/0.2985, allocations: 39.94 kB / 0.906 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.2986, allocations: 83.66 kB / 0.9061 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.2988, allocations: 220.5 kB / 0.9063 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003792/0.2992, allocations: 0.5224 MB / 0.9068 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2992, allocations: 3.938 kB / 0.9068 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2992, allocations: 4 kB / 0.9068 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.2992, allocations: 0 / 0.9068 GB, free: 57.8 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.0009741/0.3002, allocations: 0.6345 MB / 0.9074 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.3002, allocations: 12.03 kB / 0.9074 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.587e-05/0.3003, allocations: 52.38 kB / 0.9075 GB, free: 57.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.3007, allocations: 336.2 kB / 0.9078 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.911e-05/0.3007, allocations: 45.69 kB / 0.9078 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.89e-05/0.3008, allocations: 56.36 kB / 0.9079 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000794/0.3016, allocations: 0.5816 MB / 0.9085 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.3016, allocations: 3.938 kB / 0.9085 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.3017, allocations: 20 kB / 0.9085 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.46e-05/0.3017, allocations: 21 kB / 0.9085 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000656/0.3024, allocations: 431.6 kB / 0.9089 GB, free: 55.51 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.3042, allocations: 1.934 MB / 0.9108 GB, free: 53.49 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/0.3047, allocations: 351 kB / 0.9111 GB, free: 53.14 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002488/0.305, allocations: 192.8 kB / 0.9113 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-05/0.3051, allocations: 4 kB / 0.9113 GB, free: 52.95 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003405/0.3054, allocations: 230.2 kB / 0.9115 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=46): time 2.264e-06/0.3054, allocations: 0 / 0.9115 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46): time 0.000794/0.3062, allocations: 485.2 kB / 0.912 GB, free: 52.23 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/0.3063, allocations: 67.16 kB / 0.9121 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.3065, allocations: 241.7 kB / 0.9123 GB, free: 51.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.431e-05/0.3065, allocations: 45.7 kB / 0.9123 GB, free: 51.85 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.3066, allocations: 224.7 kB / 0.9126 GB, free: 51.63 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.254e-05/0.3067, allocations: 114.5 kB / 0.9127 GB, free: 51.52 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.335e-05/0.3068, allocations: 12 kB / 0.9127 GB, free: 51.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.982e-05/0.3069, allocations: 342.8 kB / 0.913 GB, free: 51.16 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.3071, allocations: 165.2 kB / 0.9132 GB, free: 51 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000297/0.3074, allocations: 292.7 kB / 0.9134 GB, free: 50.66 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004726/0.3079, allocations: 406.5 kB / 0.9138 GB, free: 50.21 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3079, allocations: 0 / 0.9138 GB, free: 50.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006718/0.3086, allocations: 0.5103 MB / 0.9143 GB, free: 49.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3086, allocations: 8 kB / 0.9143 GB, free: 49.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3087, allocations: 4 kB / 0.9143 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.3087, allocations: 4 kB / 0.9143 GB, free: 49.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002308/0.3089, allocations: 67.83 kB / 0.9144 GB, free: 49.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.3089, allocations: 4 kB / 0.9144 GB, free: 49.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002067/0.3092, allocations: 67.73 kB / 0.9145 GB, free: 49.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.3092, allocations: 27.98 kB / 0.9145 GB, free: 49.52 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002292/0.3094, allocations: 230.8 kB / 0.9147 GB, free: 49.28 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.548e-05/0.3095, allocations: 31.61 kB / 0.9148 GB, free: 49.25 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006605/0.3102, allocations: 431.6 kB / 0.9152 GB, free: 48.82 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.3102, allocations: 8 kB / 0.9152 GB, free: 48.82 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3102, allocations: 0 / 0.9152 GB, free: 48.82 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3102, allocations: 7.922 kB / 0.9152 GB, free: 48.81 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/0.3115, allocations: 1.141 MB / 0.9163 GB, free: 47.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3115, allocations: 0 / 0.9163 GB, free: 47.59 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.3116, allocations: 39.86 kB / 0.9163 GB, free: 47.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.3117, allocations: 7.922 kB / 0.9163 GB, free: 47.55 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.3117, allocations: 8 kB / 0.9163 GB, free: 47.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3117, allocations: 0 / 0.9163 GB, free: 47.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3117, allocations: 4 kB / 0.9164 GB, free: 47.54 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005534/0.3123, allocations: 0.4958 MB / 0.9168 GB, free: 47.02 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.8e-05/0.3123, allocations: 104.7 kB / 0.9169 GB, free: 46.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.3124, allocations: 15.98 kB / 0.917 GB, free: 46.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.3125, allocations: 31.98 kB / 0.917 GB, free: 46.86 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.3127, allocations: 60.36 kB / 0.917 GB, free: 46.8 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.3127, allocations: 19.98 kB / 0.9171 GB, free: 46.78 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 8.146e-05/0.3128, allocations: 144.2 kB / 0.9172 GB, free: 46.64 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.3128, allocations: 0 / 0.9172 GB, free: 46.64 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003609/0.3132, allocations: 111.5 kB / 0.9173 GB, free: 46.53 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 (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.0002048/0.3134, allocations: 151.1 kB / 0.9174 GB, free: 46.37 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006192/0.314, allocations: 441.5 kB / 0.9179 GB, free: 45.94 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.314, allocations: 0.9375 kB / 0.9179 GB, free: 45.94 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.3143, allocations: 218.4 kB / 0.9181 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.3147, allocations: 47.92 kB / 0.9181 GB, free: 45.68 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.3159, allocations: 0.9123 MB / 0.919 GB, free: 44.73 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.3162, allocations: 0.8155 MB / 0.9198 GB, free: 43.89 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.3163, allocations: 55.28 kB / 0.9199 GB, free: 43.84 MB / 0.6042 GB Notification: Performance of SimCode: time 4.71e-07/0.3163, allocations: 0 / 0.9199 GB, free: 43.84 MB / 0.6042 GB Notification: Performance of Templates: time 0.006673/0.323, allocations: 5.238 MB / 0.925 GB, free: 38.64 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)