Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.358/2.358, allocations: 390.3 MB / 402.8 MB, free: 6.699 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001789/0.001789, allocations: 176.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.877/1.877, allocations: 221.3 MB / 0.7915 GB, free: 5.426 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 91.89 kB / 0.9317 GB, free: 5.742 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.012e-05/4.015e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3371, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9887/1.326, allocations: 154.2 MB / 1.369 GB, free: 15.88 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/1.326, allocations: 100.3 kB / 1.369 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.02089/1.347, allocations: 8.362 MB / 1.378 GB, free: 8.777 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.613e-06/1.347, allocations: 0 / 1.378 GB, free: 8.777 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.336e-05/1.347, allocations: 8.656 kB / 1.378 GB, free: 8.77 MB / 0.8386 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.00103/1.348, allocations: 0.6358 MB / 1.378 GB, free: 8.117 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/1.348, allocations: 12.03 kB / 1.378 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/1.348, allocations: 51.34 kB / 1.378 GB, free: 8.055 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000465/1.349, allocations: 332.4 kB / 1.379 GB, free: 7.746 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.715e-05/1.349, allocations: 53.86 kB / 1.379 GB, free: 7.715 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.111e-05/1.349, allocations: 57.53 kB / 1.379 GB, free: 7.676 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/1.35, allocations: 0.5531 MB / 1.379 GB, free: 7.262 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/1.35, allocations: 0 / 1.379 GB, free: 7.262 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/1.35, allocations: 18.75 kB / 1.379 GB, free: 7.258 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.973e-05/1.35, allocations: 25 kB / 1.379 GB, free: 7.234 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006945/1.351, allocations: 398.3 kB / 1.38 GB, free: 6.984 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002301/1.353, allocations: 1.91 MB / 1.382 GB, free: 5.395 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/1.354, allocations: 377.6 kB / 1.382 GB, free: 5.113 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/1.354, allocations: 196.6 kB / 1.382 GB, free: 4.98 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.527e-05/1.354, allocations: 7.906 kB / 1.382 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003926/1.355, allocations: 268.3 kB / 1.382 GB, free: 4.754 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.804e-06/1.355, allocations: 0 / 1.382 GB, free: 4.754 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005929/1.355, allocations: 349.2 kB / 1.383 GB, free: 4.488 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.335e-05/1.355, allocations: 122.2 kB / 1.383 GB, free: 4.348 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/1.356, allocations: 220.5 kB / 1.383 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.556e-05/1.356, allocations: 55.83 kB / 1.383 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/1.356, allocations: 220 kB / 1.383 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/1.356, allocations: 108.3 kB / 1.383 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/1.356, allocations: 10.31 kB / 1.383 GB, free: 3.84 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.00016/1.356, allocations: 340.5 kB / 1.384 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/1.356, allocations: 157.2 kB / 1.384 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/1.357, allocations: 280.7 kB / 1.384 GB, free: 3.16 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002676/1.357, allocations: 169.2 kB / 1.384 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.357, allocations: 0 / 1.384 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.000756/1.358, allocations: 0.4934 MB / 1.385 GB, free: 2.664 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/1.358, allocations: 5.719 kB / 1.385 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.358, allocations: 11.94 kB / 1.385 GB, free: 2.648 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/1.358, allocations: 8 kB / 1.385 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002655/1.358, allocations: 67.45 kB / 1.385 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/1.358, allocations: 4 kB / 1.385 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/1.358, allocations: 54.19 kB / 1.385 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/1.358, allocations: 23.3 kB / 1.385 GB, free: 2.512 MB / 0.8386 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,$PRE.con.t3.t_start,con.t3.t_start,$PRE.con.t4.t_start,con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$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.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,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.enableFire,con.t4.enableFire) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001682/1.359, allocations: 179.7 kB / 1.385 GB, free: 2.352 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.734e-05/1.359, allocations: 23.72 kB / 1.385 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007031/1.359, allocations: 420.4 kB / 1.385 GB, free: 2.035 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/1.359, allocations: 8 kB / 1.386 GB, free: 2.027 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/1.359, allocations: 4 kB / 1.386 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/1.359, allocations: 3.984 kB / 1.386 GB, free: 2.02 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/1.361, allocations: 1.057 MB / 1.387 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.361, allocations: 0 / 1.387 GB, free: 1.164 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001586/1.361, allocations: 43.11 kB / 1.387 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/1.361, allocations: 7.953 kB / 1.387 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/1.361, allocations: 13.73 kB / 1.387 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/1.361, allocations: 3.938 kB / 1.387 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.361, allocations: 4 kB / 1.387 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006301/1.362, allocations: 0.5141 MB / 1.387 GB, free: 0.6484 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/1.362, allocations: 108.7 kB / 1.387 GB, free: 0.5234 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/1.362, allocations: 15.38 kB / 1.387 GB, free: 0.5156 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/1.362, allocations: 35.34 kB / 1.387 GB, free: 500 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/1.362, allocations: 66.78 kB / 1.387 GB, free: 448 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/1.362, allocations: 23.86 kB / 1.387 GB, free: 428 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000107/1.362, allocations: 134.9 kB / 1.387 GB, free: 308 kB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.362, allocations: 0 / 1.387 GB, free: 308 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000399/1.363, allocations: 82.62 kB / 1.388 GB, free: 240 kB / 0.8386 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,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) * 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 (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.0002388/1.363, allocations: 149.4 kB / 1.388 GB, free: 88 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006541/1.364, allocations: 429.6 kB / 1.388 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.364, allocations: 0 / 1.388 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003067/1.364, allocations: 223.7 kB / 1.388 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/1.364, allocations: 42.81 kB / 1.388 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009952/1.365, allocations: 0.5626 MB / 1.389 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/1.366, allocations: 0.8301 MB / 1.39 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002024/1.366, allocations: 67.23 kB / 1.39 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/1.366, allocations: 39.36 kB / 1.39 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of SimCode: time 2.5e-07/1.366, allocations: 3.938 kB / 1.39 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of Templates: time 0.007878/1.374, allocations: 3.786 MB / 1.394 GB, free: 10.41 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches