aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 122 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0240.5+6113_monthly_bin168
RA = 40.1426, Dec = 61.2287
tmin = 672451201, tmax = 675043201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='609356', job_status='RUN', time_executed='2022-05-24 01:54:51.878380', time_epoch_executed='1653382491.88' WHERE source_name='4FGL J0240.5+6113' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609356

Creating custom pfile directory:
/scratch/kocevski/609356/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=672451201.0 && nMetStart<675043201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=672451201.0 && nMetStart<675043201.0' /Data/Flight/Level1/LPA

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609356/ft1_4FGL_J0240.5+6113_monthly_bin168.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=672451201.0 && nMetStart<675043201.0' /Data/Flight/Level1/LPA

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609356/ft1_4FGL_J0240.5+6113_monthly_bin168.fits outfile=/scratch/kocevski/609356/ft1_filteredMKT_4FGL_J0240.5+6113_monthly_bin168.fits ra=40.1426 dec=61.2287 rad=12.0 tmin=672451201.0 tmax=675043201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 29.53
user 28.24
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/609356/ft1_filteredMKT_4FGL_J0240.5+6113_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.07
user 0.69
sys 0.20

Number of photons that the gtmktime cut: 31895

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/609356/ltcube_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits
.....................!
real 164.07
user 163.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/609356/ltcube_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits outfile=/scratch/kocevski/609356/expmap_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/609356/ltcube_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits
.....................!
real 193.70
user 188.68
sys 4.64

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 179 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0240.5+6113 @ 40.1426 61.2287

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits scfile=/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits outfile=/scratch/kocevski/609356/cmap_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=40.1426 yref=61.2287 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.86
user 0.66
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits scfile=/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits outfile=/scratch/kocevski/609356/cmap_HighResolution_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=40.1426 yref=61.2287 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.87
user 0.68
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/609356/Model_4FGL_J0240.5+6113_monthly_bin168.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits.....................!
real 4168.48
user 4158.34
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits', '/scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits', expMap='/scratch/kocevski/609356/expmap_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits', expCube='/scratch/kocevski/609356/ltcube_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/609356/Model_4FGL_J0240.5+6113_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0240.5+6113'

4FGL J0240.5+6113
   Spectrum: LogParabola
325         norm:  4.756e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
326        alpha:  2.399e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  1.481e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/609356/ft1_filtered_4FGL_J0240.5+6113_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/609356/ft2_4FGL_J0240.5+6113_monthly_bin168.fits
Exposure map: /scratch/kocevski/609356/expmap_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits
Exposure cube: /scratch/kocevski/609356/ltcube_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/609356/Model_4FGL_J0240.5+6113_monthly_bin168.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 295758.647374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 295758.015374

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48627       1.0000         .10000E-03   10000.    
     3 'norm      '    .21302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1672       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2363       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .93735       1.0000         .10000E-03   10000.    
     8 'norm      '    .63439       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6611       1.0000         .10000E-03   10000.    
    11 'norm      '    8.1637       1.0000         .10000E-03   10000.    
    12 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .94716       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3596       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61551E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.435       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3831       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   295758.0     FROM MIGRAD    STATUS=CONVERGED     75 CALLS     1700 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1252        2.2656       -.51018E-06   -.14900E-02
   2  Prefactor     .48675        1.8111       -.56593E-06   -.21128E-04
   3  norm          .21327        .56936        .14747E-06    .15312E-03
   4  Prefactor     2.1673        1.0938       -.57637E-07   -.93687E-04
   5  Prefactor     5.2362        1.3093       -.15365E-07   -.15911E-02
   6  Prefactor     .10005E-03    18.347       -.20305E-05** at limit **
   7  Prefactor     .93741        .23960       -.10063E-07    .16788E-04
   8  norm          .63546        1.2343        .71829E-06    .49474E-03
   9  Prefactor     .10000E-03    9.3950       -.32256E-06** at limit **
  10  norm          4.6611        .22539       -.72962E-08   -.83751E-04
  11  norm          8.1657        4.8514        .31137E-06    .37160E-02
  12  norm          .10000E-03    1.9906       -.31281E-06** at limit **
  13  Prefactor     .10000E-03    .52790       -.45639E-07** at limit **
  14  norm          .94784        1.1330        .17847E-07    .94235E-04
  15  Prefactor     2.3564        1.0277       -.26387E-08   -.10800E-03
  16  Prefactor     3.8923        1.3354        .58996E-07    .19679E-03
  17  Prefactor     1.3597        .62047       -.37166E-07   -.11009E-03
  18  Prefactor     .10181E-03    4.3943       -.17339E-05** at limit **
  19  Prefactor     33.438        1.0301        .20468E-07   -.11845E-02
  20  Normalizat    1.3831        .10808        .43600E-06    .24275E-03
  21  Prefactor     .97079        .10892E-01    .24184E-07    .17412E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12519
  Prefactor  = 0.486749
  norm       = 0.213274
  Prefactor  = 2.16732
  Prefactor  = 5.23621
  Prefactor  = 0.000100051
  Prefactor  = 0.937411
  norm       = 0.635462
  Prefactor  = 0.0001
  norm       = 4.66107
  norm       = 8.16573
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.947844
  Prefactor  = 2.35638
  Prefactor  = 3.89232
  Prefactor  = 1.35972
  Prefactor  = 0.000101808
  Prefactor  = 33.4375
  Normalizat = 1.38306
  Prefactor  = 0.970792
 **********
 **   18 **HESSE 
 **********

 FCN=   295758.0     FROM HESSE     STATUS=OK           399 CALLS     2099 TOTAL
                     EDM=   .22E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1252        2.2871        .70719E-02   -1.5416    
   2  Prefactor     .48675        1.8613        .11215E-01   -1.5568    
   3  norm          .21327        .34856        .10037       -1.5616    
   4  Prefactor     2.1673        1.0968        .69938E-02   -1.5414    
   5  Prefactor     5.2362        4.5246        .43915E-02   -1.5250    
   6  Prefactor     .10005E-03    1.4681        .21624       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .93741        .24678        .12942E-01   -1.5514    
   8  norm          .63546        .98737        .11808       -1.5549    
   9  Prefactor     .10000E-03    9.4002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6611        .22606        .46602E-02   -1.5276    
  11  norm          8.1657        5.2696        .35080E-02   -1.5136    
  12  norm          .10000E-03    .24391        .14377       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .95591E-01    .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .94784        1.1409        .12978E-01   -1.5513    
  15  Prefactor     2.3564        9.0535        .66727E-02   -1.5401    
  16  Prefactor     3.8923        1.3426        .51129E-02   -1.5313    
  17  Prefactor     1.3597        .63322        .93656E-02   -1.5475    
  18  Prefactor     .10181E-03    1.3712        .20371       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.438        11.851        .17325E-02   -1.4551    
  20  Normalizat    1.3831        .11554        .22893       -.81120    
  21  Prefactor     .97079        .10793E-01    .26901E-01   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000216747
Minuit parameter uncertainties:
  1  2.2872
  2  1.86154
  3  0.348565
  4  1.09681
  5  4.5249
  6  0.000549723
  7  0.246784
  8  0.987395
  9  0.000106258
  10  0.226058
  11  5.26988
  12  2.444e-06
  13  3.10696e-07
  14  1.14091
  15  9.05878
  16  1.34264
  17  0.633219
  18  0.00314874
  19  11.8517
  20  0.115562
  21  0.010793
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 295758.015364

Extracting fit parameters...

4FGL J0240.5+6113
   Spectrum: LogParabola
325         norm:  4.661e+00  2.261e-01  1.000e-04  1.000e+04 ( 1.000e-11)
326        alpha:  2.399e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  1.481e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.708e-01  1.079e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.383e+00  1.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 967.21
Ra Dec: 40.143 61.229
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.65e-07 +/- 3.71e-08
Energy Flux (Fixed Index): 2.88e-04 +/- 1.40e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 295753.870719
delta logL = 4.14464483625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 295753.870405
delta logL = 4.14495862497

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0028       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5519       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   295753.9     FROM MIGRAD    STATUS=FAILED        90 CALLS      271 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0028        .32727        .24373E-03   -.73526E-02
   2  alpha         2.5519        .58029E-01    .63681E-02    .15360E-01
   3  Normalizat    1.3316        .10792        .10376E-02   -.29172E-03
   4  Prefactor     .97241        .10789E-01    .11875E-03    .39213E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   295753.9     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      341 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0028        .32727        .48911E-05   -1.5308    
   2  alpha         2.5519        .58029E-01    .58460E-04    .20754E-01
   3  Normalizat    1.3316        .10792        .23355E-03   -.82628    
   4  Prefactor     .97241        .10789E-01    .17767E-04   -.93655    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   295753.9     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      371 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0028        .30611        .97493E-05   -.37315E-03
   2  alpha         2.5519        .54249E-01    .12736E-02    .64452E-03
   3  Normalizat    1.3316        .10770        .41502E-04     .0000    
   4  Prefactor     .97241        .10782E-01    .47500E-05   -.12254E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00276
  alpha      = 2.55188
  Normalizat = 1.33161
  Prefactor  = 0.972413
 **********
 **   18 **HESSE 
 **********

 FCN=   295753.9     FROM HESSE     STATUS=OK            25 CALLS      396 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0028        .30333        .38997E-06   -1.5308    
   2  alpha         2.5519        .53746E-01    .25472E-03    .20754E-01
   3  Normalizat    1.3316        .10767        .41502E-04   -.82628    
   4  Prefactor     .97241        .10781E-01    .47500E-05   -.93655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0887e-13
Minuit parameter uncertainties:
  1  0.303333
  2  0.0537504
  3  0.107691
  4  0.0107812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609356': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 295753.870405
delta logL = 4.14495862526

Extracting fit parameters...

4FGL J0240.5+6113
   Spectrum: LogParabola
325         norm:  4.003e+00  3.033e-01  1.000e-04  1.000e+04 ( 1.000e-11)
326        alpha:  2.552e+00  5.375e-02  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  1.481e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.724e-01  1.078e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.332e+00  1.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 974.80
Ra Dec: 40.143 61.229
Photon Index (Free Index): 2.55 +/- 0.05
Photon Flux (Free Index): 8.43e-07 +/- 4.70e-08
Energy Flux (Free Index): 2.73e-04 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/609356/cmap_HighResolution_672451201_675043201_4FGL_J0240.5+6113_monthly_bin168.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/609356

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.65e-07', energy_flux2='2.73e-04', photon_flux_error='3.71e-08', dlogl='4.14e+00', energy_flux='2.88e-04', photon_flux2='8.43e-07', job_status='DONE', time_completed='2022-05-24 06:20:39.468737', photon_index_error2='0.05', photon_index2='2.55', ts='967.21', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.38', time_epoch_completed='1653398439.47', return_code='0', job_id='609356', GAL2='0.97', EG2='1.33', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='4.70e-08', ts2='974.80', photon_index='2.40' WHERE bin_id='168' AND source_name='4FGL J0240.5+6113' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:20:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 609356: <4FGL_J0240.5+6113_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0240.5+6113_monthly_bin168> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May 24 01:40:36 2022
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 01:52:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 01:52:40 2022
Terminated at Tue May 24 06:20:43 2022
Results reported at Tue May 24 06:20:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0240.5+6113_monthly_bin168 40.1426 61.2287 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0240.5+6113 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15899.00 sec.
    Max Memory :                                 804 MB
    Average Memory :                             722.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   16083 sec.
    Turnaround time :                            16807 sec.

The output (if any) is above this job summary.

