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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin216
RA = 185.627, Dec = 4.2389
tmin = 295315201, tmax = 295574401
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='535389', job_status='RUN', time_executed='2021-09-05 10:12:27.307573', time_epoch_executed='1630861947.31' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535389/ft1_4FGL_J1222.5+0414_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535389/ft2_4FGL_J1222.5+0414_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535389/ft1_4FGL_J1222.5+0414_daily_bin216.fits outfile=/scratch/kocevski/535389/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin216.fits ra=185.627 dec=4.2389 rad=12.0 tmin=295315201.0 tmax=295574401.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 2.34
user 2.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535389/ft2_4FGL_J1222.5+0414_daily_bin216.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/535389/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin216.fits evtable="EVENTS" outfile="/scratch/kocevski/535389/ft1_filtered_4FGL_J1222.5+0414_daily_bin216.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/535389/ft1_filtered_4FGL_J1222.5+0414_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/535389/ft2_4FGL_J1222.5+0414_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/535389/ltcube_295315201_295574401_4FGL_J1222.5+0414_daily_bin216.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/535389/ft2_4FGL_J1222.5+0414_daily_bin216.fits
.....................!
real 12.04
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535389/ft1_filtered_4FGL_J1222.5+0414_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/535389/ft2_4FGL_J1222.5+0414_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/535389/ltcube_295315201_295574401_4FGL_J1222.5+0414_daily_bin216.fits outfile=/scratch/kocevski/535389/expmap_295315201_295574401_4FGL_J1222.5+0414_daily_bin216.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/535389/ltcube_295315201_295574401_4FGL_J1222.5+0414_daily_bin216.fits
.....................!
real 191.08
user 185.80
sys 4.90

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535389/ft1_filtered_4FGL_J1222.5+0414_daily_bin216.fits scfile=/scratch/kocevski/535389/ft2_4FGL_J1222.5+0414_daily_bin216.fits outfile=/scratch/kocevski/535389/cmap_HighResolution_295315201_295574401_4FGL_J1222.5+0414_daily_bin216.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.627 yref=4.2389 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3529       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.518       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22826E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.719       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.596       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .48180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.760       1.0000         .10000E-03   10000.    
    17 'norm      '    4.7879       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18334E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8108       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12420E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .10301E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.536       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85863       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1412       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=   6279.491     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3530 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7997        .35308E-07** at limit **
   2  Prefactor     .10000E-03    66.478        .80349E-07** at limit **
   3  Prefactor     26.747        14.661        .61414E-07    .16546E-03
   4  Prefactor     2.3524        8.4844       -.33927E-06    .18033E-03
   5  Prefactor     5.5073        22.671       -.58738E-06    .81662E-04
   6  Prefactor     18.521        15.442        .72056E-08    .12182E-04
   7  Prefactor     .10001E-03    278.67        .58999E-06** at limit **
   8  Prefactor     24.814        43.917        .47441E-06    .40207E-04
   9  Prefactor     .10000E-03    35.005        .10266E-06** at limit **
  10  Prefactor     .10000E-03    12.187       -.37708E-07** at limit **
  11  Prefactor     16.721        13.975        .17781E-06    .79391E-04
  12  norm          .10000E-03    1.6535       -.72215E-07** at limit **
  13  norm          13.595        5.6809       -.26133E-06    .23819E-04
  14  Prefactor     .10000E-03    25.035        .14962E-06** at limit **
  15  norm          .69456        166.47        .34513E-04   -.71434E-04
  16  Prefactor     70.624        134.79        .54922E-05    .12802E-03
  17  norm          4.7875        .98945       -.22436E-08    .78808E-04
  18  Prefactor     .10000E-03    7.5192       -.14030E-07** at limit **
  19  Prefactor     .10000E-03    19.448       -.63005E-07** at limit **
  20  Prefactor     .10000E-03    7.9008        .57219E-05** at limit **
  21  norm          2.8109        1.7526       -.17831E-07   -.16468E-03
  22  Prefactor     .10000E-03    4.5731       -.56323E-07** at limit **
  23  Prefactor     .10000E-03    15.232       -.41316E-07** at limit **
  24  Prefactor     .10000E-03    125.91        .31786E-04** at limit **
  25  norm          .10000E-03    6.4087       -.12459E-07** at limit **
  26  Prefactor     10.531        11.123       -.13810E-05   -.16793E-03
  27  Normalizat    .85885        .22694        .24598E-05    .13877E-04
  28  Prefactor     1.1410        .17710       -.18474E-05   -.44777E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7471
  Prefactor  = 2.35239
  Prefactor  = 5.50731
  Prefactor  = 18.5215
  Prefactor  = 0.000100007
  Prefactor  = 24.8143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.7208
  norm       = 0.0001
  norm       = 13.5951
  Prefactor  = 0.0001
  norm       = 0.694564
  Prefactor  = 70.6236
  norm       = 4.78749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.8109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5314
  Normalizat = 0.858849
  Prefactor  = 1.14098
 **********
 **   18 **HESSE 
 **********

 FCN=   6279.491     FROM HESSE     STATUS=OK           523 CALLS     4053 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.747        14.628        .77466E-04   -1.4673    
   4  Prefactor     2.3524        8.4222        .26722E-03   -1.5401    
   5  Prefactor     5.5073        22.567        .17096E-03   -1.5239    
   6  Prefactor     18.521        15.450        .93074E-04   -1.4847    
   7  Prefactor     .10001E-03    279.42        .20107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.814        43.835        .80392E-04   -1.4711    
   9  Prefactor     .10000E-03    35.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.721        13.841        .97951E-04   -1.4890    
  12  norm          .10000E-03    1.6669        .19711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.595        5.6633        .10309E-03   -1.4970    
  14  Prefactor     .10000E-03    25.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69456        345.41        .83874E-02   -1.5541    
  16  Prefactor     70.624        136.84        .23861E-03   -1.4025    
  17  norm          4.7875        .99076        .30831E-04   -1.5270    
  18  Prefactor     .10000E-03    7.6436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.630        .32732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8109        1.7501        .78332E-04   -1.5373    
  22  Prefactor     .10000E-03    4.6398        .16546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    235.65        .80237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.4095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.531        11.200        .61718E-03   -1.5059    
  27  Normalizat    .85885        .26627        .32810E-03   -.97922    
  28  Prefactor     1.1410        .20926        .24487E-03   -.88167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9226e-09
Minuit parameter uncertainties:
  1  1.32782e-05
  2  5.12294e-05
  3  14.6302
  4  8.42648
  5  22.3111
  6  15.4534
  7  0.00275994
  8  43.8917
  9  9.51198e-05
  10  3.40012e-05
  11  13.8432
  12  7.94798e-06
  13  5.66348
  14  0.000212087
  15  31.1581
  16  137.457
  17  0.990759
  18  5.85715e-06
  19  1.29459e-05
  20  0.000788096
  21  1.75012
  22  8.01084e-07
  23  3.85933e-06
  24  0.000655592
  25  4.86319e-07
  26  11.2025
  27  0.266679
  28  0.20941
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.360e+01  5.663e+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.141e+00  2.094e-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:  8.588e-01  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.10
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 2.09e-07 +/- 8.71e-08
Energy Flux (Fixed Index): 4.83e-05 +/- 2.01e-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) = 6277.59694308
delta logL = 1.89370769631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6277.5950096
delta logL = 1.89564117595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2859       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7127       1.0000          .0000       5.0000    
     3 'Normalizat'    .75419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2072       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=   6277.595     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      267 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2854        5.0491        .71302E-04    .36286E-02
   2  alpha         3.7128        .60804        .12232E-02    .20682E-03
   3  Normalizat    .75426        .25276        .34660E-03   -.36606E-04
   4  Prefactor     1.2072        .21158        .23894E-03   -.10956E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.28543
  alpha      = 3.71283
  Normalizat = 0.754256
  Prefactor  = 1.20721
 **********
 **   18 **HESSE 
 **********

 FCN=   6277.595     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2854        5.0071        .14260E-04   -1.5098    
   2  alpha         3.7128        .60312        .48926E-04    .50651    
   3  Normalizat    .75426        .25298        .13864E-04   -1.0179    
   4  Prefactor     1.2072        .21175        .47788E-04   -.86110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33339e-09
Minuit parameter uncertainties:
  1  5.00729
  2  0.611042
  3  0.253372
  4  0.211899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535389': 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) = 6277.59500954
delta logL = 1.89564123365

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  9.285e+00  5.007e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.713e+00  6.110e-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.207e+00  2.119e-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.543e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.89
Ra Dec: 185.627 4.239
Photon Index (Free Index): 3.71 +/- 0.61
Photon Flux (Free Index): 3.13e-07 +/- 1.03e-07
Energy Flux (Free Index): 5.02e-05 +/- 1.61e-05

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/535389/cmap_HighResolution_295315201_295574401_4FGL_J1222.5+0414_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-07', energy_flux2='5.02e-05', photon_flux_error='8.71e-08', dlogl='1.90e+00', energy_flux='4.83e-05', photon_flux2='3.13e-07', job_status='DONE', time_completed='2021-09-05 10:24:39.043965', photon_index_error2='0.61', photon_index2='3.71', ts='12.10', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.86', time_epoch_completed='1630862679.04', return_code='0', job_id='535389', GAL2='1.21', EG2='0.75', return_code2='0', energy_flux_error='2.01e-05', photon_flux_error2='1.03e-07', ts2='16.89', photon_index='2.69' WHERE bin_id='216' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:24:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 535389: <4FGL_J1222.5+0414_daily_bin216> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin216 185.627 4.2389 295315201 295574401 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 :                                   730.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

