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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin724
RA = 185.627, Dec = 4.2389
tmin = 426988801, tmax = 427248001
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='538440', job_status='RUN', time_executed='2021-09-05 10:24:19.821115', time_epoch_executed='1630862659.82' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538440

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538440/ft1_4FGL_J1222.5+0414_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538440/ft2_4FGL_J1222.5+0414_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538440/ft1_4FGL_J1222.5+0414_daily_bin724.fits outfile=/scratch/kocevski/538440/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin724.fits ra=185.627 dec=4.2389 rad=12.0 tmin=426988801.0 tmax=427248001.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 6.05
user 5.51
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538440/ft1_filtered_4FGL_J1222.5+0414_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/538440/ft2_4FGL_J1222.5+0414_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/538440/ltcube_426988801_427248001_4FGL_J1222.5+0414_daily_bin724.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/538440/ft2_4FGL_J1222.5+0414_daily_bin724.fits
.....................!
real 11.90
user 11.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538440/ft1_filtered_4FGL_J1222.5+0414_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/538440/ft2_4FGL_J1222.5+0414_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/538440/ltcube_426988801_427248001_4FGL_J1222.5+0414_daily_bin724.fits outfile=/scratch/kocevski/538440/expmap_426988801_427248001_4FGL_J1222.5+0414_daily_bin724.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/538440/ltcube_426988801_427248001_4FGL_J1222.5+0414_daily_bin724.fits
.....................!
real 191.24
user 186.33
sys 4.58

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/538440/ft1_filtered_4FGL_J1222.5+0414_daily_bin724.fits scfile=/scratch/kocevski/538440/ft2_4FGL_J1222.5+0414_daily_bin724.fits outfile=/scratch/kocevski/538440/cmap_426988801_427248001_4FGL_J1222.5+0414_daily_bin724.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538440/ft1_filtered_4FGL_J1222.5+0414_daily_bin724.fits scfile=/scratch/kocevski/538440/ft2_4FGL_J1222.5+0414_daily_bin724.fits outfile=/scratch/kocevski/538440/cmap_HighResolution_426988801_427248001_4FGL_J1222.5+0414_daily_bin724.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.893       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0414       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.963       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.902       1.0000         .10000E-03   10000.    
    15 'norm      '    .10884E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6445       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4568       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10729E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.514       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .12041E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    22.116       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .77069       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97825       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=   4677.072     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3508 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.891        40.625       -.54016E-05   -.23420E-04
   2  Prefactor     .10000E-03    42.696       -.92661E-05** at limit **
   3  Prefactor     .10000E-03    2.6998       -.30396E-07** at limit **
   4  Prefactor     9.0287        11.963       -.25176E-05   -.44884E-03
   5  Prefactor     .10000E-03    4.2922       -.25134E-07** at limit **
   6  Prefactor     .10000E-03    14.691       -.99070E-06** at limit **
   7  Prefactor     .10000E-03    30.555        .26814E-04** at limit **
   8  Prefactor     .10001E-03    147.25        .83694E-04** at limit **
   9  Prefactor     36.740        30.754       -.39470E-05   -.53958E-04
  10  Prefactor     .10000E-03    16.994        .18419E-05** at limit **
  11  Prefactor     16.961        13.584       -.12024E-05   -.72235E-04
  12  norm          .10000E-03    2.2846        .15452E-07** at limit **
  13  norm          10.096        5.6179        .73043E-06   -.49889E-03
  14  Prefactor     33.801        47.836       -.63585E-04    .10547E-04
  15  norm          .10000E-03    83.941       -.21972E-06** at limit **
  16  Prefactor     .10000E-03    82.533       -.67620E-05** at limit **
  17  norm          1.2170        .76350       -.27486E-06   -.35553E-03
  18  Prefactor     4.6585        12.317        .16060E-04    .18549E-03
  19  Prefactor     8.3681        49.397       -.71474E-04   -.33545E-04
  20  Prefactor     .10000E-03    4.7357       -.11137E-06** at limit **
  21  norm          .10000E-03    .96157       -.69732E-07** at limit **
  22  Prefactor     .10000E-03    5.1834       -.18638E-06** at limit **
  23  Prefactor     63.511        42.373       -.37207E-05    .32585E-04
  24  Prefactor     .10000E-03    27.545       -.19623E-04** at limit **
  25  norm          .10000E-03    80.099       -.11994E-04** at limit **
  26  Prefactor     22.122        19.595        .10536E-05    .16582E-03
  27  Normalizat    .77074        .23253        .13691E-04   -.30059E-03
  28  Prefactor     .97822        .17782        .12331E-05    .10478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.8915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.02868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 36.7398
  Prefactor  = 0.0001
  Prefactor  = 16.9613
  norm       = 0.0001
  norm       = 10.0956
  Prefactor  = 33.8011
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.21701
  Prefactor  = 4.6585
  Prefactor  = 8.36811
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.5113
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 22.1217
  Normalizat = 0.770745
  Prefactor  = 0.978222
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.072     FROM HESSE     STATUS=OK           517 CALLS     4025 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.891        40.576        .66893E-04   -1.4509    
   2  Prefactor     .10000E-03    42.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7008        .10974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0287        11.962        .13329E-03   -1.5107    
   5  Prefactor     .10000E-03    4.2937        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    148.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.740        30.732        .66113E-04   -1.4495    
  10  Prefactor     .10000E-03    17.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.961        13.454        .97246E-04   -1.4884    
  12  norm          .10000E-03    2.3553        .19998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.096        5.6255        .10229E-03   -1.5072    
  14  Prefactor     33.801        47.778        .68823E-04   -1.4545    
  15  norm          .10000E-03    84.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    82.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2170        .74595        .40019E-04   -1.5487    
  18  Prefactor     4.6585        12.200        .18675E-03   -1.5276    
  19  Prefactor     8.3681        48.852        .13785E-03   -1.5129    
  20  Prefactor     .10000E-03    4.7589        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.1978        .12747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2213        .15203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     63.511        42.355        .50353E-04   -1.4112    
  24  Prefactor     .10000E-03    27.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    81.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.122        19.699        .85172E-04   -1.4767    
  27  Normalizat    .77074        .26871        .30244E-03   -1.0116    
  28  Prefactor     .97822        .20606        .22625E-03   -.93459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80814e-09
Minuit parameter uncertainties:
  1  40.6076
  2  0.000106741
  3  5.95295e-06
  4  11.9653
  5  5.92529e-06
  6  0.000147829
  7  3.38313e-05
  8  0.00256352
  9  30.7457
  10  0.000103955
  11  13.4566
  12  9.45918e-07
  13  5.62578
  14  47.8317
  15  7.56609e-05
  16  0.000702526
  17  0.74596
  18  12.207
  19  40.4875
  20  2.83057e-05
  21  5.09667e-06
  22  4.24896e-05
  23  42.3755
  24  8.00976e-06
  25  0.000623751
  26  19.7044
  27  0.269168
  28  0.206222
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.010e+01  5.626e+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:  9.782e-01  2.062e-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.707e-01  2.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.99
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.55e-07 +/- 8.65e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 2.00e-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) = 4675.49801437
delta logL = 1.57443597283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4675.49743151
delta logL = 1.57501882738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3737       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8644       1.0000          .0000       5.0000    
     3 'Normalizat'    .67000       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0403       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=   4675.497     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      258 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3682        45.410        .39746E-02    .32228E-03
   2  alpha         3.8637        4.1922        .30554        .22545E-04
   3  Normalizat    .67018        .12188        .72700E-01    .38287E-04
   4  Prefactor     1.0403        .10723        .40512E-01    .96960E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.36821
  alpha      = 3.86366
  Normalizat = 0.670175
  Prefactor  = 1.04035
 **********
 **   18 **HESSE 
 **********

 FCN=   4675.497     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .37E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3682        4.8451        .66658E-04   -1.5203    
   2  alpha         3.8637        .78585        .13796E-02    .57694    
   3  Normalizat    .67018        .25703        .32179E-03   -1.0508    
   4  Prefactor     1.0403        .20912        .22015E-03   -.91396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70812e-12
Minuit parameter uncertainties:
  1  4.84544
  2  0.805547
  3  0.257488
  4  0.20928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538440': 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) = 4675.49742469
delta logL = 1.57502564712

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  6.368e+00  4.845e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.864e+00  8.055e-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.040e+00  2.093e-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.702e-01  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.82
Ra Dec: 185.627 4.239
Photon Index (Free Index): 3.86 +/- 0.81
Photon Flux (Free Index): 2.45e-07 +/- 1.06e-07
Energy Flux (Free Index): 3.81e-05 +/- 1.65e-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/538440/cmap_HighResolution_426988801_427248001_4FGL_J1222.5+0414_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.55e-07', energy_flux2='3.81e-05', photon_flux_error='8.65e-08', dlogl='1.58e+00', energy_flux='3.59e-05', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-05 10:34:46.487630', photon_index_error2='0.81', photon_index2='3.86', ts='5.99', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.77', time_epoch_completed='1630863286.49', return_code='0', job_id='538440', GAL2='1.04', EG2='0.67', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='1.06e-07', ts2='9.82', photon_index='2.69' WHERE bin_id='724' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:34:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 538440: <4FGL_J1222.5+0414_daily_bin724> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin724 185.627 4.2389 426988801 427248001 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 :                                   625.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            853 sec.

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

