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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin490
RA = 185.627, Dec = 4.2389
tmin = 366336001, tmax = 366595201
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='537075', job_status='RUN', time_executed='2021-09-05 10:16:00.453542', time_epoch_executed='1630862160.45' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537075

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537075/ft1_4FGL_J1222.5+0414_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537075/ft2_4FGL_J1222.5+0414_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537075/ft1_4FGL_J1222.5+0414_daily_bin490.fits outfile=/scratch/kocevski/537075/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin490.fits ra=185.627 dec=4.2389 rad=12.0 tmin=366336001.0 tmax=366595201.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 5.48
user 5.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537075/ft1_filtered_4FGL_J1222.5+0414_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/537075/ft2_4FGL_J1222.5+0414_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/537075/ltcube_366336001_366595201_4FGL_J1222.5+0414_daily_bin490.fits outfile=/scratch/kocevski/537075/expmap_366336001_366595201_4FGL_J1222.5+0414_daily_bin490.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/537075/ltcube_366336001_366595201_4FGL_J1222.5+0414_daily_bin490.fits
.....................!
real 191.16
user 187.00
sys 3.69

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/537075/ft1_filtered_4FGL_J1222.5+0414_daily_bin490.fits scfile=/scratch/kocevski/537075/ft2_4FGL_J1222.5+0414_daily_bin490.fits outfile=/scratch/kocevski/537075/cmap_366336001_366595201_4FGL_J1222.5+0414_daily_bin490.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/537075/ft1_filtered_4FGL_J1222.5+0414_daily_bin490.fits scfile=/scratch/kocevski/537075/ft2_4FGL_J1222.5+0414_daily_bin490.fits outfile=/scratch/kocevski/537075/cmap_HighResolution_366336001_366595201_4FGL_J1222.5+0414_daily_bin490.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11199E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.189       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15715E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .71280E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.5950       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .72272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.127       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.5021       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8304       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.9171       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87412       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=   6710.873     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3484 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2108       -.56770E-07** at limit **
   2  Prefactor     .10000E-03    145.69       -.57369E-05** at limit **
   3  Prefactor     .10000E-03    4.3808       -.39663E-07** at limit **
   4  Prefactor     .10000E-03    2.9419       -.19588E-06** at limit **
   5  Prefactor     .10000E-03    9.6986        .99683E-07** at limit **
   6  Prefactor     37.194        16.974       -.95538E-07    .30275E-04
   7  Prefactor     .10000E-03    427.08        .11326E-04** at limit **
   8  Prefactor     .10000E-03    46.504       -.47360E-05** at limit **
   9  Prefactor     .10000E-03    75.890       -.13131E-04** at limit **
  10  Prefactor     .10000E-03    10.397        .24536E-07** at limit **
  11  Prefactor     .10000E-03    2.4981       -.45603E-07** at limit **
  12  norm          4.5957        2.3016       -.11059E-07    .99433E-04
  13  norm          3.8906        3.6206       -.83725E-06    .25848E-04
  14  Prefactor     .10000E-03    37.788        .29564E-05** at limit **
  15  norm          .10000E-03    14.078        .19048E-06** at limit **
  16  Prefactor     .10000E-03    66.306        .92747E-06** at limit **
  17  norm          .72267        .45943        .17119E-08    .53377E-03
  18  Prefactor     .10000E-03    6.8340        .51248E-06** at limit **
  19  Prefactor     40.180        38.908        .39974E-06   -.15435E-04
  20  Prefactor     .10000E-03    6.0189        .31862E-06** at limit **
  21  norm          5.5018        1.8670        .36141E-07    .81532E-04
  22  Prefactor     3.8279        7.8051       -.17251E-05   -.46413E-05
  23  Prefactor     .10000E-03    6.1306       -.17913E-06** at limit **
  24  Prefactor     .10000E-03    31.540       -.94026E-06** at limit **
  25  norm          6.9204        24.089        .65714E-06    .17848E-04
  26  Prefactor     .10000E-03    6.4193       -.32065E-07** at limit **
  27  Normalizat    1.1538        .20297       -.73957E-07    .14449E-03
  28  Prefactor     .87417        .16014        .10124E-05    .26912E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.59572
  norm       = 3.89063
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.722675
  Prefactor  = 0.0001
  Prefactor  = 40.1797
  Prefactor  = 0.0001
  norm       = 5.50181
  Prefactor  = 3.82789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.92035
  Prefactor  = 0.0001
  Normalizat = 1.15384
  Prefactor  = 0.874168
 **********
 **   18 **HESSE 
 **********

 FCN=   6710.873     FROM HESSE     STATUS=OK           513 CALLS     3997 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    146.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3934        .16745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9548        .13722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.194        16.950        .65720E-04   -1.4487    
   7  Prefactor     .10000E-03    430.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    74.765        .48742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5003        .12643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.5957        2.2942        .84781E-04   -1.5279    
  13  norm          3.8906        3.6451        .13617E-03   -1.5313    
  14  Prefactor     .10000E-03    38.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    66.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .72267        .44382        .40369E-04   -1.5538    
  18  Prefactor     .10000E-03    6.8373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.180        39.220        .63277E-04   -1.4439    
  20  Prefactor     .10000E-03    6.0868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5018        1.8643        .61783E-04   -1.5239    
  22  Prefactor     3.8279        7.8110        .20622E-03   -1.5317    
  23  Prefactor     .10000E-03    6.1323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    31.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.9204        23.975        .15254E-03   -1.5182    
  26  Prefactor     .10000E-03    6.4600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1538        .24002        .27139E-03   -.88041    
  28  Prefactor     .87417        .18671        .25294E-03   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33169e-10
Minuit parameter uncertainties:
  1  1.40083e-06
  2  0.000247065
  3  4.24243e-06
  4  7.98649e-07
  5  1.12083e-05
  6  16.9524
  7  0.00038529
  8  6.15619e-05
  9  8.75197e-05
  10  1.9465e-05
  11  8.51658e-07
  12  2.29422
  13  3.64536
  14  6.71671e-05
  15  3.30629e-05
  16  5.38242e-05
  17  0.443825
  18  1.83152e-05
  19  39.2447
  20  1.14477e-05
  21  1.86429
  22  7.81312
  23  1.19475e-06
  24  4.81754e-05
  25  24.0087
  26  6.84339e-06
  27  0.240249
  28  0.18685
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.891e+00  3.645e+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:  8.742e-01  1.869e-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.154e+00  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.56
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 5.99e-08 +/- 5.60e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/537075/likelihoodResults_366336001_366595201_4FGL_J1222.5+0414_daily_bin490.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) = 6709.73460315
delta logL = 1.13863537732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6709.72319164
delta logL = 1.15004688432

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5933       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5906       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92499       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6709.723     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      294 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5934        5.9138        .58499E-04   -.11272E-04
   2  alpha         4.5918        4.7787        .40770E-01   -.39945E-05
   3  Normalizat    1.0739        .23455        .27963E-03   -.36591E-06
   4  Prefactor     .92512        .18925        .24673E-03   -.13823E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59335
  alpha      = 4.5918
  Normalizat = 1.07392
  Prefactor  = 0.92512
 **********
 **   18 **HESSE 
 **********

 FCN=   6709.723     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .86E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5934        3.1767        .23400E-05   -1.5456    
   2  alpha         4.5918        4.1167        .16308E-02    .99127    
   3  Normalizat    1.0739        .23461        .11185E-04   -.90594    
   4  Prefactor     .92512        .18945        .98691E-05   -.95269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63311e-15
Minuit parameter uncertainties:
  1  3.177
  2  2.00641
  3  0.234834
  4  0.189582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537075': 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) = 6709.72318966
delta logL = 1.15004886355

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.593e+00  3.177e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  4.592e+00  2.006e+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:  9.251e-01  1.896e-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.074e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 185.627 4.239
Photon Index (Free Index): 4.59 +/- 2.01
Photon Flux (Free Index): 1.20e-07 +/- 7.28e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/537075/cmap_HighResolution_366336001_366595201_4FGL_J1222.5+0414_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', comment='SUCCESS', photon_flux='5.99e-08', energy_flux2='1.67e-05', photon_flux_error='5.60e-08', dlogl='1.15e+00', energy_flux='1.38e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-05 10:30:23.848320', photon_index_error2='2.01', photon_index2='4.59', ts='1.56', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.08e-05', EG='1.15', time_epoch_completed='1630863023.85', return_code='0', job_id='537075', GAL2='0.93', EG2='1.07', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='7.28e-08', ts2='4.13', photon_index='2.69' WHERE bin_id='490' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:30:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 537075: <4FGL_J1222.5+0414_daily_bin490> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin490> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:15:44 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:15:47 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:47 2021
Terminated at Sun Sep  5 10:30:24 2021
Results reported at Sun Sep  5 10:30:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin490 185.627 4.2389 366336001 366595201 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 :                                   858.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

