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/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="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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 114.7 kB / 16.42 MB, free: 6.508 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.001132/0.001132, allocations: 188.3 kB / 17.35 MB, free: 5.758 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.362/1.362, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.817/2.817, allocations: 472.7 MB / 0.746 GB, free: 428 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 67.89 kB / 1.07 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.047/1.048, allocations: 159.9 MB / 1.226 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004474/1.053, allocations: 2.266 MB / 1.229 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002077/1.055, allocations: 0.9351 MB / 1.229 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004019/1.055, allocations: 11.94 kB / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0003074/1.055, allocations: 59.34 kB / 1.23 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0004199/1.056, allocations: 51.47 kB / 1.23 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008871/1.057, allocations: 279.6 kB / 1.23 GB, free: 9.883 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0009267/1.058, allocations: 0.6402 MB / 1.23 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007708/1.059, allocations: 476.4 kB / 1.231 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003655/1.059, allocations: 219.3 kB / 1.231 GB, free: 8.551 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003932/1.059, allocations: 235 kB / 1.231 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001569/1.06, allocations: 68 kB / 1.231 GB, free: 8.254 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/1.06, allocations: 87.98 kB / 1.232 GB, free: 8.168 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002043/1.06, allocations: 139.7 kB / 1.232 GB, free: 8.031 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002879/1.06, allocations: 254.8 kB / 1.232 GB, free: 7.781 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0009212/1.061, allocations: 0.7517 MB / 1.233 GB, free: 7.031 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/1.061, allocations: 0 / 1.233 GB, free: 7.031 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.202e-06/1.061, allocations: 3.938 kB / 1.233 GB, free: 7.027 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.673e-05/1.061, allocations: 4 kB / 1.233 GB, free: 7.023 MB / 0.9512 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.001573/1.063, allocations: 0.7442 MB / 1.233 GB, free: 6.23 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/1.063, allocations: 8.031 kB / 1.233 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/1.063, allocations: 56.61 kB / 1.233 GB, free: 6.168 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/1.063, allocations: 344.3 kB / 1.234 GB, free: 5.793 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.989e-05/1.064, allocations: 45.69 kB / 1.234 GB, free: 5.75 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.545e-05/1.064, allocations: 56.38 kB / 1.234 GB, free: 5.695 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/1.065, allocations: 0.5855 MB / 1.234 GB, free: 5.078 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/1.065, allocations: 3.938 kB / 1.234 GB, free: 5.074 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.042e-05/1.065, allocations: 24 kB / 1.234 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.931e-05/1.065, allocations: 17 kB / 1.234 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000804/1.066, allocations: 427.7 kB / 1.235 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002615/1.068, allocations: 1.919 MB / 1.237 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006614/1.069, allocations: 405.7 kB / 1.237 GB, free: 2.195 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/1.069, allocations: 198.5 kB / 1.237 GB, free: 1.992 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.955e-05/1.069, allocations: 11.98 kB / 1.237 GB, free: 1.98 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004294/1.07, allocations: 277 kB / 1.238 GB, free: 1.684 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=48): time 2.575e-06/1.07, allocations: 0 / 1.238 GB, free: 1.684 MB / 0.9512 GB Notification: Performance of matching and sorting (n=48): time 0.0009848/1.071, allocations: 496.6 kB / 1.238 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/1.071, allocations: 118.8 kB / 1.238 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/1.071, allocations: 231.3 kB / 1.238 GB, free: 0.8203 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/1.071, allocations: 61.62 kB / 1.238 GB, free: 0.7539 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001647/1.071, allocations: 217.3 kB / 1.239 GB, free: 0.5391 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/1.071, allocations: 123 kB / 1.239 GB, free: 428 kB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/1.072, allocations: 146.2 kB / 1.239 GB, free: 276 kB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001642/1.072, allocations: 342.8 kB / 1.239 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003401/1.072, allocations: 165.2 kB / 1.239 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/1.073, allocations: 296.7 kB / 1.24 GB, free: 15.43 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/1.073, allocations: 410.4 kB / 1.24 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/1.073, allocations: 4 kB / 1.24 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008198/1.074, allocations: 0.5141 MB / 1.241 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/1.074, allocations: 11.98 kB / 1.241 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.074, allocations: 0 / 1.241 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/1.074, allocations: 8 kB / 1.241 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/1.074, allocations: 60.31 kB / 1.241 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/1.074, allocations: 12 kB / 1.241 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/1.075, allocations: 63.59 kB / 1.241 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.882e-05/1.075, allocations: 24 kB / 1.241 GB, free: 14.27 MB / 0.9669 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.localCondition,con.t3.enableFire,con.t3.localCondition,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.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,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.0002805/1.075, allocations: 239.3 kB / 1.241 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.09e-05/1.075, allocations: 35.8 kB / 1.241 GB, free: 14 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007664/1.076, allocations: 431.4 kB / 1.241 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/1.076, allocations: 4 kB / 1.241 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/1.076, allocations: 0 / 1.241 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.899e-05/1.076, allocations: 104.9 kB / 1.242 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.202e-05/1.076, allocations: 12 kB / 1.242 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/1.076, allocations: 23.98 kB / 1.242 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/1.076, allocations: 68.3 kB / 1.242 GB, free: 13.34 MB / 0.9669 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009332/1.077, allocations: 0.6622 MB / 1.242 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000775/1.078, allocations: 0.7174 MB / 1.243 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003202/1.078, allocations: 211.3 kB / 1.243 GB, free: 11.73 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001221/1.078, allocations: 142 kB / 1.243 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of Backend: time 3e-07/1.078, allocations: 0 / 1.243 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001023/1.08, allocations: 387.8 kB / 1.244 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of SimCode: time 0.001322/1.081, allocations: 1.054 MB / 1.245 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of Templates: time 0.01096/1.092, allocations: 4.832 MB / 1.249 GB, free: 5.309 MB / 0.9669 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches