Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_3.0.0_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_3.0.0_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.00102/0.00102, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.006722/0.006722, allocations: 169.2 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.975/2.975, allocations: 473.4 MB / 0.7469 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000372/0.000372, allocations: 9.969 kB / 0.9158 GB, free: 33.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3878, allocations: 162.2 MB / 1.074 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002691/0.3905, allocations: 1.988 MB / 1.076 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001635/0.3922, allocations: 0.939 MB / 1.077 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.3923, allocations: 11.94 kB / 1.077 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.3925, allocations: 39.66 kB / 1.077 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002316/0.3927, allocations: 31.77 kB / 1.077 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004963/0.3932, allocations: 255.7 kB / 1.077 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00055/0.3938, allocations: 0.57 MB / 1.078 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000511/0.3943, allocations: 400.5 kB / 1.078 GB, free: 3.309 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.3945, allocations: 151.4 kB / 1.078 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.3948, allocations: 171 kB / 1.079 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.556e-05/0.3948, allocations: 20 kB / 1.079 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.372e-05/0.3949, allocations: 39.92 kB / 1.079 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.395, allocations: 91.61 kB / 1.079 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.3952, allocations: 220.5 kB / 1.079 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005449/0.3958, allocations: 0.6309 MB / 1.08 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3958, allocations: 4 kB / 1.08 GB, free: 1.984 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3958, allocations: 4 kB / 1.08 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.3958, allocations: 4 kB / 1.08 GB, free: 1.977 MB / 0.8262 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.001056/0.3969, allocations: 0.6277 MB / 1.08 GB, free: 1.297 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3969, allocations: 11.97 kB / 1.08 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.397, allocations: 56.38 kB / 1.08 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.3974, allocations: 344.2 kB / 1.081 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.07e-05/0.3975, allocations: 49.69 kB / 1.081 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.652e-05/0.3976, allocations: 56.38 kB / 1.081 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009273/0.3985, allocations: 0.5816 MB / 1.081 GB, free: 144 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.3986, allocations: 7.938 kB / 1.081 GB, free: 136 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.3986, allocations: 16 kB / 1.081 GB, free: 120 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.3987, allocations: 21 kB / 1.081 GB, free: 100 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007461/0.3994, allocations: 431.7 kB / 1.082 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.4018, allocations: 1.938 MB / 1.084 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000628/0.4024, allocations: 400.7 kB / 1.084 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.4028, allocations: 210.4 kB / 1.084 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.462e-05/0.4028, allocations: 4 kB / 1.084 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004351/0.4033, allocations: 277 kB / 1.084 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 2.275e-06/0.4033, allocations: 0 / 1.084 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.0009658/0.4043, allocations: 0.4964 MB / 1.085 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.265e-05/0.4043, allocations: 118.8 kB / 1.085 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002288/0.4046, allocations: 222.6 kB / 1.085 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.135e-05/0.4047, allocations: 57.94 kB / 1.085 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.4048, allocations: 216.8 kB / 1.085 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4049, allocations: 114.4 kB / 1.086 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.4051, allocations: 97.66 kB / 1.086 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.4052, allocations: 350.7 kB / 1.086 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.4055, allocations: 161.2 kB / 1.086 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003695/0.4059, allocations: 300.7 kB / 1.086 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.4065, allocations: 418.5 kB / 1.087 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4065, allocations: 0 / 1.087 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008525/0.4074, allocations: 0.5179 MB / 1.087 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.4074, allocations: 9.562 kB / 1.087 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4074, allocations: 8 kB / 1.087 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.4075, allocations: 8 kB / 1.087 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.4077, allocations: 59.84 kB / 1.087 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.4078, allocations: 8 kB / 1.087 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.408, allocations: 75.38 kB / 1.088 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.4081, allocations: 24 kB / 1.088 GB, free: 9.344 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($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.t3.t_start,$PRE.con.t3.t_start,con.t4.t_start,$PRE.con.t4.t_start,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 (76): * Single equations (assignments): 76 * 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.0003403/0.4084, allocations: 234.9 kB / 1.088 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.928e-05/0.4085, allocations: 31.61 kB / 1.088 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008476/0.4093, allocations: 439.5 kB / 1.088 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.4094, allocations: 8 kB / 1.088 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.4094, allocations: 0 / 1.088 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.4094, allocations: 3.938 kB / 1.088 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001705/0.4111, allocations: 1.161 MB / 1.089 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.4111, allocations: 0 / 1.089 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.4113, allocations: 35.91 kB / 1.089 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.4113, allocations: 4 kB / 1.089 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/0.4113, allocations: 19.94 kB / 1.089 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.4113, allocations: 3.984 kB / 1.089 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.4113, allocations: 4 kB / 1.089 GB, free: 7.328 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007727/0.4121, allocations: 0.517 MB / 1.09 GB, free: 6.789 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.408e-05/0.4122, allocations: 108.7 kB / 1.09 GB, free: 6.664 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.436e-05/0.4123, allocations: 19.92 kB / 1.09 GB, free: 6.645 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.4125, allocations: 31.98 kB / 1.09 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.4127, allocations: 68.34 kB / 1.09 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.4127, allocations: 12 kB / 1.09 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001312/0.4129, allocations: 140.7 kB / 1.09 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4129, allocations: 0 / 1.09 GB, free: 6.398 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004964/0.4134, allocations: 111.6 kB / 1.09 GB, free: 6.289 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,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: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0003351/0.4137, allocations: 155.1 kB / 1.091 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008258/0.4145, allocations: 446.2 kB / 1.091 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4146, allocations: 256 / 1.091 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003931/0.415, allocations: 238.3 kB / 1.091 GB, free: 5.465 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.4154, allocations: 53.69 kB / 1.091 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.417, allocations: 0.9124 MB / 1.092 GB, free: 4.465 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005612/0.4176, allocations: 0.8194 MB / 1.093 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002103/0.4178, allocations: 67.19 kB / 1.093 GB, free: 3.555 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.418, allocations: 39.42 kB / 1.093 GB, free: 3.516 MB / 0.8419 GB Notification: Performance of SimCode: time 4.7e-07/0.418, allocations: 4 kB / 1.093 GB, free: 3.512 MB / 0.8419 GB Notification: Performance of Templates: time 0.009762/0.4277, allocations: 3.998 MB / 1.097 GB, free: 15.54 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)