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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin968
RA = 185.627, Dec = 4.2389
tmin = 490233601, tmax = 490492801
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='540316', job_status='RUN', time_executed='2021-09-05 10:28:39.449561', time_epoch_executed='1630862919.45' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='968'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540316

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540316/ft1_4FGL_J1222.5+0414_daily_bin968.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540316/ft2_4FGL_J1222.5+0414_daily_bin968.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540316/ft1_4FGL_J1222.5+0414_daily_bin968.fits outfile=/scratch/kocevski/540316/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin968.fits ra=185.627 dec=4.2389 rad=12.0 tmin=490233601.0 tmax=490492801.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.79
user 3.45
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540316/ft1_filtered_4FGL_J1222.5+0414_daily_bin968.fits evtable="EVENTS" scfile=/scratch/kocevski/540316/ft2_4FGL_J1222.5+0414_daily_bin968.fits sctable="SC_DATA" expcube=/scratch/kocevski/540316/ltcube_490233601_490492801_4FGL_J1222.5+0414_daily_bin968.fits outfile=/scratch/kocevski/540316/expmap_490233601_490492801_4FGL_J1222.5+0414_daily_bin968.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/540316/ltcube_490233601_490492801_4FGL_J1222.5+0414_daily_bin968.fits
.....................!
real 190.62
user 185.71
sys 4.54

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/540316/ft1_filtered_4FGL_J1222.5+0414_daily_bin968.fits scfile=/scratch/kocevski/540316/ft2_4FGL_J1222.5+0414_daily_bin968.fits outfile=/scratch/kocevski/540316/cmap_490233601_490492801_4FGL_J1222.5+0414_daily_bin968.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540316/ft1_filtered_4FGL_J1222.5+0414_daily_bin968.fits scfile=/scratch/kocevski/540316/ft2_4FGL_J1222.5+0414_daily_bin968.fits outfile=/scratch/kocevski/540316/cmap_HighResolution_490233601_490492801_4FGL_J1222.5+0414_daily_bin968.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.57
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.185       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.147       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .86131E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9746       1.0000         .10000E-03   10000.    
    13 'norm      '    10.265       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.561       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4736       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.818       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3498       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .34261E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    26.373       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8428       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .72297       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4145       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=   7650.674     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3003 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4758        .35482E-06** at limit **
   2  Prefactor     .10000E-03    34.738        .40548E-05** at limit **
   3  Prefactor     5.4938        7.0268        .65376E-07    .81585E-05
   4  Prefactor     5.7774        5.6520        .12510E-05   -.10544E-02
   5  Prefactor     .10000E-03    5.3619        .17829E-07** at limit **
   6  Prefactor     28.163        15.205       -.34529E-06   -.17999E-03
   7  Prefactor     .10001E-03    37.430       -.53741E-05** at limit **
   8  Prefactor     .10000E-03    8.8133        .84380E-07** at limit **
   9  Prefactor     .10000E-03    7.8114        .51016E-07** at limit **
  10  Prefactor     17.143        19.541        .41340E-06    .45709E-04
  11  Prefactor     .10009E-03    7.5101        .81765E-06** at limit **
  12  norm          1.9750        2.4414        .10073E-06   -.76811E-03
  13  norm          10.264        4.5724       -.18348E-06   -.26094E-03
  14  Prefactor     .10000E-03    20.435        .13991E-05** at limit **
  15  norm          10.584        37.268        .33784E-05    .65501E-04
  16  Prefactor     .10000E-03    61.668        .17539E-05** at limit **
  17  norm          1.4735        .57418       -.38596E-08   -.84150E-03
  18  Prefactor     .10000E-03    9.1186       -.10109E-06** at limit **
  19  Prefactor     .10000E-03    8.2563       -.42320E-06** at limit **
  20  Prefactor     11.819        7.6900       -.37692E-06   -.31427E-03
  21  norm          2.3497        1.5388        .23185E-07   -.11748E-03
  22  Prefactor     .10000E-03    4.8768        .31555E-07** at limit **
  23  Prefactor     .10002E-03    13.641       -.19092E-06** at limit **
  24  Prefactor     .10000E-03    21.472       -.18773E-05** at limit **
  25  norm          26.363        18.042        .16973E-06    .42081E-04
  26  Prefactor     5.8398        13.441        .51909E-07   -.19081E-04
  27  Normalizat    .72315        .20913        .18153E-07   -.81944E-04
  28  Prefactor     1.4143        .17331       -.29943E-07   -.71471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 5.49383
  Prefactor  = 5.77737
  Prefactor  = 0.0001
  Prefactor  = 28.1627
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1432
  Prefactor  = 0.000100088
  norm       = 1.97496
  norm       = 10.2641
  Prefactor  = 0.0001
  norm       = 10.5836
  Prefactor  = 0.000100001
  norm       = 1.47351
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8191
  norm       = 2.34969
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100001
  norm       = 26.3632
  Prefactor  = 5.83985
  Normalizat = 0.723153
  Prefactor  = 1.41431
 **********
 **   18 **HESSE 
 **********

 FCN=   7650.674     FROM HESSE     STATUS=OK           527 CALLS     3530 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4938        7.0223        .17138E-03   -1.5239    
   4  Prefactor     5.7774        7.0271        .83544E-03   -1.5227    
   5  Prefactor     .10000E-03    5.3662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     28.163        15.256        .75462E-04   -1.4646    
   7  Prefactor     .10001E-03    39.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.8166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.143        19.557        .96721E-04   -1.4880    
  11  Prefactor     .10009E-03    40.793        .40010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9750        2.2043        .13235E-03   -1.5427    
  13  norm          10.264        4.5915        .10334E-03   -1.5067    
  14  Prefactor     .10000E-03    20.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.584        37.697        .12329E-03   -1.5057    
  16  Prefactor     .10000E-03    61.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4735        .56606        .36861E-04   -1.5465    
  18  Prefactor     .10000E-03    9.3554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.819        7.7266        .11653E-03   -1.5020    
  21  norm          2.3497        1.5327        .83317E-04   -1.5401    
  22  Prefactor     .10000E-03    4.9550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10002E-03    14.703        .11650       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          26.363        18.044        .78007E-04   -1.4681    
  26  Prefactor     5.8398        13.447        .16615E-03   -1.5225    
  27  Normalizat    .72315        .24319        .36200E-03   -1.0299    
  28  Prefactor     1.4143        .20433        .23116E-03   -.79969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66353e-09
Minuit parameter uncertainties:
  1  3.18112e-05
  2  0.000768057
  3  7.02339
  4  7.02813
  5  6.80819e-07
  6  15.2578
  7  0.00107539
  8  6.80152e-06
  9  1.36211e-06
  10  19.5646
  11  0.0037927
  12  2.20438
  13  4.59168
  14  0.000196729
  15  37.7818
  16  0.000435246
  17  0.566059
  18  1.17592e-05
  19  3.94526e-05
  20  7.72725
  21  1.53274
  22  2.98677e-06
  23  0.00113098
  24  0.000278685
  25  18.0478
  26  13.4536
  27  0.243554
  28  0.204449
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.414e+00  2.044e-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:  7.232e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.61
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 7.06e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 1.63e-05

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) = 7650.32254179
delta logL = 0.351049552215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7650.32211092
delta logL = 0.351480431215

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7650.322     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      239 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1392        57.838        .33144E-02    .60758E-03
   2  alpha         3.0855        3.8986        .32788        .16076E-04
   3  Normalizat    .68751        .12787        .83620E-01    .71790E-04
   4  Prefactor     1.4378        .12743        .51929E-01   -.40877E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.13923
  alpha      = 3.08554
  Normalizat = 0.687513
  Prefactor  = 1.43781
 **********
 **   18 **HESSE 
 **********

 FCN=   7650.322     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1392        4.1341        .92620E-04   -1.5103    
   2  alpha         3.0855        .51457        .13984E-01    .23641    
   3  Normalizat    .68751        .24127        .37032E-03   -1.0439    
   4  Prefactor     1.4378        .20517        .22957E-03   -.79297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24945e-10
Minuit parameter uncertainties:
  1  4.13425
  2  0.518496
  3  0.241641
  4  0.205289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540316': 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) = 7650.32211091
delta logL = 0.351480432282

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  9.139e+00  4.134e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.086e+00  5.185e-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:  1.438e+00  2.053e-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.875e-01  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.74
Ra Dec: 185.627 4.239
Photon Index (Free Index): 3.09 +/- 0.52
Photon Flux (Free Index): 1.86e-07 +/- 7.36e-08
Energy Flux (Free Index): 3.55e-05 +/- 1.35e-05

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/540316/cmap_HighResolution_490233601_490492801_4FGL_J1222.5+0414_daily_bin968.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='3.55e-05', photon_flux_error='7.06e-08', dlogl='3.51e-01', energy_flux='3.65e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-05 10:41:15.984838', photon_index_error2='0.52', photon_index2='3.09', ts='10.61', fit_tolerance='1e-08', GAL='1.41', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.72', time_epoch_completed='1630863675.98', return_code='0', job_id='540316', GAL2='1.44', EG2='0.69', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='7.36e-08', ts2='11.74', photon_index='2.69' WHERE bin_id='968' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:41:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 540316: <4FGL_J1222.5+0414_daily_bin968> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin968 185.627 4.2389 490233601 490492801 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 :                                   753.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

