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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin583
RA = 185.627, Dec = 4.2389
tmin = 390441601, tmax = 390700801
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='537217', job_status='RUN', time_executed='2021-09-05 10:18:56.583790', time_epoch_executed='1630862336.58' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537217

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537217/ft1_4FGL_J1222.5+0414_daily_bin583.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537217/ft1_4FGL_J1222.5+0414_daily_bin583.fits outfile=/scratch/kocevski/537217/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin583.fits ra=185.627 dec=4.2389 rad=12.0 tmin=390441601.0 tmax=390700801.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.54
user 3.31
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.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/537217/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin583.fits evtable="EVENTS" outfile="/scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits" evtable="EVENTS" scfile=/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits sctable="SC_DATA" outfile=/scratch/kocevski/537217/ltcube_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.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/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits
.....................!
real 14.17
user 13.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits sctable="SC_DATA" expcube=/scratch/kocevski/537217/ltcube_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.fits outfile=/scratch/kocevski/537217/expmap_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.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/537217/ltcube_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.fits
.....................!
real 190.10
user 185.07
sys 4.65

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 189 point sources and 0 extended sources

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits scfile=/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits outfile=/scratch/kocevski/537217/cmap_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.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=185.627 yref=4.2389 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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits scfile=/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits outfile=/scratch/kocevski/537217/cmap_HighResolution_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.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=185.627 yref=4.2389 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits evtable="EVENTS" scfile=/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537217/Model_4FGL_J1222.5+0414_daily_bin583.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/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits.....................!
real 31.84
user 30.45
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits', '/scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits', expMap='/scratch/kocevski/537217/expmap_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.fits', expCube='/scratch/kocevski/537217/ltcube_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537217/Model_4FGL_J1222.5+0414_daily_bin583.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/537217/ft1_filtered_4FGL_J1222.5+0414_daily_bin583.fits
Spacecraft file(s): /scratch/kocevski/537217/ft2_4FGL_J1222.5+0414_daily_bin583.fits
Exposure map: /scratch/kocevski/537217/expmap_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.fits
Exposure cube: /scratch/kocevski/537217/ltcube_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537217/Model_4FGL_J1222.5+0414_daily_bin583.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) = 2784.4447552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    97.363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5647       1.0000         .10000E-03   10000.    
     6 'Prefactor '    117.78       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.128       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .83178       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0794       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4157       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0682       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.629       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11991E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.847       1.0000         .10000E-03   10000.    
    21 'norm      '    .20130       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.912       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .61186       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0049       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2784.412     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3512 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.208        .49420E-07** at limit **
   2  Prefactor     97.768        232.09       -.55497E-05    .42074E-05
   3  Prefactor     3.3134        33.347        .96579E-05    .92512E-04
   4  Prefactor     .10000E-03    4.8245        .28389E-06** at limit **
   5  Prefactor     9.5766        23.625       -.16359E-05   -.53208E-04
   6  Prefactor     117.81        116.03        .19281E-06    .70447E-05
   7  Prefactor     .10000E-03    71.292       -.11641E-05** at limit **
   8  Prefactor     .10000E-03    26.861        .12331E-05** at limit **
   9  Prefactor     .10000E-03    15.218        .92582E-07** at limit **
  10  Prefactor     15.104        39.278       -.12975E-06   -.14069E-04
  11  Prefactor     .10000E-03    15.191       -.16278E-06** at limit **
  12  norm          .83139        3.2811        .64042E-06    .12639E-03
  13  norm          1.0797        3.3016        .87988E-06    .95167E-04
  14  Prefactor     4.4101        72.180        .69131E-07   -.30880E-05
  15  norm          .10000E-03    35.769       -.28940E-06** at limit **
  16  Prefactor     .10000E-03    69.874       -.12573E-06** at limit **
  17  norm          1.0681        .81286        .11638E-06   -.11152E-03
  18  Prefactor     26.627        15.798        .27552E-06    .31549E-04
  19  Prefactor     .10000E-03    118.41       -.51576E-05** at limit **
  20  Prefactor     16.848        20.071       -.76333E-07   -.49609E-05
  21  norm          .20643        3.0641        .11107E-05   -.40339E-03
  22  Prefactor     .10000E-03    12.466       -.33906E-06** at limit **
  23  Prefactor     .10000E-03    70.094       -.83931E-06** at limit **
  24  Prefactor     .10000E-03    18.059       -.78220E-07** at limit **
  25  norm          .10000E-03    47.937       -.65296E-06** at limit **
  26  Prefactor     39.918        19.777        .83031E-06    .50562E-05
  27  Normalizat    .61134        .35124       -.11204E-04   -.38270E-04
  28  Prefactor     1.0052        .26068        .58580E-05   -.20174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 97.768
  Prefactor  = 3.31337
  Prefactor  = 0.0001
  Prefactor  = 9.57663
  Prefactor  = 117.808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1037
  Prefactor  = 0.0001
  norm       = 0.831391
  norm       = 1.07966
  Prefactor  = 4.41009
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0681
  Prefactor  = 26.627
  Prefactor  = 0.0001
  Prefactor  = 16.8476
  norm       = 0.206431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.9178
  Normalizat = 0.61134
  Prefactor  = 1.00517
 **********
 **   18 **HESSE 
 **********

 FCN=   2784.412     FROM HESSE     STATUS=OK           521 CALLS     4033 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     97.768        232.62        .20369E-03   -1.3727    
   3  Prefactor     3.3134        34.688        .22176E-03   -1.5344    
   4  Prefactor     .10000E-03    4.8266        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5766        23.692        .12958E-03   -1.5089    
   6  Prefactor     117.81        115.95        .18539E-03   -1.3533    
   7  Prefactor     .10000E-03    71.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.104        39.141        .10297E-03   -1.4930    
  11  Prefactor     .10000E-03    15.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .83139        3.2146        .18417E-03   -1.5526    
  13  norm          1.0797        3.2020        .15578E-03   -1.5500    
  14  Prefactor     4.4101        72.102        .19165E-03   -1.5288    
  15  norm          .10000E-03    35.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    69.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0681        .80183        .38357E-04   -1.5501    
  18  Prefactor     26.627        15.795        .77632E-04   -1.4675    
  19  Prefactor     .10000E-03    119.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.848        20.051        .97580E-04   -1.4887    
  21  norm          .20643        5.7792        .15591E-02   -1.5617    
  22  Prefactor     .10000E-03    12.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    70.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    48.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     39.918        19.799        .63447E-04   -1.4444    
  27  Normalizat    .61134        .36631        .32714E-03   -1.0750    
  28  Prefactor     1.0052        .27780        .21628E-03   -.92557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06499e-10
Minuit parameter uncertainties:
  1  1.83152e-05
  2  234.845
  3  21.457
  4  1.01677e-05
  5  23.7152
  6  116.171
  7  0.000196718
  8  0.000118581
  9  2.27293e-06
  10  39.2078
  11  4.44955e-05
  12  3.21528
  13  3.20249
  14  35.7143
  15  7.94509e-05
  16  1.17735e-06
  17  0.801841
  18  15.7976
  19  0.00015997
  20  20.059
  21  2.18419
  22  1.48156e-05
  23  0.000104115
  24  5.45714e-06
  25  0.000132564
  26  19.8025
  27  0.367772
  28  0.278193
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.080e+00  3.202e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.005e+00  2.782e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  6.113e-01  3.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537217/likelihoodResults_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.txt

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) = 2784.40681713
delta logL = 0.00518434040259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2784.40670378
delta logL = 0.00529768681281

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2784.407     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      197 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1249        40.675        .11046E-01   -.12481E-02
   2  alpha         2.4996        3.0241        .41152       -.74695E-05
   3  Normalizat    .61232        .28378        .73844E-01    .15758E-04
   4  Prefactor     1.0044        .23468        .44331E-01    .47410E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12487
  alpha      = 2.49962
  Normalizat = 0.61232
  Prefactor  = 1.00439
 **********
 **   18 **HESSE 
 **********

 FCN=   2784.407     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1249        3.1586        .15459E-03   -1.5496    
   2  alpha         2.4996        1.6251        .33231E-01   -.15070E-03
   3  Normalizat    .61232        .32252        .32692E-03   -1.0746    
   4  Prefactor     1.0044        .27016        .21634E-03   -.92583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37629e-09
Minuit parameter uncertainties:
  1  3.15906
  2  1.76911
  3  0.323519
  4  0.270528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537217': 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) = 2784.40670298
delta logL = 0.0052984921108

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.125e+00  3.159e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.500e+00  1.769e+00  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.004e+00  2.705e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  6.123e-01  3.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 185.627 4.239

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/537217/cmap_HighResolution_390441601_390700801_4FGL_J1222.5+0414_daily_bin583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-05', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2021-09-05 10:27:37.783616', job_id='537217', GAL2='1.00', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630862857.78', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.30e-03', ts2='0.16', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='583' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:27:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 537217: <4FGL_J1222.5+0414_daily_bin583> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin583> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:15:56 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:15:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:15:58 2021
Terminated at Sun Sep  5 10:27:38 2021
Results reported at Sun Sep  5 10:27:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin583 185.627 4.2389 390441601 390700801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   518.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             211.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            702 sec.

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

