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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1476
RA = 186.228, Dec = 21.3814
tmin = 621907201, tmax = 622166401
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='603492', job_status='RUN', time_executed='2021-09-05 13:37:32.921623', time_epoch_executed='1630874252.92' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603492

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603492/ft1_4FGL_J1224.9+2122_daily_bin1476.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603492/ft1_4FGL_J1224.9+2122_daily_bin1476.fits outfile=/scratch/kocevski/603492/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1476.fits ra=186.228 dec=21.3814 rad=12.0 tmin=621907201.0 tmax=622166401.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.72
user 3.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.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/603492/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1476.fits evtable="EVENTS" outfile="/scratch/kocevski/603492/ft1_filtered_4FGL_J1224.9+2122_daily_bin1476.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.64
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603492/ft1_filtered_4FGL_J1224.9+2122_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/603492/ltcube_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.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/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits
.....................!
real 14.34
user 13.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603492/ft1_filtered_4FGL_J1224.9+2122_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/603492/ltcube_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.fits outfile=/scratch/kocevski/603492/expmap_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.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/603492/ltcube_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.fits
.....................!
real 190.73
user 185.09
sys 4.64

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/603492/ft1_filtered_4FGL_J1224.9+2122_daily_bin1476.fits scfile=/scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits outfile=/scratch/kocevski/603492/cmap_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.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.65
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603492/ft1_filtered_4FGL_J1224.9+2122_daily_bin1476.fits scfile=/scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits outfile=/scratch/kocevski/603492/cmap_HighResolution_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.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.57
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603492/ft1_filtered_4FGL_J1224.9+2122_daily_bin1476.fits', '/scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits', expMap='/scratch/kocevski/603492/expmap_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.fits', expCube='/scratch/kocevski/603492/ltcube_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603492/Model_4FGL_J1224.9+2122_daily_bin1476.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/603492/ft1_filtered_4FGL_J1224.9+2122_daily_bin1476.fits
Spacecraft file(s): /scratch/kocevski/603492/ft2_4FGL_J1224.9+2122_daily_bin1476.fits
Exposure map: /scratch/kocevski/603492/expmap_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.fits
Exposure cube: /scratch/kocevski/603492/ltcube_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603492/Model_4FGL_J1224.9+2122_daily_bin1476.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) = 5434.58226122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24120E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .38976       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7287       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6020       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0793       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.0460       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5196       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4992       1.0000         .10000E-03   10000.    
    14 'norm      '    .15360       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3993       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4336       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82229       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=   5434.580     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2916 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6281        .41084E-07** at limit **
   2  Prefactor     .10000E-03    4.0079        .99288E-07** at limit **
   3  Prefactor     .10000E-03    .88703       -.13114E-08** at limit **
   4  norm          .38940        .83650       -.12700E-06   -.52420E-03
   5  Prefactor     25.575        21.470       -.86999E-06   -.36641E-04
   6  Prefactor     4.7279        5.7376        .13948E-05    .86626E-06
   7  Prefactor     4.5457        176.89        .18128E-04   -.33279E-05
   8  Prefactor     4.0791        3.0629       -.12945E-06   -.12896E-04
   9  Prefactor     .10000E-03    1.6035        .17162E-08** at limit **
  10  norm          5.0459        4.4186        .38532E-07    .17651E-04
  11  Prefactor     3.0337        4.1206        .44820E-07    .12445E-04
  12  Prefactor     1.5198        2.4910        .76869E-07    .17362E-04
  13  Prefactor     4.4994        4.9161        .39473E-07   -.19798E-05
  14  norm          .15360        .13848        .40062E-08   -.54078E-04
  15  norm          .10000E-03    1.2952       -.36541E-09** at limit **
  16  Prefactor     .10000E-03    2.7811       -.11158E-07** at limit **
  17  Prefactor     5.3982        9.2017        .77601E-06    .46445E-05
  18  Prefactor     .10000E-03    7.8077       -.33657E-06** at limit **
  19  Prefactor     .10000E-03    74.340       -.22552E-06** at limit **
  20  Prefactor     .10000E-03    5.9883        .21865E-06** at limit **
  21  Prefactor     .10000E-03    5.4532       -.21381E-06** at limit **
  22  norm          .10000E-03    1.8073       -.26834E-07** at limit **
  23  norm          .10000E-03    9.1321        .20945E-06** at limit **
  24  Normalizat    1.4337        .20267       -.11704E-05    .17223E-04
  25  Prefactor     .82221        .19665        .69090E-06   -.36949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.389402
  Prefactor  = 25.5751
  Prefactor  = 4.72787
  Prefactor  = 4.5457
  Prefactor  = 4.07912
  Prefactor  = 0.0001
  norm       = 5.04593
  Prefactor  = 3.03374
  Prefactor  = 1.51984
  Prefactor  = 4.49944
  norm       = 0.153605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.39819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.43368
  Prefactor  = 0.822214
 **********
 **   18 **HESSE 
 **********

 FCN=   5434.580     FROM HESSE     STATUS=OK           433 CALLS     3349 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6348        .17080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0144        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.865        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .38940        .70365        .96084E-03   -1.5583    
   5  Prefactor     25.575        21.473        .79214E-04   -1.4696    
   6  Prefactor     4.7279        5.7417        .88836E-03   -1.5273    
   7  Prefactor     4.5457        175.40        .18763E-03   -1.5282    
   8  Prefactor     4.0791        3.0544        .10521E-03   -1.5304    
   9  Prefactor     .10000E-03    1.6321        .91012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.0459        4.4791        .10973E-03   -1.5259    
  11  Prefactor     3.0337        4.1586        .13093E-03   -1.5360    
  12  Prefactor     1.5198        2.4476        .13656E-03   -1.5461    
  13  Prefactor     4.4994        4.9087        .16530E-03   -1.5284    
  14  norm          .15360        .14670        .25166E-03   -1.5630    
  15  norm          .10000E-03    1.2974        .81909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7821        .12007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3982        9.1741        .86471E-03   -1.5243    
  18  Prefactor     .10000E-03    7.8134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    74.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.0472        .17613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4594        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8198        .96770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    9.1339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4337        .23402        .23104E-03   -.79659    
  25  Prefactor     .82221        .22972        .29939E-03   -.98915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15317e-10
Minuit parameter uncertainties:
  1  1.57221e-06
  2  1.7948e-07
  3  0.000313909
  4  0.703664
  5  21.4793
  6  5.74237
  7  56.6524
  8  3.05449
  9  5.20182e-08
  10  4.4794
  11  4.15904
  12  2.44774
  13  4.90918
  14  0.146701
  15  7.28418e-08
  16  8.49651e-08
  17  9.17648
  18  5.88467e-07
  19  4.92604e-06
  20  2.47716e-08
  21  5.82058e-08
  22  2.89665e-07
  23  7.37145e-07
  24  0.234191
  25  0.229989
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.536e-01  1.467e-01  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:  8.222e-01  2.300e-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.434e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 9.02e-06 +/- 8.62e-06

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) = 5432.5557978
delta logL = 2.02378399577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5432.55300416
delta logL = 2.02657763535

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12949E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .72494       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81490       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=   5432.553     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12956E-01    .14053E-01    .18300E-02   -.29799E-02
   2  alpha         .72494        .35264        .27939       -.34494E-04
   3  Normalizat    1.4543        .19098        .51936E-01    .59018E-06
   4  Prefactor     .81475        .19462        .67948E-01    .15324E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0129565
  alpha      = 0.724941
  Normalizat = 1.4543
  Prefactor  = 0.814754
 **********
 **   18 **HESSE 
 **********

 FCN=   5432.553     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12956E-01    .27768E-01    .74161E-04   -1.5685    
   2  alpha         .72494        .63199        .12069E-01   -.78953    
   3  Normalizat    1.4543        .22415        .22962E-03   -.79071    
   4  Prefactor     .81475        .22811        .30062E-03   -.99187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71207e-09
Minuit parameter uncertainties:
  1  0.0277677
  2  0.646414
  3  0.224302
  4  0.228373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603492': 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) = 5432.55300376
delta logL = 2.02657802831

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.296e-02  2.777e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  7.249e-01  6.464e-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:  8.148e-01  2.284e-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.454e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.46
Ra Dec: 186.228 21.381
Photon Index (Free Index): 0.72 +/- 0.65
Photon Flux (Free Index): 4.36e-09 +/- 4.65e-09
Energy Flux (Free Index): 6.61e-05 +/- 9.39e-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/603492/cmap_HighResolution_621907201_622166401_4FGL_J1224.9+2122_daily_bin1476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='6.61e-05', photon_flux_error='2.48e-08', dlogl='2.03e+00', energy_flux='9.02e-06', photon_flux2='4.36e-09', job_status='DONE', time_completed='2021-09-05 13:47:59.122912', photon_index_error2='0.65', photon_index2='0.72', ts='5.41', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='9.39e-05', EG='1.43', time_epoch_completed='1630874879.12', return_code='0', job_id='603492', GAL2='0.81', EG2='1.45', return_code2='0', energy_flux_error='8.62e-06', photon_flux_error2='4.65e-09', ts2='9.46', photon_index='2.28' WHERE bin_id='1476' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:47:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 603492: <4FGL_J1224.9+2122_daily_bin1476> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1476> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:14 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:16 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:16 2021
Terminated at Sun Sep  5 13:47:59 2021
Results reported at Sun Sep  5 13:47:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1476 186.228 21.3814 621907201 622166401 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

