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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1299
RA = 186.228, Dec = 21.3814
tmin = 576028801, tmax = 576288001
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='603248', job_status='RUN', time_executed='2021-09-05 13:39:46.613418', time_epoch_executed='1630874386.61' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603248

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603248/ft1_4FGL_J1224.9+2122_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603248/ft2_4FGL_J1224.9+2122_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603248/ft1_4FGL_J1224.9+2122_daily_bin1299.fits outfile=/scratch/kocevski/603248/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1299.fits ra=186.228 dec=21.3814 rad=12.0 tmin=576028801.0 tmax=576288001.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.71
user 3.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603248/ft1_filtered_4FGL_J1224.9+2122_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/603248/ft2_4FGL_J1224.9+2122_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/603248/ltcube_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.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/603248/ft2_4FGL_J1224.9+2122_daily_bin1299.fits
.....................!
real 11.82
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603248/ft1_filtered_4FGL_J1224.9+2122_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/603248/ft2_4FGL_J1224.9+2122_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/603248/ltcube_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.fits outfile=/scratch/kocevski/603248/expmap_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.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/603248/ltcube_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.fits
.....................!
real 191.47
user 186.30
sys 4.75

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/603248/ft1_filtered_4FGL_J1224.9+2122_daily_bin1299.fits scfile=/scratch/kocevski/603248/ft2_4FGL_J1224.9+2122_daily_bin1299.fits outfile=/scratch/kocevski/603248/cmap_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603248/ft1_filtered_4FGL_J1224.9+2122_daily_bin1299.fits scfile=/scratch/kocevski/603248/ft2_4FGL_J1224.9+2122_daily_bin1299.fits outfile=/scratch/kocevski/603248/cmap_HighResolution_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5293       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2052       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1692       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2206       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.290       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3337       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6162       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2338       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .64078E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.623       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.939       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8519       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    43.844       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76275       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2669       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5513.562     FROM MIGRAD    STATUS=CONVERGED     63 CALLS     2806 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.117        1.0589       -.77247E-07    .15700E-02
   2  Prefactor     .10000E-03    3.0051       -.77115E-06** at limit **
   3  Prefactor     1.5295        2.0942        .27919E-06    .69554E-03
   4  norm          1.2052        .97206       -.22062E-06   -.25948E-03
   5  Prefactor     4.1496        2.5761       -.79739E-06    .49787E-02
   6  Prefactor     8.2204        1.1313       -.14330E-06    .11261E-02
   7  Prefactor     22.289        1.0290        .43703E-07   -.14601E-02
   8  Prefactor     .10000E-03    .81055        .24944E-06** at limit **
   9  Prefactor     .10000E-03    1.2032        .44166E-06** at limit **
  10  norm          3.3336        1.2258       -.20852E-06   -.85057E-03
  11  Prefactor     2.6160        1.6991       -.63207E-06   -.18699E-02
  12  Prefactor     3.2336        1.3575       -.40742E-06   -.17316E-02
  13  Prefactor     .10000E-03    3.4464       -.70811E-06** at limit **
  14  norm          .64058E-01    .17855       -.35038E-06   -.75494E-03
  15  norm          4.8768        1.0427       -.91769E-07    .17705E-03
  16  Prefactor     12.622        1.0133        .38762E-07   -.62690E-03
  17  Prefactor     26.937        1.0201       -.29997E-07    .80214E-03
  18  Prefactor     22.494        1.5587       -.20395E-06    .69617E-02
  19  Prefactor     .10005E-03    39.933        .95563E-06** at limit **
  20  Prefactor     .10000E-03    1.4888       -.85202E-06** at limit **
  21  Prefactor     1.8498        1.0989       -.19044E-06    .52067E-03
  22  norm          .10000E-03    1.5007        .10463E-05** at limit **
  23  norm          43.845        1.0051        .11498E-07   -.71406E-03
  24  Normalizat    .76286        .21994        .25149E-05    .11666E-03
  25  Prefactor     1.2668        .23078       -.72057E-07    .11991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1165
  Prefactor  = 0.0001
  Prefactor  = 1.5295
  norm       = 1.20523
  Prefactor  = 4.14957
  Prefactor  = 8.22039
  Prefactor  = 22.2893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.33358
  Prefactor  = 2.61605
  Prefactor  = 3.23358
  Prefactor  = 0.0001
  norm       = 0.0640579
  norm       = 4.87677
  Prefactor  = 12.6223
  Prefactor  = 26.9374
  Prefactor  = 22.4937
  Prefactor  = 0.000100053
  Prefactor  = 0.000100002
  Prefactor  = 1.84979
  norm       = 0.000100002
  norm       = 43.8445
  Normalizat = 0.762861
  Prefactor  = 1.26682
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.562     FROM HESSE     STATUS=OK           487 CALLS     3293 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.117        20.602        .28769E-02   -1.5012    
   2  Prefactor     .10000E-03    3.0059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5295        2.3074        .86294E-02   -1.5461    
   4  norm          1.2052        .99275        .10321E-01   -1.5488    
   5  Prefactor     4.1496        29.993        .49347E-02   -1.5301    
   6  Prefactor     8.2204        4.4659        .34957E-02   -1.5134    
   7  Prefactor     22.289        137.56        .21210E-02   -1.4763    
   8  Prefactor     .10000E-03    .80469        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1852        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3336        2.7843        .55421E-02   -1.5343    
  11  Prefactor     2.6160        2.2877        .63042E-02   -1.5384    
  12  Prefactor     3.2336        2.2970        .56313E-02   -1.5348    
  13  Prefactor     .10000E-03    3.4176        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .64058E-01    .17471        .93386E-02   -1.5657    
  15  norm          4.8768        4.1143        .45538E-02   -1.5266    
  16  Prefactor     12.622        12.654        .28187E-02   -1.4997    
  17  Prefactor     26.937        14.093        .19296E-02   -1.4669    
  18  Prefactor     22.494        34.499        .21112E-02   -1.4759    
  19  Prefactor     .10005E-03    40.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8498        33.829        .76587E-02   -1.5436    
  22  norm          .10000E-03    1.5084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          43.845        28.503        .15137E-02   -1.4383    
  24  Normalizat    .76286        .19478        .63462E-01   -1.0146    
  25  Prefactor     1.2668        .19636        .54278E-01   -.84299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66527e-07
Minuit parameter uncertainties:
  1  20.6138
  2  3.92182e-05
  3  2.30751
  4  0.992767
  5  22.3279
  6  4.46603
  7  111.127
  8  3.00523e-06
  9  7.90587e-06
  10  2.78439
  11  2.2878
  12  2.29702
  13  7.80588e-06
  14  0.174709
  15  4.11458
  16  12.6568
  17  14.0943
  18  34.5298
  19  0.00292064
  20  0.000120188
  21  15.831
  22  0.000122677
  23  28.5114
  24  0.194961
  25  0.196477
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.406e-02  1.747e-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.267e+00  1.965e-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:  7.629e-01  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603248/likelihoodResults_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.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) = 5513.54569797
delta logL = 0.0166411566406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5513.54519115
delta logL = 0.0171479769406

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68824E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4984       1.0000          .0000       5.0000    
     3 'Normalizat'    .76025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2680       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=   5513.545     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      277 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69062E-01    .17820        .45059E-03    .14086E-01
   2  alpha         2.5000        1.1860        .31243E-01   -.19970E-05
   3  Normalizat    .76029        .21440        .28119E-03   -.33962E-04
   4  Prefactor     1.2679        .23033        .23990E-03   -.33173E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0690617
  alpha      = 2.50005
  Normalizat = 0.760293
  Prefactor  = 1.26789
 **********
 **   18 **HESSE 
 **********

 FCN=   5513.545     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69062E-01    .17470        .90119E-04   -1.5655    
   2  alpha         2.5000        1.1666        .12497E-02    .19461E-04
   3  Normalizat    .76029        .21461        .11248E-04   -1.0156    
   4  Prefactor     1.2679        .23052        .95958E-05   -.84267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98559e-12
Minuit parameter uncertainties:
  1  0.174701
  2  1.21367
  3  0.214848
  4  0.230703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603248': 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) = 5513.545189
delta logL = 0.0171501208952

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.906e-02  1.747e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.500e+00  1.214e+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.268e+00  2.307e-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:  7.603e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/603248/cmap_HighResolution_576028801_576288001_4FGL_J1224.9+2122_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-05 13:51:23.524806', job_id='603248', GAL2='1.27', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630875083.52', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.72e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1299' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 603248: <4FGL_J1224.9+2122_daily_bin1299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1299 186.228 21.3814 576028801 576288001 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 :                                   679.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

