/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 = 7476
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin299
RA = 185.627, Dec = 4.2389
tmin = 316828801, tmax = 317088001
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='535539', job_status='RUN', time_executed='2021-09-05 10:10:54.326337', time_epoch_executed='1630861854.33' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535539/ft1_4FGL_J1222.5+0414_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535539/ft2_4FGL_J1222.5+0414_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535539/ft1_4FGL_J1222.5+0414_daily_bin299.fits outfile=/scratch/kocevski/535539/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin299.fits ra=185.627 dec=4.2389 rad=12.0 tmin=316828801.0 tmax=317088001.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.53
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535539/ft1_filtered_4FGL_J1222.5+0414_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/535539/ft2_4FGL_J1222.5+0414_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/535539/ltcube_316828801_317088001_4FGL_J1222.5+0414_daily_bin299.fits outfile=/scratch/kocevski/535539/expmap_316828801_317088001_4FGL_J1222.5+0414_daily_bin299.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/535539/ltcube_316828801_317088001_4FGL_J1222.5+0414_daily_bin299.fits
.....................!
real 190.30
user 184.95
sys 4.82

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/535539/ft1_filtered_4FGL_J1222.5+0414_daily_bin299.fits scfile=/scratch/kocevski/535539/ft2_4FGL_J1222.5+0414_daily_bin299.fits outfile=/scratch/kocevski/535539/cmap_316828801_317088001_4FGL_J1222.5+0414_daily_bin299.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535539/ft1_filtered_4FGL_J1222.5+0414_daily_bin299.fits scfile=/scratch/kocevski/535539/ft2_4FGL_J1222.5+0414_daily_bin299.fits outfile=/scratch/kocevski/535539/cmap_HighResolution_316828801_317088001_4FGL_J1222.5+0414_daily_bin299.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.53
user 0.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10703E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4460       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14100E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3518       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9328       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3077       1.0000         .10000E-03   10000.    
    13 'norm      '    .11234       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.544       1.0000         .10000E-03   10000.    
    15 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6551       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3223       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.8021       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8324       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3185       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87406       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=   7018.849     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3513 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2198        .98123E-09** at limit **
   2  Prefactor     .10000E-03    22.828       -.13094E-05** at limit **
   3  Prefactor     .10000E-03    12.384        .27947E-07** at limit **
   4  Prefactor     .10000E-03    1.7483       -.22477E-08** at limit **
   5  Prefactor     4.4446        14.037        .57235E-05   -.37895E-03
   6  Prefactor     .10026E-03    7.8079        .24115E-05** at limit **
   7  Prefactor     35.742        89.282       -.60682E-05   -.71892E-04
   8  Prefactor     .10001E-03    36.275       -.49867E-05** at limit **
   9  Prefactor     19.647        23.220       -.65681E-06   -.12148E-03
  10  Prefactor     2.3218        34.958       -.43025E-05   -.20744E-03
  11  Prefactor     9.9315        13.825        .18337E-05   -.42711E-03
  12  norm          1.3085        2.1491       -.27446E-06   -.32989E-03
  13  norm          .15372        1.8854        .20034E-06   -.20657E-03
  14  Prefactor     27.509        35.525       -.28494E-05   -.33193E-03
  15  norm          .10001E-03    93.970        .47797E-05** at limit **
  16  Prefactor     .10001E-03    184.44       -.35070E-05** at limit **
  17  norm          2.8915        .74961       -.12915E-07   -.98688E-03
  18  Prefactor     .10000E-03    6.3402        .10125E-07** at limit **
  19  Prefactor     .10001E-03    34.170        .40516E-05** at limit **
  20  Prefactor     .10000E-03    3.0468        .17335E-08** at limit **
  21  norm          1.6547        1.5240        .74719E-07   -.20283E-03
  22  Prefactor     4.3238        6.5783        .54429E-07   -.10188E-03
  23  Prefactor     .10000E-03    14.958       -.11490E-05** at limit **
  24  Prefactor     .10000E-03    15.582        .11998E-05** at limit **
  25  norm          4.8045        18.965        .46586E-06    .79222E-05
  26  Prefactor     8.8363        16.014        .83244E-06    .95912E-04
  27  Normalizat    1.3185        .21327        .16891E-07   -.30061E-03
  28  Prefactor     .87399        .16503       -.20092E-06   -.27405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44458
  Prefactor  = 0.00010026
  Prefactor  = 35.7422
  Prefactor  = 0.000100013
  Prefactor  = 19.647
  Prefactor  = 2.32185
  Prefactor  = 9.93154
  norm       = 1.30853
  norm       = 0.153719
  Prefactor  = 27.5086
  norm       = 0.000100013
  Prefactor  = 0.000100006
  norm       = 2.89148
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 1.65466
  Prefactor  = 4.32382
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 4.80455
  Prefactor  = 8.83632
  Normalizat = 1.31847
  Prefactor  = 0.873989
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.849     FROM HESSE     STATUS=OK           519 CALLS     4032 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7497        .10818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4446        15.161        .95488E-03   -1.5286    
   6  Prefactor     .10026E-03    38.889        .42293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.742        89.411        .67026E-04   -1.4512    
   8  Prefactor     .10001E-03    37.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.647        23.190        .90376E-04   -1.4821    
  10  Prefactor     2.3218        37.128        .26728E-03   -1.5403    
  11  Prefactor     9.9315        13.946        .63572E-03   -1.5078    
  12  norm          1.3085        2.0774        .13668E-03   -1.5479    
  13  norm          .15372        20.460        .20069E-02   -1.5630    
  14  Prefactor     27.509        36.337        .76334E-04   -1.4659    
  15  norm          .10001E-03    95.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    185.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8915        .75028        .32383E-04   -1.5368    
  18  Prefactor     .10000E-03    6.3620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    35.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.0582        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6547        1.5067        .93792E-04   -1.5451    
  22  Prefactor     4.3238        6.5693        .19376E-03   -1.5292    
  23  Prefactor     .10000E-03    15.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.8045        18.964        .18359E-03   -1.5270    
  26  Prefactor     8.8363        16.139        .13487E-03   -1.5113    
  27  Normalizat    1.3185        .25360        .27446E-03   -.83017    
  28  Prefactor     .87399        .19495        .26702E-03   -.97056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47254e-09
Minuit parameter uncertainties:
  1  8.20252e-07
  2  0.000306174
  3  3.85276e-05
  4  1.90096e-07
  5  15.174
  6  0.00636477
  7  89.7493
  8  0.00142613
  9  23.2005
  10  18.5827
  11  13.9507
  12  2.07751
  13  3.54698
  14  36.3659
  15  0.00223426
  16  0.00206441
  17  0.750284
  18  9.61084e-07
  19  0.00114588
  20  8.77774e-07
  21  1.50671
  22  6.57035
  23  0.000223644
  24  0.000224533
  25  18.9874
  26  16.1468
  27  0.253841
  28  0.195103
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.537e-01  3.547e+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.740e-01  1.951e-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.318e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/535539/likelihoodResults_316828801_317088001_4FGL_J1222.5+0414_daily_bin299.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) = 7018.84838455
delta logL = 0.000346938046278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7018.83794573
delta logL = 0.010785755554

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26130       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1158       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87992       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7018.838     FROM MIGRAD    STATUS=FAILED       105 CALLS      388 TOTAL
                     EDM=   .25E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25547        345.51        .14190E-02    .36586E-02
   2  alpha         4.0941        3.5231        .50000        .44140E-03
   3  Normalizat    1.3075        .85018E-01    .27538E-03    .75125E-03
   4  Prefactor     .87982        .69792E-01    .26622E-03    .33630E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7018.838     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      479 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25547        345.51        .16179E-03    .36586E-02
   2  alpha         4.0941        3.5231        .62122E-02    .44140E-03
   3  Normalizat    1.3075        .85018E-01    .14975E-03    .75125E-03
   4  Prefactor     .87982        .69792E-01    .72093E-04    .33630E-03
                               ERR DEF=  .500    

 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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7018.838     FROM MIGRAD    STATUS=FAILED        76 CALLS      555 TOTAL
                     EDM=   .34E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25546        394.78        .11352E-04   -.28682E-03
   2  alpha         4.0941        3.6845        .50000        .44201E-03
   3  Normalizat    1.3075        .98628E-01    .11015E-04    .74249E-03
   4  Prefactor     .87982        .83007E-01    .10649E-04    .32711E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.255461
  alpha      = 4.09413
  Normalizat = 1.30753
  Prefactor  = 0.879823
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.838     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      582 TOTAL
                     EDM=   .34E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25546        395.09        .22704E-05   -1.5607    
   2  alpha         4.0941        3.6645        .50000        .69145    
   3  Normalizat    1.3075        .98792E-01    .22030E-05   -.83342    
   4  Prefactor     .87982        .83059E-01    .21298E-05   -.96850    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000336563
Minuit parameter uncertainties:
  1  20.2237
  2  79.4085
  3  0.098806
  4  0.0830705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535539': 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): 1
logL (Free Index) = 7018.83792342
delta logL = 0.0108080689843

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.555e-01  2.022e+01  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  4.094e+00  7.941e+01  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.798e-01  8.307e-02  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.308e+00  9.881e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
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/535539/cmap_HighResolution_316828801_317088001_4FGL_J1222.5+0414_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-05 10:25:47.770538', job_id='535539', GAL2='0.88', fit_tolerance='1e-08', EG2='1.31', EG='1.32', time_epoch_completed='1630862747.77', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.08e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='299' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 535539: <4FGL_J1222.5+0414_daily_bin299> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin299> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 10:10:33 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:10:34 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:10:34 2021
Terminated at Sun Sep  5 10:25:48 2021
Results reported at Sun Sep  5 10:25:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin299 185.627 4.2389 316828801 317088001 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 :                                   888.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

