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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1322
RA = 186.228, Dec = 21.3814
tmin = 581990401, tmax = 582249601
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='603282', job_status='RUN', time_executed='2021-09-05 13:36:21.268427', time_epoch_executed='1630874181.27' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603282/ft1_4FGL_J1224.9+2122_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603282/ft2_4FGL_J1224.9+2122_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603282/ft1_4FGL_J1224.9+2122_daily_bin1322.fits outfile=/scratch/kocevski/603282/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1322.fits ra=186.228 dec=21.3814 rad=12.0 tmin=581990401.0 tmax=582249601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.46
user 2.17
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603282/ft1_filtered_4FGL_J1224.9+2122_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/603282/ft2_4FGL_J1224.9+2122_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/603282/ltcube_581990401_582249601_4FGL_J1224.9+2122_daily_bin1322.fits outfile=/scratch/kocevski/603282/expmap_581990401_582249601_4FGL_J1224.9+2122_daily_bin1322.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/603282/ltcube_581990401_582249601_4FGL_J1224.9+2122_daily_bin1322.fits
.....................!
real 190.68
user 185.42
sys 4.07

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/603282/ft1_filtered_4FGL_J1224.9+2122_daily_bin1322.fits scfile=/scratch/kocevski/603282/ft2_4FGL_J1224.9+2122_daily_bin1322.fits outfile=/scratch/kocevski/603282/cmap_581990401_582249601_4FGL_J1224.9+2122_daily_bin1322.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 1.02
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603282/ft1_filtered_4FGL_J1224.9+2122_daily_bin1322.fits scfile=/scratch/kocevski/603282/ft2_4FGL_J1224.9+2122_daily_bin1322.fits outfile=/scratch/kocevski/603282/cmap_HighResolution_581990401_582249601_4FGL_J1224.9+2122_daily_bin1322.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.80
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1296       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    188.81       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52394       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.7585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .67113E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    29.369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7516       1.0000         .10000E-03   10000.    
    23 'norm      '    51.254       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88314       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1654       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=   8227.519     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2879 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.895        .32889E-06** at limit **
   2  Prefactor     .10000E-03    8.1234        .52839E-06** at limit **
   3  Prefactor     1.1290        1.4188        .27209E-06   -.12941E-03
   4  norm          1.1114        .78177        .28551E-07   -.12668E-03
   5  Prefactor     .10000E-03    6.6731       -.26070E-06** at limit **
   6  Prefactor     .10000E-03    .95801        .69193E-07** at limit **
   7  Prefactor     188.79        94.206       -.77143E-06   -.61300E-04
   8  Prefactor     .52480        1.3348        .62983E-06   -.33734E-03
   9  Prefactor     .10000E-03    .62894        .17943E-07** at limit **
  10  norm          5.7589        2.4575       -.79447E-08   -.57020E-04
  11  Prefactor     .10000E-03    .59519        .24382E-08** at limit **
  12  Prefactor     1.2775        1.8159        .32229E-06   -.73061E-04
  13  Prefactor     .10000E-03    2.4526        .36317E-07** at limit **
  14  norm          .67178E-01    .14918        .24608E-06   -.51945E-03
  15  norm          29.371        6.4351       -.11760E-06   -.25132E-03
  16  Prefactor     .10000E-03    1.8366        .42694E-08** at limit **
  17  Prefactor     .10000E-03    4.6962       -.21232E-06** at limit **
  18  Prefactor     32.851        22.952       -.78937E-07   -.67163E-04
  19  Prefactor     48.344        73.420       -.93536E-05   -.21705E-03
  20  Prefactor     .10000E-03    5.9705        .55511E-07** at limit **
  21  Prefactor     .10000E-03    5.2395        .38346E-06** at limit **
  22  norm          3.7513        3.3416        .24457E-05   -.74720E-03
  23  norm          51.256        26.224       -.39168E-06    .21005E-04
  24  Normalizat    .88332        .16123        .35175E-06   -.38276E-03
  25  Prefactor     1.1651        .16085       -.17449E-05   -.14561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12898
  norm       = 1.11139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 188.787
  Prefactor  = 0.524801
  Prefactor  = 0.0001
  norm       = 5.75889
  Prefactor  = 0.0001
  Prefactor  = 1.27753
  Prefactor  = 0.0001
  norm       = 0.0671775
  norm       = 29.3706
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8514
  Prefactor  = 48.3436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75126
  norm       = 51.2559
  Normalizat = 0.883325
  Prefactor  = 1.16514
 **********
 **   18 **HESSE 
 **********

 FCN=   8227.519     FROM HESSE     STATUS=OK           421 CALLS     3300 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1290        1.3875        .11525E-03   -1.5495    
   4  norm          1.1114        .78266        .64752E-04   -1.5497    
   5  Prefactor     .10000E-03    6.6820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .96686        .86631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     188.79        94.274        .14695E-03   -1.2951    
   8  Prefactor     .52480        1.3420        .15830E-03   -1.5563    
   9  Prefactor     .10000E-03    .63302        .70187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.7589        2.4490        .88709E-04   -1.5228    
  11  Prefactor     .10000E-03    .60263        .68235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2775        1.7847        .13641E-03   -1.5482    
  13  Prefactor     .10000E-03    2.4650        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .67178E-01    .14371        .48809E-04   -1.5656    
  15  norm          29.371        6.4125        .73930E-04   -1.4624    
  16  Prefactor     .10000E-03    1.8370        .12004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.7280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.851        22.969        .69909E-04   -1.4561    
  19  Prefactor     48.344        76.795        .28812E-03   -1.4316    
  20  Prefactor     .10000E-03    6.0670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7513        3.4000        .76154E-03   -1.5321    
  23  norm          51.256        26.223        .56019E-04   -1.4275    
  24  Normalizat    .88332        .18603        .26815E-03   -.97049    
  25  Prefactor     1.1651        .18772        .24977E-03   -.87411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2613e-10
Minuit parameter uncertainties:
  1  9.43396e-06
  2  9.28878e-06
  3  1.38749
  4  0.782669
  5  1.65137e-06
  6  2.27467e-06
  7  94.3496
  8  1.34207
  9  1.2089e-06
  10  2.44903
  11  4.78327e-07
  12  1.78474
  13  9.66542e-07
  14  0.143713
  15  6.41264
  16  8.60563e-07
  17  3.41212e-06
  18  22.975
  19  76.9525
  20  3.09861e-05
  21  1.45404e-05
  22  3.40022
  23  26.2292
  24  0.18617
  25  0.187832
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.718e-02  1.437e-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:  1.165e+00  1.878e-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:  8.833e-01  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603282/likelihoodResults_581990401_582249601_4FGL_J1224.9+2122_daily_bin1322.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) = 8227.49652459
delta logL = 0.0226240943612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8227.49445162
delta logL = 0.0246970613844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76202E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5206       1.0000          .0000       5.0000    
     3 'Normalizat'    .87953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1669       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8227.494     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76162E-01    .14840        .46525E-04    .92855E-05
   2  alpha         2.5207        1.0510        .33201E-01   -.18970E-05
   3  Normalizat    .87951        .17803        .26868E-03   -.84628E-07
   4  Prefactor     1.1669        .18717        .24960E-03    .25507E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0761615
  alpha      = 2.52072
  Normalizat = 0.879505
  Prefactor  = 1.16694
 **********
 **   18 **HESSE 
 **********

 FCN=   8227.494     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .61E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76162E-01    .14801        .18610E-05   -1.5653    
   2  alpha         2.5207        1.0492        .13280E-02    .82892E-02
   3  Normalizat    .87951        .17826        .10747E-04   -.97184    
   4  Prefactor     1.1669        .18732        .49920E-04   -.87355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09977e-16
Minuit parameter uncertainties:
  1  0.148013
  2  1.08271
  3  0.178382
  4  0.187423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603282': 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) = 8227.49445157
delta logL = 0.0246971144988

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.616e-02  1.480e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.521e+00  1.083e+00  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:  1.167e+00  1.874e-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:  8.795e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 186.228 21.381

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/603282/cmap_HighResolution_581990401_582249601_4FGL_J1224.9+2122_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-05', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-05 13:50:16.372449', job_id='603282', GAL2='1.17', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630875016.37', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.47e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1322' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 603282: <4FGL_J1224.9+2122_daily_bin1322> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1322> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:56 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:57 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:35:57 2021
Terminated at Sun Sep  5 13:50:17 2021
Results reported at Sun Sep  5 13:50:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1322 186.228 21.3814 581990401 582249601 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 :                                   828.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

