/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 42 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 = 7494
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1432
RA = 186.228, Dec = 21.3814
tmin = 610502401, tmax = 610761601
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='603426', job_status='RUN', time_executed='2021-09-05 13:37:14.532940', time_epoch_executed='1630874234.53' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603426

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603426/ft1_4FGL_J1224.9+2122_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603426/ft1_4FGL_J1224.9+2122_daily_bin1432.fits outfile=/scratch/kocevski/603426/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1432.fits ra=186.228 dec=21.3814 rad=12.0 tmin=610502401.0 tmax=610761601.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.63
user 3.36
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.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/603426/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1432.fits evtable="EVENTS" outfile="/scratch/kocevski/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/603426/ltcube_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.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/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits
.....................!
real 11.76
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/603426/ltcube_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.fits outfile=/scratch/kocevski/603426/expmap_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.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/603426/ltcube_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.fits
.....................!
real 191.09
user 185.87
sys 4.79

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits scfile=/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits outfile=/scratch/kocevski/603426/cmap_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.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=186.228 yref=21.3814 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/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits scfile=/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits outfile=/scratch/kocevski/603426/cmap_HighResolution_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.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=186.228 yref=21.3814 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603426/Model_4FGL_J1224.9+2122_daily_bin1432.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/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits.....................!
real 54.28
user 52.85
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits', '/scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits', expMap='/scratch/kocevski/603426/expmap_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.fits', expCube='/scratch/kocevski/603426/ltcube_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603426/Model_4FGL_J1224.9+2122_daily_bin1432.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/603426/ft1_filtered_4FGL_J1224.9+2122_daily_bin1432.fits
Spacecraft file(s): /scratch/kocevski/603426/ft2_4FGL_J1224.9+2122_daily_bin1432.fits
Exposure map: /scratch/kocevski/603426/expmap_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.fits
Exposure cube: /scratch/kocevski/603426/ltcube_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603426/Model_4FGL_J1224.9+2122_daily_bin1432.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) = 5807.72693661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.089       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2571       1.0000         .10000E-03   10000.    
     4 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17485E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3584       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.726       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1128       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0280       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.286       1.0000         .10000E-03   10000.    
    19 'Prefactor '    119.65       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6398       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27081E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10989E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4048       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5807.720     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2951 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.192        .71562E-05** at limit **
   2  Prefactor     15.098        13.634        .27954E-06   -.81898E-04
   3  Prefactor     1.2571        1.3141        .20440E-07   -.43016E-03
   4  norm          .10000E-03    .40825        .57444E-07** at limit **
   5  Prefactor     .10000E-03    38.888        .16332E-04** at limit **
   6  Prefactor     .10000E-03    1.2096        .16558E-07** at limit **
   7  Prefactor     .10000E-03    70.642       -.73047E-05** at limit **
   8  Prefactor     2.3533        3.0971       -.24740E-07   -.86900E-03
   9  Prefactor     .10000E-03    2.0131        .29208E-06** at limit **
  10  norm          10.726        4.0894        .23345E-06    .16226E-03
  11  Prefactor     3.1136        2.3885       -.72963E-07    .15392E-03
  12  Prefactor     2.6123        2.4935       -.15876E-07   -.47456E-04
  13  Prefactor     .10000E-03    2.8644        .86888E-07** at limit **
  14  norm          .10000E-03    .39399E-01    .69405E-08** at limit **
  15  norm          4.8027        3.6409        .73328E-07    .53809E-04
  16  Prefactor     7.0282        7.9836       -.45329E-07   -.31570E-04
  17  Prefactor     .10045E-03    5.1826       -.31328E-05** at limit **
  18  Prefactor     20.287        29.454        .99106E-06   -.42769E-04
  19  Prefactor     119.70        81.914        .36046E-04    .17241E-04
  20  Prefactor     1.6393        5.2555        .13431E-05   -.68302E-03
  21  Prefactor     .10000E-03    7.0575        .50990E-06** at limit **
  22  norm          .10000E-03    1.9344        .25211E-08** at limit **
  23  norm          .10000E-03    16.420       -.14183E-05** at limit **
  24  Normalizat    1.4045        .18852       -.17559E-05   -.54170E-04
  25  Prefactor     .70280        .18313       -.41528E-06   -.19139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0985
  Prefactor  = 1.25708
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.35328
  Prefactor  = 0.0001
  norm       = 10.7262
  Prefactor  = 3.11359
  Prefactor  = 2.61225
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.80268
  Prefactor  = 7.0282
  Prefactor  = 0.000100449
  Prefactor  = 20.2872
  Prefactor  = 119.699
  Prefactor  = 1.63932
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.40448
  Prefactor  = 0.702799
 **********
 **   18 **HESSE 
 **********

 FCN=   5807.720     FROM HESSE     STATUS=OK           433 CALLS     3384 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.098        13.623        .10311E-03   -1.4931    
   3  Prefactor     1.2571        1.2893        .86552E-04   -1.5484    
   4  norm          .10000E-03    .77480        .94487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.2157        .81814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    70.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3533        2.8679        .13573E-03   -1.5401    
   9  Prefactor     .10000E-03    9.1329        .19120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.726        4.0968        .85698E-04   -1.5053    
  11  Prefactor     3.1136        2.3928        .94695E-04   -1.5355    
  12  Prefactor     2.6123        2.4746        .10893E-03   -1.5385    
  13  Prefactor     .10000E-03    5.8286        .24723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .40035E-01    .14757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8027        3.5877        .12084E-03   -1.5270    
  16  Prefactor     7.0282        7.9701        .15132E-03   -1.5178    
  17  Prefactor     .10045E-03    28.549        .33291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.287        29.392        .88927E-04   -1.4807    
  19  Prefactor     119.70        81.928        .18394E-03   -1.3515    
  20  Prefactor     1.6393        5.1980        .30059E-03   -1.5452    
  21  Prefactor     .10000E-03    51.451        .39138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9548        .10347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    16.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4045        .21948        .22544E-03   -.80499    
  25  Prefactor     .70280        .21386        .30540E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62893e-08
Minuit parameter uncertainties:
  1  7.65803e-06
  2  13.6257
  3  1.28929
  4  5.19146e-06
  5  5.64515e-05
  6  2.16773e-06
  7  5.38919e-07
  8  2.86802
  9  9.01791e-05
  10  4.0969
  11  2.39286
  12  2.47474
  13  3.02532e-05
  14  1.28529e-07
  15  3.58787
  16  7.9713
  17  0.0071656
  18  29.4127
  19  82.0056
  20  5.19942
  21  0.000424793
  22  1.49515e-06
  23  1.0957e-05
  24  0.219629
  25  0.21411
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.285e-07  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.028e-01  2.141e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.404e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 3.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603426/likelihoodResults_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5807.72021529
delta logL = -6.49722096568e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5807.72012569
delta logL = 2.46238196269e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5807.720     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5690        .68804E-02** at limit **
   2  alpha         2.6386        3.2611        .41174       -.80372E-06
   3  Normalizat    1.4045        .30622E-01    .50992E-01   -.10829E-03
   4  Prefactor     .70281        .30559E-01    .69014E-01    .64452E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.63862
  Normalizat = 1.40447
  Prefactor  = 0.702808
 **********
 **   18 **HESSE 
 **********

 FCN=   5807.720     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .41767E-01    .29905E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6386        3.5037        .16469        .55478E-01
   3  Normalizat    1.4045        .21323        .22544E-03   -.80500    
   4  Prefactor     .70281        .21284        .30540E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.785e-10
Minuit parameter uncertainties:
  1  4.94479e-07
  2  37.2404
  3  0.213368
  4  0.21309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603426': 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) = 5807.7200988
delta logL = 5.1514709412e-05

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  4.945e-07  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.639e+00  3.724e+01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  7.028e-01  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.404e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/603426/cmap_HighResolution_610502401_610761601_4FGL_J1224.9+2122_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-05', job_status='DONE', photon_flux_upper_limit='3.84e-08', time_completed='2021-09-05 13:49:09.065751', job_id='603426', GAL2='0.70', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630874949.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='5.15e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1432' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 603426: <4FGL_J1224.9+2122_daily_bin1432> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1432> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:09 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:36:10 2021
Terminated at Sun Sep  5 13:49:09 2021
Results reported at Sun Sep  5 13:49:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1432 186.228 21.3814 610502401 610761601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   702.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            780 sec.

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

