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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin781
RA = 186.228, Dec = 21.3814
tmin = 441763201, tmax = 442022401
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='601312', job_status='RUN', time_executed='2021-09-05 13:31:05.111901', time_epoch_executed='1630873865.11' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='781'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601312/ft1_4FGL_J1224.9+2122_daily_bin781.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601312/ft2_4FGL_J1224.9+2122_daily_bin781.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601312/ft1_4FGL_J1224.9+2122_daily_bin781.fits outfile=/scratch/kocevski/601312/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin781.fits ra=186.228 dec=21.3814 rad=12.0 tmin=441763201.0 tmax=442022401.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.77
user 3.30
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601312/ft1_filtered_4FGL_J1224.9+2122_daily_bin781.fits evtable="EVENTS" scfile=/scratch/kocevski/601312/ft2_4FGL_J1224.9+2122_daily_bin781.fits sctable="SC_DATA" expcube=/scratch/kocevski/601312/ltcube_441763201_442022401_4FGL_J1224.9+2122_daily_bin781.fits outfile=/scratch/kocevski/601312/expmap_441763201_442022401_4FGL_J1224.9+2122_daily_bin781.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/601312/ltcube_441763201_442022401_4FGL_J1224.9+2122_daily_bin781.fits
.....................!
real 191.88
user 185.56
sys 4.94

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/601312/ft1_filtered_4FGL_J1224.9+2122_daily_bin781.fits scfile=/scratch/kocevski/601312/ft2_4FGL_J1224.9+2122_daily_bin781.fits outfile=/scratch/kocevski/601312/cmap_441763201_442022401_4FGL_J1224.9+2122_daily_bin781.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.58
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601312/ft1_filtered_4FGL_J1224.9+2122_daily_bin781.fits scfile=/scratch/kocevski/601312/ft2_4FGL_J1224.9+2122_daily_bin781.fits outfile=/scratch/kocevski/601312/cmap_HighResolution_441763201_442022401_4FGL_J1224.9+2122_daily_bin781.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.103       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13940E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4763       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.873       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5233       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5749       1.0000         .10000E-03   10000.    
    10 'norm      '    14.863       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1218       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40359       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1162       1.0000         .10000E-03   10000.    
    15 'norm      '    23.114       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12918E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8783       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.887       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33476E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.1873       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0453       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61423       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2744       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=   6785.714     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2942 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.080        21.170        .86475E-06    .11749E-02
   2  Prefactor     .10000E-03    4.0414       -.54865E-07** at limit **
   3  Prefactor     .10000E-03    .95470       -.11676E-05** at limit **
   4  norm          3.4764        1.2694       -.55832E-08    .59604E-03
   5  Prefactor     10.876        13.855        .15761E-06    .42043E-04
   6  Prefactor     2.5229        2.5705       -.27877E-06   -.35185E-03
   7  Prefactor     .10000E-03    42.487       -.11653E-05** at limit **
   8  Prefactor     .10000E-03    .72355       -.11772E-07** at limit **
   9  Prefactor     2.5752        2.1048        .60001E-08    .12704E-03
  10  norm          14.861        4.4683        .45665E-06    .16964E-02
  11  Prefactor     1.1228        2.3135       -.29133E-06    .56079E-03
  12  Prefactor     .40354        1.3889       -.12516E-05    .57669E-04
  13  Prefactor     .10000E-03    2.7913       -.25255E-07** at limit **
  14  norm          1.1162        .31696        .21526E-07    .11902E-02
  15  norm          23.114        6.4289        .19616E-06    .56469E-03
  16  Prefactor     .10000E-03    10.733        .33845E-06** at limit **
  17  Prefactor     2.8771        6.2351        .37945E-06    .39311E-03
  18  Prefactor     38.747        27.156        .18449E-05    .45865E-03
  19  Prefactor     21.678        48.366        .12375E-07    .23639E-04
  20  Prefactor     20.889        9.4054        .41196E-06    .37689E-03
  21  Prefactor     .10003E-03    79.331       -.29675E-04** at limit **
  22  norm          1.1869        2.7720       -.89245E-06   -.12995E-03
  23  norm          4.0452        11.882        .43271E-07    .45870E-04
  24  Normalizat    .61412        .18746        .13521E-06    .34875E-03
  25  Prefactor     1.2745        .18563       -.11930E-05   -.34742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.0796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47642
  Prefactor  = 10.8762
  Prefactor  = 2.52286
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.57517
  norm       = 14.8614
  Prefactor  = 1.12283
  Prefactor  = 0.403545
  Prefactor  = 0.0001
  norm       = 1.11624
  norm       = 23.1136
  Prefactor  = 0.000100001
  Prefactor  = 2.87707
  Prefactor  = 38.7474
  Prefactor  = 21.6779
  Prefactor  = 20.889
  Prefactor  = 0.000100034
  norm       = 1.18693
  norm       = 4.04524
  Normalizat = 0.614125
  Prefactor  = 1.27449
 **********
 **   18 **HESSE 
 **********

 FCN=   6785.714     FROM HESSE     STATUS=OK           433 CALLS     3375 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.080        21.079        .58424E-04   -1.4335    
   2  Prefactor     .10000E-03    4.0560        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7807        .14255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4764        1.2682        .53595E-04   -1.5335    
   5  Prefactor     10.876        13.843        .12150E-03   -1.5048    
   6  Prefactor     2.5229        2.5663        .12844E-03   -1.5390    
   7  Prefactor     .10000E-03    42.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .72957        .68348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5752        2.0959        .10408E-03   -1.5387    
  10  norm          14.861        4.4084        .82465E-04   -1.4937    
  11  Prefactor     1.1228        2.1986        .15572E-03   -1.5496    
  12  Prefactor     .40354        1.3698        .17106E-03   -1.5581    
  13  Prefactor     .10000E-03    2.8070        .13430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1162        .31603        .23046E-04   -1.5497    
  15  norm          23.114        6.4248        .83316E-04   -1.4746    
  16  Prefactor     .10000E-03    10.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8771        6.2116        .23957E-03   -1.5369    
  18  Prefactor     38.747        27.255        .64382E-04   -1.4462    
  19  Prefactor     21.678        48.373        .43013E-03   -1.4776    
  20  Prefactor     20.889        9.4045        .87640E-04   -1.4794    
  21  Prefactor     .10003E-03    79.846        .46063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1869        2.7341        .20148E-03   -1.5490    
  23  norm          4.0452        11.860        .20048E-03   -1.5306    
  24  Normalizat    .61412        .21316        .32287E-03   -1.0739    
  25  Prefactor     1.2745        .21618        .24729E-03   -.84069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5334e-09
Minuit parameter uncertainties:
  1  21.0827
  2  1.56107e-05
  3  8.99105e-05
  4  1.26824
  5  13.8472
  6  2.56645
  7  0.000406227
  8  3.92755e-06
  9  2.09591
  10  4.40849
  11  2.1988
  12  1.36988
  13  2.82208e-06
  14  0.316029
  15  6.42501
  16  0.000167703
  17  6.21303
  18  27.2636
  19  48.4605
  20  9.40514
  21  0.00330654
  22  2.73437
  23  11.8669
  24  0.213448
  25  0.216334
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.116e+00  3.160e-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.274e+00  2.163e-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:  6.141e-01  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.38
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.89e-07 +/- 5.34e-08
Energy Flux (Fixed Index): 6.56e-05 +/- 1.86e-05

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) = 6783.1985532
delta logL = 2.51553789914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6783.19420394
delta logL = 2.51988716547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91302       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9981       1.0000          .0000       5.0000    
     3 'Normalizat'    .50725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3568       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=   6783.194     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91303        2.9916        .41284E-02    .35435E-03
   2  alpha         2.9981        3.9164        .18873        .32965E-04
   3  Normalizat    .50726        .10758        .79501E-01    .43529E-04
   4  Prefactor     1.3568        .13317        .54432E-01   -.17007E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.913028
  alpha      = 2.99813
  Normalizat = 0.507263
  Prefactor  = 1.35679
 **********
 **   18 **HESSE 
 **********

 FCN=   6783.194     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .91E-16    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91303        .30951        .18303E-04   -1.5517    
   2  alpha         2.9981        .36325        .82331E-03    .20060    
   3  Normalizat    .50726        .20800        .35208E-03   -1.1208    
   4  Prefactor     1.3568        .21966        .24065E-03   -.81634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09474e-17
Minuit parameter uncertainties:
  1  0.309509
  2  0.364593
  3  0.208315
  4  0.219815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601312': 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) = 6783.19420393
delta logL = 2.51988716925

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  9.130e-01  3.095e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.998e+00  3.646e-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.357e+00  2.198e-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:  5.073e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.03
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.00 +/- 0.36
Photon Flux (Free Index): 2.63e-07 +/- 6.89e-08
Energy Flux (Free Index): 5.26e-05 +/- 1.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/601312/cmap_HighResolution_441763201_442022401_4FGL_J1224.9+2122_daily_bin781.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.89e-07', energy_flux2='5.26e-05', photon_flux_error='5.34e-08', dlogl='2.52e+00', energy_flux='6.56e-05', photon_flux2='2.63e-07', job_status='DONE', time_completed='2021-09-05 13:42:31.058585', photon_index_error2='0.36', photon_index2='3.00', ts='25.38', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.61', time_epoch_completed='1630874551.06', return_code='0', job_id='601312', GAL2='1.36', EG2='0.51', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='6.89e-08', ts2='31.03', photon_index='2.28' WHERE bin_id='781' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:42:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 601312: <4FGL_J1224.9+2122_daily_bin781> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin781> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:30:33 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:30:35 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:30:35 2021
Terminated at Sun Sep  5 13:42:31 2021
Results reported at Sun Sep  5 13:42:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin781 186.228 21.3814 441763201 442022401 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 :                                   680.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

