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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1591
RA = 186.228, Dec = 21.3814
tmin = 651715201, tmax = 651974401
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='605023', job_status='RUN', time_executed='2021-09-05 13:45:09.110363', time_epoch_executed='1630874709.11' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605023/ft1_4FGL_J1224.9+2122_daily_bin1591.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605023/ft2_4FGL_J1224.9+2122_daily_bin1591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605023/ft1_4FGL_J1224.9+2122_daily_bin1591.fits outfile=/scratch/kocevski/605023/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1591.fits ra=186.228 dec=21.3814 rad=12.0 tmin=651715201.0 tmax=651974401.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.47
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605023/ft1_filtered_4FGL_J1224.9+2122_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/605023/ft2_4FGL_J1224.9+2122_daily_bin1591.fits sctable="SC_DATA" expcube=/scratch/kocevski/605023/ltcube_651715201_651974401_4FGL_J1224.9+2122_daily_bin1591.fits outfile=/scratch/kocevski/605023/expmap_651715201_651974401_4FGL_J1224.9+2122_daily_bin1591.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/605023/ltcube_651715201_651974401_4FGL_J1224.9+2122_daily_bin1591.fits
.....................!
real 191.39
user 186.28
sys 4.52

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/605023/ft1_filtered_4FGL_J1224.9+2122_daily_bin1591.fits scfile=/scratch/kocevski/605023/ft2_4FGL_J1224.9+2122_daily_bin1591.fits outfile=/scratch/kocevski/605023/cmap_651715201_651974401_4FGL_J1224.9+2122_daily_bin1591.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605023/ft1_filtered_4FGL_J1224.9+2122_daily_bin1591.fits scfile=/scratch/kocevski/605023/ft2_4FGL_J1224.9+2122_daily_bin1591.fits outfile=/scratch/kocevski/605023/cmap_HighResolution_651715201_651974401_4FGL_J1224.9+2122_daily_bin1591.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38501E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5253       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3583       1.0000         .10000E-03   10000.    
     4 'norm      '    10.086       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.732       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7341       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9971       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0773       1.0000         .10000E-03   10000.    
    14 'norm      '    .15504       1.0000         .10000E-03   10000.    
    15 'norm      '    .24907E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.3255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.151       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0147       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5622       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22039E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.791       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77437       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2401       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=   6050.856     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3041 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    16.359       -.50654E-06** at limit **
   2  Prefactor     3.5257        12.352       -.18309E-05   -.63710E-04
   3  Prefactor     1.3631        2.3234        .76144E-06    .21085E-03
   4  norm          10.088        2.0549        .87113E-07    .30386E-03
   5  Prefactor     14.734        15.288       -.44673E-08    .88524E-05
   6  Prefactor     6.7348        4.2368       -.37206E-06   -.14885E-03
   7  Prefactor     .10000E-03    52.821       -.10915E-05** at limit **
   8  Prefactor     1.0781        2.0749        .19983E-06    .83613E-04
   9  Prefactor     .10000E-03    1.2035       -.34332E-06** at limit **
  10  norm          5.1937        2.8181       -.69469E-07    .24214E-04
  11  Prefactor     3.9973        2.2909       -.44941E-07    .22017E-04
  12  Prefactor     .10000E-03    1.0680       -.49550E-06** at limit **
  13  Prefactor     5.0916        8.2057        .72900E-06    .82669E-04
  14  norm          .15503        .16011       -.61764E-07   -.38189E-03
  15  norm          .10000E-03    84.165        .38048E-05** at limit **
  16  Prefactor     8.3333        15.974       -.75659E-07   -.13696E-04
  17  Prefactor     6.9615        9.1474        .52844E-06    .61474E-04
  18  Prefactor     42.126        35.149       -.75338E-06   -.37535E-04
  19  Prefactor     1.9160        322.14        .16143E-04    .15941E-04
  20  Prefactor     7.5610        10.144       -.32576E-06   -.76176E-04
  21  Prefactor     .10000E-03    34.691        .15341E-05** at limit **
  22  norm          .10000E-03    3.2899        .41957E-06** at limit **
  23  norm          15.791        16.565       -.55539E-07   -.85642E-05
  24  Normalizat    .77431        .21266       -.43371E-05    .14667E-03
  25  Prefactor     1.2401        .20526        .33500E-05   -.78777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100044
  Prefactor  = 3.52569
  Prefactor  = 1.36315
  norm       = 10.0878
  Prefactor  = 14.7344
  Prefactor  = 6.7348
  Prefactor  = 0.0001
  Prefactor  = 1.07813
  Prefactor  = 0.0001
  norm       = 5.1937
  Prefactor  = 3.99725
  Prefactor  = 0.0001
  Prefactor  = 5.0916
  norm       = 0.155034
  norm       = 0.0001
  Prefactor  = 8.33328
  Prefactor  = 6.96152
  Prefactor  = 42.1256
  Prefactor  = 1.91605
  Prefactor  = 7.56099
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.7911
  Normalizat = 0.77431
  Prefactor  = 1.24012
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.856     FROM HESSE     STATUS=OK           455 CALLS     3496 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    20.838        .88159E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5257        12.411        .21530E-03   -1.5332    
   3  Prefactor     1.3631        2.3398        .14075E-03   -1.5474    
   4  norm          10.088        2.0567        .47838E-04   -1.5073    
   5  Prefactor     14.734        15.287        .10435E-03   -1.4940    
   6  Prefactor     6.7348        4.2441        .11991E-03   -1.5189    
   7  Prefactor     .10000E-03    52.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0781        2.0331        .14940E-03   -1.5500    
   9  Prefactor     .10000E-03    1.2146        .83154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1937        2.8190        .91362E-04   -1.5252    
  11  Prefactor     3.9973        2.2926        .84730E-04   -1.5308    
  12  Prefactor     .10000E-03    1.0949        .78662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0916        8.3192        .17844E-03   -1.5257    
  14  norm          .15503        .15439        .30148E-03   -1.5629    
  15  norm          .10000E-03    5.0869        .40780E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.3333        15.892        .13894E-03   -1.5131    
  17  Prefactor     6.9615        9.1465        .15208E-03   -1.5180    
  18  Prefactor     42.126        35.113        .61745E-04   -1.4409    
  19  Prefactor     1.9160        331.91        .29163E-03   -1.5431    
  20  Prefactor     7.5610        10.214        .14583E-03   -1.5158    
  21  Prefactor     .10000E-03    36.377        .40280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.4459        .27554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.791        16.566        .10079E-03   -1.4913    
  24  Normalizat    .77431        .22698        .29194E-03   -1.0103    
  25  Prefactor     1.2401        .22126        .24948E-03   -.85105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4927e-10
Minuit parameter uncertainties:
  1  0.00191145
  2  12.4196
  3  2.33996
  4  2.05673
  5  15.2914
  6  4.24424
  7  4.96024e-05
  8  2.03324
  9  1.05329e-06
  10  2.81908
  11  2.29266
  12  7.01084e-06
  13  8.32107
  14  0.154395
  15  6.70864e-05
  16  15.9005
  17  9.14837
  18  35.1298
  19  50.7231
  20  10.216
  21  5.51598e-05
  22  8.9386e-06
  23  16.5706
  24  0.227256
  25  0.221429
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.550e-01  1.544e-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.240e+00  2.214e-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.743e-01  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.62e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 9.11e-06 +/- 9.07e-06

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

Saving results to:
/scratch/kocevski/605023/likelihoodResults_651715201_651974401_4FGL_J1224.9+2122_daily_bin1591.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) = 6050.7592031
delta logL = 0.0967168504158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6050.75722878
delta logL = 0.0986911706477

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12138       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7797       1.0000          .0000       5.0000    
     3 'Normalizat'    .78742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2315       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=   6050.757     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12138        .12561        .59269E-02    .47392E-04
   2  alpha         1.7801        .50482        .43551       -.31592E-04
   3  Normalizat    .78734        .17673        .65466E-01    .21248E-04
   4  Prefactor     1.2316        .18706        .56579E-01    .36208E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.121384
  alpha      = 1.78013
  Normalizat = 0.787341
  Prefactor  = 1.2316
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.757     FROM HESSE     STATUS=OK            35 CALLS      248 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12138        .15051        .26992E-03   -1.5638    
   2  alpha         1.7801        .94080        .15995E-01   -.29208    
   3  Normalizat    .78734        .20748        .28963E-03   -1.0054    
   4  Prefactor     1.2316        .21971        .25018E-03   -.85364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22831e-12
Minuit parameter uncertainties:
  1  0.150513
  2  0.966863
  3  0.207685
  4  0.219872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605023': 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) = 6050.75722841
delta logL = 0.0986915451558

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.214e-01  1.505e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.780e+00  9.669e-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:  1.232e+00  2.199e-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.873e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.78 +/- 0.97
Photon Flux (Free Index): 1.67e-08 +/- 2.27e-08
Energy Flux (Free Index): 1.41e-05 +/- 2.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/605023/cmap_HighResolution_651715201_651974401_4FGL_J1224.9+2122_daily_bin1591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-05', comment='SUCCESS', photon_flux='2.62e-08', energy_flux2='1.41e-05', photon_flux_error='2.61e-08', dlogl='9.87e-02', energy_flux='9.11e-06', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-09-05 13:57:30.252994', photon_index_error2='0.97', photon_index2='1.78', ts='2.66', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='9.61e-08', energy_flux_error2='2.39e-05', EG='0.77', time_epoch_completed='1630875450.25', return_code='0', job_id='605023', GAL2='1.23', EG2='0.79', return_code2='0', energy_flux_error='9.07e-06', photon_flux_error2='2.27e-08', ts2='2.85', photon_index='2.28' WHERE bin_id='1591' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 605023: <4FGL_J1224.9+2122_daily_bin1591> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1591> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 13:41:20 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:41:22 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:41:22 2021
Terminated at Sun Sep  5 13:57:31 2021
Results reported at Sun Sep  5 13:57:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1591 186.228 21.3814 651715201 651974401 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

