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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001152/0.001152, allocations: 108.7 kB / 16.41 MB, free: 6.492 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.001189/0.001189, allocations: 192.2 kB / 17.35 MB, free: 5.727 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.429/1.429, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.621/2.621, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 67.89 kB / 1.055 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.994/0.9955, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.00414/0.9996, allocations: 2.267 MB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002079/1.002, allocations: 0.939 MB / 1.212 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003978/1.002, allocations: 11.94 kB / 1.212 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002922/1.002, allocations: 55.34 kB / 1.212 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0004322/1.003, allocations: 55.45 kB / 1.212 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008646/1.004, allocations: 287.6 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0009326/1.005, allocations: 0.6324 MB / 1.213 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007789/1.006, allocations: 468.5 kB / 1.213 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004111/1.006, allocations: 219.3 kB / 1.213 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004063/1.006, allocations: 234.9 kB / 1.213 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001478/1.007, allocations: 68 kB / 1.214 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/1.007, allocations: 79.98 kB / 1.214 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002053/1.007, allocations: 151.6 kB / 1.214 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003143/1.007, allocations: 242.9 kB / 1.214 GB, free: 7.938 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008813/1.008, allocations: 0.7591 MB / 1.215 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.008, allocations: 0 / 1.215 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.284e-06/1.008, allocations: 0 / 1.215 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.885e-05/1.008, allocations: 0 / 1.215 GB, free: 7.18 MB / 0.9356 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.001557/1.01, allocations: 0.731 MB / 1.215 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/1.01, allocations: 8.031 kB / 1.215 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001565/1.01, allocations: 56.36 kB / 1.215 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/1.011, allocations: 352.2 kB / 1.216 GB, free: 5.961 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.89e-05/1.011, allocations: 41.69 kB / 1.216 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.177e-05/1.011, allocations: 60.36 kB / 1.216 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/1.012, allocations: 0.5894 MB / 1.216 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/1.012, allocations: 3.938 kB / 1.216 GB, free: 5.234 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/1.012, allocations: 24 kB / 1.217 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.81e-05/1.012, allocations: 20.98 kB / 1.217 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008209/1.013, allocations: 419.7 kB / 1.217 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002515/1.015, allocations: 1.918 MB / 1.219 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006184/1.016, allocations: 388.7 kB / 1.219 GB, free: 2.379 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/1.016, allocations: 206.5 kB / 1.219 GB, free: 2.168 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 6.353e-05/1.016, allocations: 12 kB / 1.219 GB, free: 2.156 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004399/1.017, allocations: 261.1 kB / 1.22 GB, free: 1.879 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=48): time 3.637e-06/1.017, allocations: 3.938 kB / 1.22 GB, free: 1.875 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48): time 0.000963/1.018, allocations: 0.4964 MB / 1.22 GB, free: 1.375 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/1.018, allocations: 114.8 kB / 1.22 GB, free: 1.238 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/1.018, allocations: 230 kB / 1.22 GB, free: 1.004 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/1.018, allocations: 53.7 kB / 1.22 GB, free: 0.9453 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/1.018, allocations: 212.7 kB / 1.221 GB, free: 0.7305 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/1.018, allocations: 118.5 kB / 1.221 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/1.019, allocations: 146.5 kB / 1.221 GB, free: 476 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001357/1.019, allocations: 338.8 kB / 1.221 GB, free: 128 kB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/1.019, allocations: 169.2 kB / 1.221 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/1.02, allocations: 292.7 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006017/1.02, allocations: 410.4 kB / 1.222 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/1.02, allocations: 4 kB / 1.222 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008642/1.021, allocations: 0.522 MB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/1.021, allocations: 7.938 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/1.021, allocations: 4 kB / 1.223 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/1.021, allocations: 8 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/1.021, allocations: 63.83 kB / 1.223 GB, free: 14.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/1.021, allocations: 8 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/1.022, allocations: 55.52 kB / 1.223 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.096e-05/1.022, allocations: 27.98 kB / 1.223 GB, free: 14.47 MB / 0.9512 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.0002671/1.022, allocations: 235 kB / 1.223 GB, free: 14.23 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/1.022, allocations: 31.66 kB / 1.223 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007578/1.023, allocations: 423.5 kB / 1.223 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/1.023, allocations: 7.984 kB / 1.223 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/1.023, allocations: 4 kB / 1.223 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-05/1.023, allocations: 108.6 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/1.023, allocations: 12 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/1.023, allocations: 27.97 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/1.023, allocations: 56.31 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009157/1.024, allocations: 0.67 MB / 1.224 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007424/1.025, allocations: 0.7132 MB / 1.225 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003044/1.025, allocations: 215.4 kB / 1.225 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000108/1.025, allocations: 141.5 kB / 1.225 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of Backend: time 6.92e-07/1.025, allocations: 0 / 1.225 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001062/1.026, allocations: 388.3 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of SimCode: time 0.001283/1.028, allocations: 1.046 MB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of Templates: time 0.009641/1.037, allocations: 4.972 MB / 1.232 GB, free: 5.379 MB / 0.9512 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