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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin792
RA = 185.627, Dec = 4.2389
tmin = 444614401, tmax = 444873601
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='538557', job_status='RUN', time_executed='2021-09-05 10:21:06.094263', time_epoch_executed='1630862466.09' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='792'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538557/ft1_4FGL_J1222.5+0414_daily_bin792.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538557/ft1_4FGL_J1222.5+0414_daily_bin792.fits outfile=/scratch/kocevski/538557/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin792.fits ra=185.627 dec=4.2389 rad=12.0 tmin=444614401.0 tmax=444873601.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 4.35
user 3.29
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538557/ft1_filtered_4FGL_J1222.5+0414_daily_bin792.fits" evtable="EVENTS" scfile=/scratch/kocevski/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits sctable="SC_DATA" outfile=/scratch/kocevski/538557/ltcube_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.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/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits
.....................!
real 11.96
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538557/ft1_filtered_4FGL_J1222.5+0414_daily_bin792.fits evtable="EVENTS" scfile=/scratch/kocevski/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits sctable="SC_DATA" expcube=/scratch/kocevski/538557/ltcube_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.fits outfile=/scratch/kocevski/538557/expmap_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.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/538557/ltcube_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.fits
.....................!
real 193.95
user 186.18
sys 4.28

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/538557/ft1_filtered_4FGL_J1222.5+0414_daily_bin792.fits scfile=/scratch/kocevski/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits outfile=/scratch/kocevski/538557/cmap_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538557/ft1_filtered_4FGL_J1222.5+0414_daily_bin792.fits scfile=/scratch/kocevski/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits outfile=/scratch/kocevski/538557/cmap_HighResolution_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538557/ft1_filtered_4FGL_J1222.5+0414_daily_bin792.fits', '/scratch/kocevski/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits', expMap='/scratch/kocevski/538557/expmap_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.fits', expCube='/scratch/kocevski/538557/ltcube_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538557/Model_4FGL_J1222.5+0414_daily_bin792.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/538557/ft1_filtered_4FGL_J1222.5+0414_daily_bin792.fits
Spacecraft file(s): /scratch/kocevski/538557/ft2_4FGL_J1222.5+0414_daily_bin792.fits
Exposure map: /scratch/kocevski/538557/expmap_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.fits
Exposure cube: /scratch/kocevski/538557/ltcube_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538557/Model_4FGL_J1222.5+0414_daily_bin792.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) = 6921.26678073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32137E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.048       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0989       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6802       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    27.273       1.0000         .10000E-03   10000.    
    16 'Prefactor '    102.27       1.0000         .10000E-03   10000.    
    17 'norm      '    .91966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.632       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25128E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4136       1.0000         .10000E-03   10000.    
    21 'norm      '    .31062       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4633       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.998       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1059       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79000       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6921.235     FROM MIGRAD    STATUS=CONVERGED   1209 CALLS     4060 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7962        .17792E-02** at limit **
   2  Prefactor     .10000E-03    25.353        .18142E-02** at limit **
   3  Prefactor     .10000E-03    12.934        .36285E-03** at limit **
   4  Prefactor     .10000E-03    2.0711        .11675E-02** at limit **
   5  Prefactor     .10002E-03    81.942        .45801E-02** at limit **
   6  Prefactor     .10000E-03    8.9089        .18142E-02** at limit **
   7  Prefactor     21.094        53.292        .87233E-04    .31930E-04
   8  Prefactor     .10000E-03    25.872        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.9319        .18142E-02** at limit **
  10  Prefactor     .10000E-03    25.307        .18142E-02** at limit **
  11  Prefactor     13.053        12.432        .11089E-03   -.56285E-04
  12  norm          1.0981        1.9732        .15061E-02   -.29200E-03
  13  norm          1.6829        4.2916        .20044E-03    .17606E-03
  14  Prefactor     .10000E-03    14.688        .18142E-02** at limit **
  15  norm          27.262        47.322        .76712E-04   -.17043E-04
  16  Prefactor     102.27        116.28        .39757E-04    .37746E-05
  17  norm          .91957        .54508        .39795E-04   -.14084E-03
  18  Prefactor     15.630        9.5735        .10130E-03    .49380E-05
  19  Prefactor     .10001E-03    118.60        .61339E-02** at limit **
  20  Prefactor     7.4152        8.7672        .73650E-03    .36151E-04
  21  norm          .31048        .70820        .11233E-02    .34331E-03
  22  Prefactor     .10000E-03    3.2164        .14470E-02** at limit **
  23  Prefactor     .10000E-03    8.3180        .18142E-02** at limit **
  24  Prefactor     .10000E-03    40.042        .18142E-02** at limit **
  25  norm          3.4623        13.234        .10865E-02    .13717E-04
  26  Prefactor     28.999        13.702        .74399E-04    .10238E-04
  27  Normalizat    1.1056        .21272        .25353E-03    .59952E-04
  28  Prefactor     .79024        .17002        .24332E-03    .24763E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 21.0937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0529
  norm       = 1.09808
  norm       = 1.68292
  Prefactor  = 0.0001
  norm       = 27.2624
  Prefactor  = 102.269
  norm       = 0.919569
  Prefactor  = 15.6301
  Prefactor  = 0.000100006
  Prefactor  = 7.4152
  norm       = 0.310478
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.46234
  Prefactor  = 28.9994
  Normalizat = 1.10556
  Prefactor  = 0.790242
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.235     FROM HESSE     STATUS=OK           499 CALLS     4559 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7963        .35585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.935        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0712        .23350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    84.132        .18320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9117        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.094        53.151        .34893E-05   -1.4789    
   8  Prefactor     .10000E-03    25.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.053        12.433        .44356E-05   -1.4985    
  12  norm          1.0981        1.9718        .60242E-04   -1.5498    
  13  norm          1.6829        4.2835        .80176E-05   -1.5449    
  14  Prefactor     .10000E-03    14.689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.262        47.294        .30685E-05   -1.4663    
  16  Prefactor     102.27        116.27        .79514E-05   -1.3682    
  17  norm          .91957        .54482        .15918E-05   -1.5516    
  18  Prefactor     15.630        9.5573        .40520E-05   -1.4917    
  19  Prefactor     .10001E-03    122.99        .24536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4152        8.7646        .29460E-04   -1.5163    
  21  norm          .31048        .70708        .44933E-04   -1.5597    
  22  Prefactor     .10000E-03    3.2175        .28941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3184        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    40.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4623        13.232        .43461E-04   -1.5336    
  26  Prefactor     28.999        13.701        .29760E-05   -1.4630    
  27  Normalizat    1.1056        .21287        .10141E-04   -.89573    
  28  Prefactor     .79024        .17019        .97329E-05   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54139e-10
Minuit parameter uncertainties:
  1  2.26094e-07
  2  1.34104e-05
  3  0.000135336
  4  2.51163e-07
  5  0.0026867
  6  2.39656e-05
  7  53.2708
  8  3.87218e-05
  9  8.01032e-07
  10  4.02482e-05
  11  12.4358
  12  1.97187
  13  4.28433
  14  3.80404e-05
  15  47.3589
  16  116.534
  17  0.544827
  18  9.55819
  19  0.00166257
  20  8.76613
  21  0.707098
  22  2.01161e-06
  23  1.62348e-05
  24  8.25324e-06
  25  13.2436
  26  13.7023
  27  0.21304
  28  0.170299
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.683e+00  4.284e+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:  7.902e-01  1.703e-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:  1.106e+00  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/538557/likelihoodResults_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.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) = 6921.08791603
delta logL = 0.146641404091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6921.08401829
delta logL = 0.150539145518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7149       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3776       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80133       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6921.084     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7219        3.1069        .14004E-03    .78455E-03
   2  alpha         3.3805        1.3652        .36353E-01    .34756E-04
   3  Normalizat    1.0846        .20895        .25556E-03   -.10543E-04
   4  Prefactor     .80155        .16851        .24175E-03   -.77360E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72188
  alpha      = 3.38049
  Normalizat = 1.0846
  Prefactor  = 0.801547
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.084     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7219        2.8549        .56015E-05   -1.5446    
   2  alpha         3.3805        1.2666        .14541E-02    .35992    
   3  Normalizat    1.0846        .20939        .10222E-04   -.90248    
   4  Prefactor     .80155        .16877        .96698E-05   -.99671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80133e-10
Minuit parameter uncertainties:
  1  2.85513
  2  1.33842
  3  0.209553
  4  0.16888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538557': 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) = 6921.08400648
delta logL = 0.150550947154

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.722e+00  2.855e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.380e+00  1.338e+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:  8.015e-01  1.689e-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:  1.085e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/538557/cmap_HighResolution_444614401_444873601_4FGL_J1222.5+0414_daily_bin792.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-05 10:36:11.685196', job_id='538557', GAL2='0.80', fit_tolerance='1e-08', EG2='1.08', EG='1.11', time_epoch_completed='1630863371.69', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.51e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='792' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 538557: <4FGL_J1222.5+0414_daily_bin792> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin792> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:20:42 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:20:43 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:20:43 2021
Terminated at Sun Sep  5 10:36:12 2021
Results reported at Sun Sep  5 10:36:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin792 185.627 4.2389 444614401 444873601 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 :                                   897.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

