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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin947
RA = 185.627, Dec = 4.2389
tmin = 484790401, tmax = 485049601
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='540274', job_status='RUN', time_executed='2021-09-05 10:26:11.101531', time_epoch_executed='1630862771.1' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='947'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540274/ft1_4FGL_J1222.5+0414_daily_bin947.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540274/ft1_4FGL_J1222.5+0414_daily_bin947.fits outfile=/scratch/kocevski/540274/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin947.fits ra=185.627 dec=4.2389 rad=12.0 tmin=484790401.0 tmax=485049601.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.56
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.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/540274/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin947.fits evtable="EVENTS" outfile="/scratch/kocevski/540274/ft1_filtered_4FGL_J1222.5+0414_daily_bin947.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/540274/ft1_filtered_4FGL_J1222.5+0414_daily_bin947.fits" evtable="EVENTS" scfile=/scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits sctable="SC_DATA" outfile=/scratch/kocevski/540274/ltcube_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.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/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits
.....................!
real 11.97
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540274/ft1_filtered_4FGL_J1222.5+0414_daily_bin947.fits evtable="EVENTS" scfile=/scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits sctable="SC_DATA" expcube=/scratch/kocevski/540274/ltcube_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.fits outfile=/scratch/kocevski/540274/expmap_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.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/540274/ltcube_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.fits
.....................!
real 192.12
user 186.47
sys 5.23

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/540274/ft1_filtered_4FGL_J1222.5+0414_daily_bin947.fits scfile=/scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits outfile=/scratch/kocevski/540274/cmap_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540274/ft1_filtered_4FGL_J1222.5+0414_daily_bin947.fits scfile=/scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits outfile=/scratch/kocevski/540274/cmap_HighResolution_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540274/ft1_filtered_4FGL_J1222.5+0414_daily_bin947.fits', '/scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits', expMap='/scratch/kocevski/540274/expmap_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.fits', expCube='/scratch/kocevski/540274/ltcube_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540274/Model_4FGL_J1222.5+0414_daily_bin947.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/540274/ft1_filtered_4FGL_J1222.5+0414_daily_bin947.fits
Spacecraft file(s): /scratch/kocevski/540274/ft2_4FGL_J1222.5+0414_daily_bin947.fits
Exposure map: /scratch/kocevski/540274/expmap_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.fits
Exposure cube: /scratch/kocevski/540274/ltcube_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540274/Model_4FGL_J1222.5+0414_daily_bin947.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6021.77752022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7718       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1495       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14422E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.162       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1621       1.0000         .10000E-03   10000.    
    12 'norm      '    .33169       1.0000         .10000E-03   10000.    
    13 'norm      '    .19113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7922       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.514       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7469       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.406       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .68542       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3671       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=   6021.746     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3493 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9448        .90474E-07** at limit **
   2  Prefactor     .10001E-03    60.002        .18992E-05** at limit **
   3  Prefactor     10.529        9.3361        .13313E-06   -.20462E-04
   4  Prefactor     .10000E-03    6.0983        .18213E-06** at limit **
   5  Prefactor     4.7628        13.271        .10942E-05    .73513E-04
   6  Prefactor     5.1508        15.736        .93290E-06    .65299E-05
   7  Prefactor     .10000E-03    108.10        .10765E-05** at limit **
   8  Prefactor     .10001E-03    127.42       -.25674E-05** at limit **
   9  Prefactor     48.185        29.867        .17627E-06   -.17372E-04
  10  Prefactor     .10000E-03    33.793       -.25227E-06** at limit **
  11  Prefactor     2.1159        76.991       -.18976E-05    .64930E-04
  12  norm          .34556        10.814        .43021E-05   -.59249E-03
  13  norm          .10000E-03    1.6944       -.10189E-06** at limit **
  14  Prefactor     .10000E-03    13.022        .24770E-07** at limit **
  15  norm          .10000E-03    26.542        .11427E-05** at limit **
  16  Prefactor     .10000E-03    41.157       -.75756E-06** at limit **
  17  norm          1.4361        .66364        .51316E-07   -.77244E-03
  18  Prefactor     2.7933        8.1663        .10760E-05    .14872E-03
  19  Prefactor     29.237        28.414       -.41216E-06   -.49472E-04
  20  Prefactor     12.518        10.031        .98209E-07   -.94463E-04
  21  norm          1.7472        1.6888        .21516E-06    .30856E-03
  22  Prefactor     .10000E-03    4.8588        .34582E-07** at limit **
  23  Prefactor     .10000E-03    22.186       -.56033E-06** at limit **
  24  Prefactor     .10000E-03    41.990       -.11677E-05** at limit **
  25  norm          .10000E-03    23.192        .22982E-06** at limit **
  26  Prefactor     10.406        14.253        .29598E-05    .48274E-03
  27  Normalizat    .68559        .22519       -.15739E-05   -.20013E-03
  28  Prefactor     1.3669        .18265       -.34847E-06   -.28663E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 10.5291
  Prefactor  = 0.0001
  Prefactor  = 4.76285
  Prefactor  = 5.15075
  Prefactor  = 0.000100003
  Prefactor  = 0.000100012
  Prefactor  = 48.1848
  Prefactor  = 0.0001
  Prefactor  = 2.1159
  norm       = 0.345558
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100001
  norm       = 1.43608
  Prefactor  = 2.79331
  Prefactor  = 29.2367
  Prefactor  = 12.5185
  norm       = 1.74717
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 10.4057
  Normalizat = 0.685594
  Prefactor  = 1.36695
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.746     FROM HESSE     STATUS=OK           521 CALLS     4014 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    60.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.529        9.3354        .12346E-03   -1.5059    
   4  Prefactor     .10000E-03    6.1763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7628        13.288        .18418E-03   -1.5271    
   6  Prefactor     5.1508        15.722        .17716E-03   -1.5254    
   7  Prefactor     .10000E-03    108.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    129.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.185        30.226        .57780E-04   -1.4319    
  10  Prefactor     .10000E-03    33.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1159        135.97        .28012E-03   -1.5417    
  12  norm          .34556        21.378        .20047E-02   -1.5590    
  13  norm          .10000E-03    6.8171        .18749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    26.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4361        .65362        .37756E-04   -1.5468    
  18  Prefactor     2.7933        8.1214        .24349E-03   -1.5374    
  19  Prefactor     29.237        28.246        .74088E-04   -1.4626    
  20  Prefactor     12.518        10.019        .11323E-03   -1.5000    
  21  norm          1.7472        1.6775        .93493E-04   -1.5444    
  22  Prefactor     .10000E-03    4.8895        .16701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    23.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.406        14.754        .62103E-03   -1.5063    
  27  Normalizat    .68559        .26063        .35557E-03   -1.0446    
  28  Prefactor     1.3669        .21235        .22373E-03   -.81338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47487e-09
Minuit parameter uncertainties:
  1  1.07797e-05
  2  0.00146874
  3  9.33673
  4  2.04264e-05
  5  13.2965
  6  15.7347
  7  0.00118007
  8  0.00248521
  9  30.2359
  10  0.000120571
  11  34.0039
  12  5.43724
  13  4.26934e-06
  14  9.52077e-06
  15  0.000533229
  16  0.000486422
  17  0.653624
  18  8.12457
  19  28.2589
  20  10.02
  21  1.6775
  22  3.7564e-06
  23  0.000259533
  24  0.000657644
  25  9.7724e-05
  26  14.7587
  27  0.261097
  28  0.212483
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  4.269e-06  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.367e+00  2.125e-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.856e-01  2.611e-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.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540274/likelihoodResults_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.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): 102
logL (Free Index) = 6021.74704501
delta logL = -0.000699705585248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6021.74634822
delta logL = -2.92257118417e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14748E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7542       1.0000          .0000       5.0000    
     3 'Normalizat'    .68604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3666       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=   6021.558     FROM MIGRAD    STATUS=CONVERGED    152 CALLS      326 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38250        .67488        .17790E-02   -.14744E-02
   2  alpha         5.0000        4.3256        .50000    ** at limit **
   3  Normalizat    .63695        .25556        .35557E-02   -.19532E-04
   4  Prefactor     1.3928        .21424        .22373E-03   -.23527E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.382498
  alpha      = 5
  Normalizat = 0.636951
  Prefactor  = 1.39276
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.558     FROM HESSE     STATUS=OK            33 CALLS      359 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38250        .70686        .71159E-04   -1.5832    
   2  alpha         5.0000        4.4187        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .63695        .25559        .14223E-03   -1.0644    
   4  Prefactor     1.3928        .21434        .89490E-05   -.80589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35033e-12
Minuit parameter uncertainties:
  1  0.70688
  2  2.75962e-06
  3  0.256063
  4  0.214481
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540274': 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) = 6021.55757451
delta logL = 0.188770790999

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.825e-01  7.069e-01  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  5.000e+00  2.760e-06  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.393e+00  2.145e-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.370e-01  2.561e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/540274/cmap_HighResolution_484790401_485049601_4FGL_J1222.5+0414_daily_bin947.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-05 10:39:22.341307', job_id='540274', GAL2='1.39', fit_tolerance='1e-08', EG2='0.64', EG='0.69', time_epoch_completed='1630863562.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='1.89e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='947' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:39:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 540274: <4FGL_J1222.5+0414_daily_bin947> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin947> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:25:42 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:25:44 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:25:44 2021
Terminated at Sun Sep  5 10:39:23 2021
Results reported at Sun Sep  5 10:39:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin947 185.627 4.2389 484790401 485049601 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 :                                   787.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

