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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin161
RA = 185.627, Dec = 4.2389
tmin = 281059201, tmax = 281318401
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='534270', job_status='RUN', time_executed='2021-09-05 10:08:54.823934', time_epoch_executed='1630861734.82' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534270/ft1_4FGL_J1222.5+0414_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534270/ft2_4FGL_J1222.5+0414_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534270/ft1_4FGL_J1222.5+0414_daily_bin161.fits outfile=/scratch/kocevski/534270/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin161.fits ra=185.627 dec=4.2389 rad=12.0 tmin=281059201.0 tmax=281318401.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 4.44
user 4.20
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534270/ft1_filtered_4FGL_J1222.5+0414_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/534270/ft2_4FGL_J1222.5+0414_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/534270/ltcube_281059201_281318401_4FGL_J1222.5+0414_daily_bin161.fits outfile=/scratch/kocevski/534270/expmap_281059201_281318401_4FGL_J1222.5+0414_daily_bin161.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/534270/ltcube_281059201_281318401_4FGL_J1222.5+0414_daily_bin161.fits
.....................!
real 190.94
user 185.53
sys 5.06

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/534270/ft1_filtered_4FGL_J1222.5+0414_daily_bin161.fits scfile=/scratch/kocevski/534270/ft2_4FGL_J1222.5+0414_daily_bin161.fits outfile=/scratch/kocevski/534270/cmap_281059201_281318401_4FGL_J1222.5+0414_daily_bin161.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534270/ft1_filtered_4FGL_J1222.5+0414_daily_bin161.fits scfile=/scratch/kocevski/534270/ft2_4FGL_J1222.5+0414_daily_bin161.fits outfile=/scratch/kocevski/534270/cmap_HighResolution_281059201_281318401_4FGL_J1222.5+0414_daily_bin161.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/534270/ft1_filtered_4FGL_J1222.5+0414_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/534270/ft2_4FGL_J1222.5+0414_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534270/Model_4FGL_J1222.5+0414_daily_bin161.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/534270/ft1_filtered_4FGL_J1222.5+0414_daily_bin161.fits.....................!
real 57.76
user 56.45
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.478       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7588       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5383       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.934       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.923       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20000E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2927       1.0000         .10000E-03   10000.    
    13 'norm      '    15.224       1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.120       1.0000         .10000E-03   10000.    
    15 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.954       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.836       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6431       1.0000         .10000E-03   10000.    
    21 'norm      '    9.4973       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .61124       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3137       1.0000         .10000E-03   10000.    
    25 'norm      '    7.6080       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.9115       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .81360       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1461       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=   6517.244     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3493 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.930       -.63411E-06** at limit **
   2  Prefactor     .10001E-03    106.14       -.40035E-05** at limit **
   3  Prefactor     14.477        13.751        .10387E-06   -.36584E-05
   4  Prefactor     1.7530        13.318        .10655E-05   -.70152E-04
   5  Prefactor     9.5398        15.517        .20278E-06    .58073E-06
   6  Prefactor     .10000E-03    13.674        .16328E-06** at limit **
   7  Prefactor     51.933        69.498       -.70520E-07   -.62346E-05
   8  Prefactor     64.926        42.974        .58301E-07    .42391E-04
   9  Prefactor     .10000E-03    57.083       -.20087E-05** at limit **
  10  Prefactor     .10000E-03    57.342       -.10253E-05** at limit **
  11  Prefactor     .10002E-03    17.368       -.87088E-06** at limit **
  12  norm          1.2879        2.7737        .51878E-06    .20217E-03
  13  norm          15.222        5.8296        .91950E-07    .17298E-04
  14  Prefactor     60.119        43.878        .47179E-07   -.81994E-05
  15  norm          .10001E-03    74.026        .61217E-05** at limit **
  16  Prefactor     .10000E-03    99.816        .29590E-06** at limit **
  17  norm          10.291        1.3320       -.46187E-08    .71443E-03
  18  Prefactor     17.955        11.519        .53425E-07    .63592E-05
  19  Prefactor     30.837        27.223        .11986E-06   -.10903E-05
  20  Prefactor     5.6418        10.567        .36767E-05   -.30690E-03
  21  norm          9.4974        2.5953        .24290E-07    .42446E-04
  22  Prefactor     .62064        6.7216       -.37793E-06   -.99817E-04
  23  Prefactor     .10000E-03    24.575        .66618E-06** at limit **
  24  Prefactor     7.2894        56.818       -.66426E-05   -.11784E-03
  25  norm          7.6069        18.991        .17134E-05   -.61806E-04
  26  Prefactor     8.9120        13.611        .93407E-06    .24973E-04
  27  Normalizat    .81352        .24856       -.79481E-06    .53113E-04
  28  Prefactor     1.1461        .19627       -.15077E-06    .55325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 14.4774
  Prefactor  = 1.75296
  Prefactor  = 9.53981
  Prefactor  = 0.0001
  Prefactor  = 51.9333
  Prefactor  = 64.9257
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  norm       = 1.28794
  norm       = 15.2219
  Prefactor  = 60.1193
  norm       = 0.000100013
  Prefactor  = 0.0001
  norm       = 10.2912
  Prefactor  = 17.9549
  Prefactor  = 30.8366
  Prefactor  = 5.64176
  norm       = 9.49744
  Prefactor  = 0.620638
  Prefactor  = 0.0001
  Prefactor  = 7.28937
  norm       = 7.60687
  Prefactor  = 8.91202
  Normalizat = 0.813521
  Prefactor  = 1.14614
 **********
 **   18 **HESSE 
 **********

 FCN=   6517.244     FROM HESSE     STATUS=OK           525 CALLS     4018 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    107.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.477        13.761        .10527E-03   -1.4947    
   4  Prefactor     1.7530        13.382        .31598E-03   -1.5443    
   5  Prefactor     9.5398        15.504        .12976E-03   -1.5090    
   6  Prefactor     .10000E-03    13.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.933        69.483        .55653E-04   -1.4265    
   8  Prefactor     64.926        42.860        .49807E-04   -1.4095    
   9  Prefactor     .10000E-03    58.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    59.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    77.814        .54652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2879        2.4016        .16676E-03   -1.5481    
  13  norm          15.222        5.8380        .10265E-03   -1.4927    
  14  Prefactor     60.119        43.874        .51746E-04   -1.4156    
  15  norm          .10001E-03    76.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    99.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.291        1.3188        .29500E-04   -1.5066    
  18  Prefactor     17.955        11.516        .94523E-04   -1.4860    
  19  Prefactor     30.837        27.230        .72153E-04   -1.4597    
  20  Prefactor     5.6418        10.820        .84551E-03   -1.5233    
  21  norm          9.4974        2.5933        .64847E-04   -1.5092    
  22  Prefactor     .62064        20.360        .39566E-02   -1.5550    
  23  Prefactor     .10000E-03    24.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.2894        61.150        .14831E-03   -1.5168    
  25  norm          7.6069        19.010        .72695E-03   -1.5156    
  26  Prefactor     8.9120        13.626        .13427E-03   -1.5111    
  27  Normalizat    .81352        .28860        .37903E-03   -.99569    
  28  Prefactor     1.1461        .23133        .27304E-03   -.88005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20316e-08
Minuit parameter uncertainties:
  1  0.00010416
  2  0.0016242
  3  13.7636
  4  9.68963
  5  15.5106
  6  1.86494e-05
  7  69.5913
  8  42.8806
  9  0.000558187
  10  0.000264388
  11  0.0025142
  12  2.40174
  13  5.83827
  14  43.8973
  15  0.00201462
  16  0.000112572
  17  1.31881
  18  11.5175
  19  27.2407
  20  10.8239
  21  2.59329
  22  7.11151
  23  0.00012323
  24  42.2836
  25  19.0249
  26  13.6306
  27  0.289142
  28  0.231534
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.522e+01  5.838e+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.146e+00  2.315e-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.135e-01  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.19
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 2.34e-07 +/- 8.98e-08
Energy Flux (Fixed Index): 5.41e-05 +/- 2.07e-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) = 6517.06720931
delta logL = 0.176729795916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6517.06547691
delta logL = 0.178462192481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.102       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0015       1.0000          .0000       5.0000    
     3 'Normalizat'    .77983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1689       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=   6517.065     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.102        5.9301        .10122E-03    .14340E-02
   2  alpha         3.0015        .56713        .13814E-01    .10053E-03
   3  Normalizat    .77989        .27752        .38583E-03   -.20567E-04
   4  Prefactor     1.1689        .23183        .27081E-03   -.64439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1016
  alpha      = 3.00155
  Normalizat = 0.779891
  Prefactor  = 1.16892
 **********
 **   18 **HESSE 
 **********

 FCN=   6517.065     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.102        5.8007        .40488E-05   -1.4957    
   2  alpha         3.0015        .55477        .55258E-03    .20199    
   3  Normalizat    .77989        .27776        .15433E-04   -1.0082    
   4  Prefactor     1.1689        .23196        .10833E-04   -.87293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72312e-10
Minuit parameter uncertainties:
  1  5.80098
  2  0.559622
  3  0.278264
  4  0.23216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534270': 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) = 6517.06547667
delta logL = 0.178462433646

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.410e+01  5.801e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.002e+00  5.596e-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.169e+00  2.322e-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.799e-01  2.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.57
Ra Dec: 185.627 4.239
Photon Index (Free Index): 3.00 +/- 0.56
Photon Flux (Free Index): 2.70e-07 +/- 1.08e-07
Energy Flux (Free Index): 5.33e-05 +/- 1.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/534270/cmap_HighResolution_281059201_281318401_4FGL_J1222.5+0414_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.34e-07', energy_flux2='5.33e-05', photon_flux_error='8.98e-08', dlogl='1.78e-01', energy_flux='5.41e-05', photon_flux2='2.70e-07', job_status='DONE', time_completed='2021-09-05 10:21:38.934162', photon_index_error2='0.56', photon_index2='3.00', ts='13.19', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='0.81', time_epoch_completed='1630862498.93', return_code='0', job_id='534270', GAL2='1.17', EG2='0.78', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='1.08e-07', ts2='14.57', photon_index='2.69' WHERE bin_id='161' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 534270: <4FGL_J1222.5+0414_daily_bin161> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin161> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 10:06:07 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:06:08 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:06:08 2021
Terminated at Sun Sep  5 10:21:39 2021
Results reported at Sun Sep  5 10:21:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin161 185.627 4.2389 281059201 281318401 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 :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.65 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.

