/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 232 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 = 7382
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0022.5+0608_daily_bin1589
RA = 5.6376, Dec = 6.1343
tmin = 651196801, tmax = 651456001
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='880232', job_status='RUN', time_executed='2021-08-24 00:04:38.487125', time_epoch_executed='1629788678.49' WHERE source_name='4FGL J0022.5+0608' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/880232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/880232/ft1_4FGL_J0022.5+0608_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/880232/ft1_4FGL_J0022.5+0608_daily_bin1589.fits outfile=/scratch/kocevski/880232/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1589.fits ra=5.6376 dec=6.1343 rad=12.0 tmin=651196801.0 tmax=651456001.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 3.90
user 3.42
sys 0.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.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/880232/ft1_filteredMKT_4FGL_J0022.5+0608_daily_bin1589.fits evtable="EVENTS" outfile="/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.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 0.82
user 0.36
sys 0.42

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits" evtable="EVENTS" scfile=/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits sctable="SC_DATA" outfile=/scratch/kocevski/880232/ltcube_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.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/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits
.....................!
real 14.62
user 13.94
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/880232/ltcube_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.fits outfile=/scratch/kocevski/880232/expmap_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.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/880232/ltcube_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.fits
.....................!
real 192.49
user 186.44
sys 5.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
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0022.5+0608 @ 5.6376 6.1343

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits scfile=/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits outfile=/scratch/kocevski/880232/cmap_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.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=5.6376 yref=6.1343 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.83
user 0.38
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits scfile=/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits outfile=/scratch/kocevski/880232/cmap_HighResolution_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.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=5.6376 yref=6.1343 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.81
user 0.40
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/880232/Model_4FGL_J0022.5+0608_daily_bin1589.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 GAL_V02
Working on...
/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits.....................!
real 63.22
user 61.39
sys 1.55

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits', '/scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits', expMap='/scratch/kocevski/880232/expmap_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.fits', expCube='/scratch/kocevski/880232/ltcube_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/880232/Model_4FGL_J0022.5+0608_daily_bin1589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0022.5+0608'

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  3.416e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/880232/ft1_filtered_4FGL_J0022.5+0608_daily_bin1589.fits
Spacecraft file(s): /scratch/kocevski/880232/ft2_4FGL_J0022.5+0608_daily_bin1589.fits
Exposure map: /scratch/kocevski/880232/expmap_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.fits
Exposure cube: /scratch/kocevski/880232/ltcube_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/880232/Model_4FGL_J0022.5+0608_daily_bin1589.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) = 5851.88876098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.262       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33602E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9442       1.0000         .10000E-03   10000.    
     7 'norm      '    8.9371       1.0000         .10000E-03   10000.    
     8 'norm      '    9.4008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9489       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12246E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .82442       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0648       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5851.845     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1528 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.265        19.052         .0000        .30302E-03
   2  Prefactor     .10000E-03    6.5471         .0000    ** at limit **
   3  norm          .10000E-03    1.1305         .0000    ** at limit **
   4  norm          .10000E-03    3.2450         .0000    ** at limit **
   5  norm          10.438        5.0542         .0000       -.25074E-03
   6  Prefactor     3.9447        11.167         .0000        .33951E-02
   7  norm          8.9375        9.2673         .0000        .27823E-03
   8  norm          9.4000        9.2384         .0000       -.41190E-03
   9  Prefactor     6.4887        14.874         .0000        .14860E-03
  10  Prefactor     1.9485        5.7000         .0000        .72531E-03
  11  Prefactor     .10000E-03    1.7046         .0000    ** at limit **
  12  norm          17.594        15.007         .0000        .14379E-03
  13  Prefactor     .10000E-03    118.69         .0000    ** at limit **
  14  Prefactor     .10000E-03    16.711         .0000    ** at limit **
  15  Prefactor     6.0438        11.011         .0000        .12213E-02
  16  Prefactor     .10000E-03    8.6847         .0000    ** at limit **
  17  Normalizat    .82442        .19480         .0000        .14638E-04
  18  Prefactor     1.0649        .14307         .0000       -.51599E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.2652
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.4375
  Prefactor  = 3.94468
  norm       = 8.93746
  norm       = 9.40003
  Prefactor  = 6.48873
  Prefactor  = 1.9485
  Prefactor  = 0.0001
  norm       = 17.5944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.04376
  Prefactor  = 0.0001
  Normalizat = 0.824421
  Prefactor  = 1.06485
 **********
 **   18 **HESSE 
 **********

 FCN=   5851.845     FROM HESSE     STATUS=OK           246 CALLS     1774 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.265        19.021        .70545E-04   -1.4571    
   2  Prefactor     .10000E-03    33.396        .37565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.1407        .79230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2845        .13415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.438        5.0498        .57253E-03   -1.5062    
   6  Prefactor     3.9447        11.154        .10156E-02   -1.5311    
   7  norm          8.9375        9.2592        .13407E-03   -1.5110    
   8  norm          9.4000        9.2388        .13071E-03   -1.5095    
   9  Prefactor     6.4887        14.773        .15754E-03   -1.5198    
  10  Prefactor     1.9485        5.6415        .29175E-03   -1.5429    
  11  Prefactor     .10000E-03    1.7739        .19481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.594        15.009        .95482E-04   -1.4869    
  13  Prefactor     .10000E-03    118.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0438        11.004        .81670E-03   -1.5216    
  16  Prefactor     .10000E-03    70.475        .43725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .82442        .22043        .30396E-03   -.99169    
  18  Prefactor     1.0649        .16327        .20297E-03   -.90598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52883e-10
Minuit parameter uncertainties:
  1  19.0249
  2  3.4769e-05
  3  4.1293e-07
  4  1.18703e-06
  5  5.04997
  6  11.1602
  7  9.26066
  8  9.2402
  9  14.7811
  10  5.643
  11  7.54545e-07
  12  15.0123
  13  8.63269e-06
  14  1.61965e-06
  15  11.0073
  16  2.92459e-05
  17  0.220669
  18  0.163343
Done.

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

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  1.044e+01  5.050e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  2.071e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.065e+00  1.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  8.244e-01  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.93
Ra Dec: 5.638 6.134
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 7.31e-08 +/- 3.53e-08
Energy Flux (Fixed Index): 3.87e-05 +/- 1.87e-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) = 5849.96257575
delta logL = 1.88262643668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5849.80269859
delta logL = 2.04250360289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4557       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2906       1.0000          .0000       5.0000    
     3 'Normalizat'    .86547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5849.803     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4433        4.1251        .36720E-02   -.96810E-04
   2  alpha         1.2899        .27698        .20931       -.38652E-04
   3  Normalizat    .86562        .18741        .67245E-01    .18676E-04
   4  Prefactor     1.0521        .14118        .39778E-01    .14947E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.44326
  alpha      = 1.28993
  Normalizat = 0.865623
  Prefactor  = 1.05206
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.803     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4433        5.0584        .10582E-03   -1.5162    
   2  alpha         1.2899        .35336        .88920E-02   -.50525    
   3  Normalizat    .86562        .21405        .29749E-03   -.97679    
   4  Prefactor     1.0521        .16155        .20415E-03   -.91014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25519e-10
Minuit parameter uncertainties:
  1  5.05868
  2  0.354914
  3  0.214264
  4  0.161622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/880232': 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) = 5849.80269397
delta logL = 2.0425082189

Extracting fit parameters...

4FGL J0022.5+0608
   Spectrum: LogParabola
103         norm:  7.443e+00  5.059e+00  1.000e-04  1.000e+04 ( 1.000e-12)
104        alpha:  1.290e+00  3.549e-01  0.000e+00  5.000e+00 ( 1.000e+00)
105         beta:  5.138e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
106           Eb:  8.504e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.052e+00  1.616e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  8.656e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.01
Ra Dec: 5.638 6.134
Photon Index (Free Index): 1.29 +/- 0.35
Photon Flux (Free Index): 3.03e-08 +/- 2.05e-08
Energy Flux (Free Index): 1.20e-04 +/- 9.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/880232/cmap_HighResolution_651196801_651456001_4FGL_J0022.5+0608_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.31e-08', energy_flux2='1.20e-04', photon_flux_error='3.53e-08', dlogl='2.04e+00', energy_flux='3.87e-05', photon_flux2='3.03e-08', job_status='DONE', time_completed='2021-08-24 00:12:56.346460', photon_index_error2='0.35', photon_index2='1.29', ts='25.93', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='9.62e-05', EG='0.82', time_epoch_completed='1629789176.35', return_code='0', job_id='880232', GAL2='1.05', EG2='0.87', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='2.05e-08', ts2='30.01', photon_index='2.07' WHERE bin_id='1589' AND source_name='4FGL J0022.5+0608' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 24 00:12:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 880232: <4FGL_J0022.5+0608_daily_bin1589> in cluster <slac> Done

Job <4FGL_J0022.5+0608_daily_bin1589> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug 24 00:00:29 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 24 00:00:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 24 00:00:31 2021
Terminated at Tue Aug 24 00:12:59 2021
Results reported at Tue Aug 24 00:12:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0022.5+0608_daily_bin1589 5.6376 6.1343 651196801 651456001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0022.5+0608 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   502.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            750 sec.

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

