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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1291
RA = 186.228, Dec = 21.3814
tmin = 573955201, tmax = 574214401
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='603237', job_status='RUN', time_executed='2021-09-05 13:38:04.397036', time_epoch_executed='1630874284.4' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603237

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603237/ft1_4FGL_J1224.9+2122_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603237/ft2_4FGL_J1224.9+2122_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603237/ft1_4FGL_J1224.9+2122_daily_bin1291.fits outfile=/scratch/kocevski/603237/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1291.fits ra=186.228 dec=21.3814 rad=12.0 tmin=573955201.0 tmax=574214401.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.68
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603237/ft1_filtered_4FGL_J1224.9+2122_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/603237/ft2_4FGL_J1224.9+2122_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/603237/ltcube_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.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/603237/ft2_4FGL_J1224.9+2122_daily_bin1291.fits
.....................!
real 12.36
user 11.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603237/ft1_filtered_4FGL_J1224.9+2122_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/603237/ft2_4FGL_J1224.9+2122_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/603237/ltcube_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.fits outfile=/scratch/kocevski/603237/expmap_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.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/603237/ltcube_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.fits
.....................!
real 191.41
user 185.19
sys 5.78

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/603237/ft1_filtered_4FGL_J1224.9+2122_daily_bin1291.fits scfile=/scratch/kocevski/603237/ft2_4FGL_J1224.9+2122_daily_bin1291.fits outfile=/scratch/kocevski/603237/cmap_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.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.62
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603237/ft1_filtered_4FGL_J1224.9+2122_daily_bin1291.fits scfile=/scratch/kocevski/603237/ft2_4FGL_J1224.9+2122_daily_bin1291.fits outfile=/scratch/kocevski/603237/cmap_HighResolution_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8861       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9550       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3859       1.0000         .10000E-03   10000.    
     7 'Prefactor '    135.36       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6681       1.0000         .10000E-03   10000.    
    10 'norm      '    10.297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2038       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2112       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .85216E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    8.8743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19025E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40757       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.629       1.0000         .10000E-03   10000.    
    22 'norm      '    6.0635       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1585       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0177       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=   6435.774     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2953 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.911        .25930E-07** at limit **
   2  Prefactor     12.226        12.314       -.46313E-06    .85292E-04
   3  Prefactor     7.8861        2.8478       -.45970E-07    .27291E-03
   4  norm          1.9549        1.0481        .90543E-07   -.10929E-03
   5  Prefactor     .10000E-03    8.2517        .23161E-06** at limit **
   6  Prefactor     7.3856        5.0204       -.75361E-06    .45076E-03
   7  Prefactor     135.34        110.62        .39357E-05   -.34674E-05
   8  Prefactor     .10000E-03    1.4962       -.18025E-06** at limit **
   9  Prefactor     1.6679        1.9720        .14697E-07    .19629E-03
  10  norm          10.297        3.6487        .41722E-06    .12109E-03
  11  Prefactor     3.2040        2.1320       -.13567E-06    .22909E-03
  12  Prefactor     2.2115        1.8949       -.41587E-07    .38725E-03
  13  Prefactor     .10000E-03    3.6475       -.12059E-07** at limit **
  14  norm          .85141E-01    .22023       -.86191E-07    .34364E-02
  15  norm          8.8744        5.5193        .85321E-07    .53352E-03
  16  Prefactor     .10000E-03    3.5452        .14289E-06** at limit **
  17  Prefactor     .10000E-03    63.741        .20656E-04** at limit **
  18  Prefactor     57.533        36.505        .56603E-06    .56098E-04
  19  Prefactor     .10000E-03    68.237        .44103E-05** at limit **
  20  Prefactor     .40698        6.6013       -.10245E-05   -.61989E-04
  21  Prefactor     10.629        15.084       -.62150E-06    .44127E-04
  22  norm          6.0628        4.5235       -.11701E-06    .20191E-03
  23  norm          .10000E-03    12.432       -.65404E-07** at limit **
  24  Normalizat    1.1586        .20034        .18801E-05    .60047E-03
  25  Prefactor     1.0176        .19129        .11671E-05    .50986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.226
  Prefactor  = 7.88608
  norm       = 1.95493
  Prefactor  = 0.0001
  Prefactor  = 7.38559
  Prefactor  = 135.342
  Prefactor  = 0.0001
  Prefactor  = 1.66789
  norm       = 10.2967
  Prefactor  = 3.20395
  Prefactor  = 2.21145
  Prefactor  = 0.0001
  norm       = 0.0851405
  norm       = 8.87438
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 57.5326
  Prefactor  = 0.0001
  Prefactor  = 0.406978
  Prefactor  = 10.6291
  norm       = 6.06281
  norm       = 0.0001
  Normalizat = 1.15865
  Prefactor  = 1.01756
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.774     FROM HESSE     STATUS=OK           435 CALLS     3388 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.226        12.321        .11456E-03   -1.5009    
   3  Prefactor     7.8861        2.8515        .77286E-04   -1.5146    
   4  norm          1.9549        1.0489        .14837E-03   -1.5428    
   5  Prefactor     .10000E-03    8.2542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.3856        5.0001        .13809E-03   -1.5164    
   7  Prefactor     135.34        111.32        .17308E-03   -1.3376    
   8  Prefactor     .10000E-03    1.5638        .19137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6679        1.9626        .11835E-03   -1.5450    
  10  norm          10.297        3.6615        .85531E-04   -1.5066    
  11  Prefactor     3.2040        2.1329        .90087E-04   -1.5350    
  12  Prefactor     2.2115        1.8767        .97190E-04   -1.5411    
  13  Prefactor     .10000E-03    3.6690        .14951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .85141E-01    .26593        .54184E-03   -1.5650    
  15  norm          8.8744        5.5071        .13455E-03   -1.5112    
  16  Prefactor     .10000E-03    3.5439        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.223        .36642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     57.533        36.656        .52888E-04   -1.4190    
  19  Prefactor     .10000E-03    68.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .40698        32.385        .38639E-02   -1.5580    
  21  Prefactor     10.629        15.128        .12289E-03   -1.5056    
  22  norm          6.0628        4.5202        .13975E-03   -1.5215    
  23  norm          .10000E-03    12.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1586        .23637        .26751E-03   -.87890    
  25  Prefactor     1.0176        .22735        .28746E-03   -.92146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23408e-08
Minuit parameter uncertainties:
  1  0.000246468
  2  12.3234
  3  2.85158
  4  1.0489
  5  7.92876e-05
  6  5.00034
  7  111.492
  8  6.98556e-06
  9  1.96272
  10  3.66162
  11  2.13292
  12  1.87676
  13  2.83077e-06
  14  0.265931
  15  5.50744
  16  2.05341e-05
  17  0.001016
  18  36.6702
  19  0.000267846
  20  7.26402
  21  15.1333
  22  4.52048
  23  1.68746e-05
  24  0.23659
  25  0.227565
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.514e-02  2.659e-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.018e+00  2.276e-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.159e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603237/likelihoodResults_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.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): 102
logL (Free Index) = 6435.02049671
delta logL = 0.753104836951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6435.00075093
delta logL = 0.772850621517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12223       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8387       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0663       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=   6435.001     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12243        1.9565        .50545E-02    .25853E-02
   2  alpha         3.8367        3.5421        .50000        .31025E-04
   3  Normalizat    1.0783        .54047E-01    .62405E-01    .15219E-04
   4  Prefactor     1.0661        .55426E-01    .63669E-01    .54855E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.122426
  alpha      = 3.8367
  Normalizat = 1.07835
  Prefactor  = 1.06607
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.001     FROM HESSE     STATUS=OK            35 CALLS      261 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12243        .47915        .22981E-03   -1.5638    
   2  alpha         3.8367        4.2661        .27985E-01    .56413    
   3  Normalizat    1.0783        .23014        .27603E-03   -.90450    
   4  Prefactor     1.0661        .22852        .28161E-03   -.90558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33813e-09
Minuit parameter uncertainties:
  1  0.479165
  2  3.45671
  3  0.23035
  4  0.228727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603237': 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) = 6435.00074946
delta logL = 0.772852086758

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.224e-01  4.792e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.837e+00  3.457e+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.066e+00  2.287e-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.078e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.84 +/- 3.46
Photon Flux (Free Index): 7.79e-08 +/- 7.24e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.60e-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/603237/cmap_HighResolution_573955201_574214401_4FGL_J1224.9+2122_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.87e-05', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='7.73e-01', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-05 13:50:37.311128', photon_index_error2='3.46', photon_index2='3.84', ts='0.11', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.60e-05', EG='1.16', time_epoch_completed='1630875037.31', return_code='0', job_id='603237', GAL2='1.07', EG2='1.08', return_code2='0', photon_flux_error2='7.24e-08', ts2='1.77', photon_index='2.28' WHERE bin_id='1291' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 603237: <4FGL_J1224.9+2122_daily_bin1291> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1291> 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) <bullet0210>, 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:50:38 2021
Results reported at Sun Sep  5 13:50:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1291 186.228 21.3814 573955201 574214401 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 :                                   742.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

