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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1004
RA = 186.228, Dec = 21.3814
tmin = 499564801, tmax = 499824001
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='601645', job_status='RUN', time_executed='2021-09-05 13:33:17.025262', time_epoch_executed='1630873997.03' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1004'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601645

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601645/ft1_4FGL_J1224.9+2122_daily_bin1004.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601645/ft2_4FGL_J1224.9+2122_daily_bin1004.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601645/ft1_4FGL_J1224.9+2122_daily_bin1004.fits outfile=/scratch/kocevski/601645/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1004.fits ra=186.228 dec=21.3814 rad=12.0 tmin=499564801.0 tmax=499824001.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 5.06
user 4.80
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601645/ft1_filtered_4FGL_J1224.9+2122_daily_bin1004.fits" evtable="EVENTS" scfile=/scratch/kocevski/601645/ft2_4FGL_J1224.9+2122_daily_bin1004.fits sctable="SC_DATA" outfile=/scratch/kocevski/601645/ltcube_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.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/601645/ft2_4FGL_J1224.9+2122_daily_bin1004.fits
.....................!
real 13.50
user 13.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601645/ft1_filtered_4FGL_J1224.9+2122_daily_bin1004.fits evtable="EVENTS" scfile=/scratch/kocevski/601645/ft2_4FGL_J1224.9+2122_daily_bin1004.fits sctable="SC_DATA" expcube=/scratch/kocevski/601645/ltcube_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.fits outfile=/scratch/kocevski/601645/expmap_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.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/601645/ltcube_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.fits
.....................!
real 191.20
user 185.06
sys 5.62

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/601645/ft1_filtered_4FGL_J1224.9+2122_daily_bin1004.fits scfile=/scratch/kocevski/601645/ft2_4FGL_J1224.9+2122_daily_bin1004.fits outfile=/scratch/kocevski/601645/cmap_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.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.60
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601645/ft1_filtered_4FGL_J1224.9+2122_daily_bin1004.fits scfile=/scratch/kocevski/601645/ft2_4FGL_J1224.9+2122_daily_bin1004.fits outfile=/scratch/kocevski/601645/cmap_HighResolution_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.066       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .76679       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71811       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4205       1.0000         .10000E-03   10000.    
    10 'norm      '    20.275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7288       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .17021       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.959       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .39288       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87354       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1019       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=   4701.510     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3008 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.070        27.765        .48874E-06   -.93057E-06
   2  Prefactor     .10000E-03    9.3587       -.75322E-06** at limit **
   3  Prefactor     .10000E-03    .89495        .72624E-08** at limit **
   4  norm          .76709        1.3458        .55409E-07   -.16730E-03
   5  Prefactor     .10000E-03    6.4212        .23118E-05** at limit **
   6  Prefactor     1.3842        4.0949       -.28352E-06   -.14631E-03
   7  Prefactor     .10000E-03    78.118        .37908E-06** at limit **
   8  Prefactor     .72066        2.9843       -.20285E-06   -.17566E-03
   9  Prefactor     3.4177        2.0678        .21933E-06   -.19044E-02
  10  norm          20.276        6.4216       -.15123E-06   -.18855E-03
  11  Prefactor     6.7293        4.2528       -.68452E-06   -.20518E-03
  12  Prefactor     .92646        2.6142        .57029E-06   -.58802E-04
  13  Prefactor     .10000E-03    2.7100        .91910E-08** at limit **
  14  norm          .17023        .22964        .10700E-07   -.32769E-03
  15  norm          .10000E-03    3.6016        .35098E-07** at limit **
  16  Prefactor     .10000E-03    6.2235       -.24183E-05** at limit **
  17  Prefactor     .10000E-03    9.6005        .71897E-06** at limit **
  18  Prefactor     26.972        35.004        .47567E-05    .67458E-04
  19  Prefactor     .10000E-03    144.33       -.23614E-06** at limit **
  20  Prefactor     .10000E-03    4.0703        .63512E-08** at limit **
  21  Prefactor     .10000E-03    5.1070        .76343E-07** at limit **
  22  norm          .40722        3.0510        .10021E-06   -.63575E-04
  23  norm          .10000E-03    35.100       -.17006E-06** at limit **
  24  Normalizat    .87345        .20839       -.59395E-06   -.12196E-04
  25  Prefactor     1.1019        .20235       -.26242E-06   -.41232E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.0704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.767092
  Prefactor  = 0.0001
  Prefactor  = 1.38425
  Prefactor  = 0.0001
  Prefactor  = 0.720655
  Prefactor  = 3.41773
  norm       = 20.276
  Prefactor  = 6.72931
  Prefactor  = 0.926464
  Prefactor  = 0.0001
  norm       = 0.170231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.9723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.407223
  norm       = 0.0001
  Normalizat = 0.873449
  Prefactor  = 1.10186
 **********
 **   18 **HESSE 
 **********

 FCN=   4701.510     FROM HESSE     STATUS=OK           429 CALLS     3437 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.070        27.667        .62552E-04   -1.4425    
   2  Prefactor     .10000E-03    9.4175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .90351        .63215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .76709        1.3117        .99586E-04   -1.5533    
   5  Prefactor     .10000E-03    6.3999        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3842        4.0453        .21955E-03   -1.5473    
   7  Prefactor     .10000E-03    78.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72066        2.9190        .20353E-03   -1.5538    
   9  Prefactor     3.4177        4.4605        .71368E-03   -1.5338    
  10  norm          20.276        6.4070        .84017E-04   -1.4807    
  11  Prefactor     6.7293        4.2540        .98316E-04   -1.5189    
  12  Prefactor     .92646        2.5727        .17080E-03   -1.5515    
  13  Prefactor     .10000E-03    2.7317        .11022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .17023        .21467        .36116E-03   -1.5625    
  15  norm          .10000E-03    3.7281        .25403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3442        .16838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.972        35.289        .77156E-04   -1.4669    
  19  Prefactor     .10000E-03    144.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.0975        .13508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1117        .15133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .40722        13.484        .22780E-02   -1.5580    
  23  norm          .10000E-03    35.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87345        .24237        .26882E-03   -.97399    
  25  Prefactor     1.1019        .23784        .24648E-03   -.89407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41755e-08
Minuit parameter uncertainties:
  1  27.6753
  2  4.26159e-06
  3  7.20015e-08
  4  1.31178
  5  2.11863e-05
  6  4.04613
  7  1.21545e-05
  8  2.90081
  9  4.46093
  10  6.4072
  11  4.2542
  12  2.57302
  13  9.01758e-07
  14  0.21467
  15  2.69379e-06
  16  5.82916e-05
  17  1.8091e-05
  18  35.3166
  19  4.02114e-05
  20  1.85843e-06
  21  3.25969e-07
  22  4.68722
  23  5.82818e-06
  24  0.242674
  25  0.23807
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.702e-01  2.147e-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.102e+00  2.381e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.734e-01  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601645/likelihoodResults_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.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) = 4701.48185246
delta logL = 0.0283137816123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4701.48127536
delta logL = 0.0288908835691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16695       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0365       1.0000          .0000       5.0000    
     3 'Normalizat'    .88061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0958       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=   4701.481     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16683        .27418        .74961E-02    .16458E-02
   2  alpha         2.0338        .78429        .42083       -.23797E-04
   3  Normalizat    .88060        .19746        .44653E-01    .12338E-04
   4  Prefactor     1.0958        .20237        .55873E-01    .27392E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.166832
  alpha      = 2.03384
  Normalizat = 0.880603
  Prefactor  = 1.0958
 **********
 **   18 **HESSE 
 **********

 FCN=   4701.481     FROM HESSE     STATUS=OK            35 CALLS      240 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16683        .21104        .35247E-03   -1.5626    
   2  alpha         2.0338        .91695        .17384E-01   -.18756    
   3  Normalizat    .88060        .23235        .26781E-03   -.97145    
   4  Prefactor     1.0958        .23705        .24705E-03   -.89601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14281e-09
Minuit parameter uncertainties:
  1  0.211042
  2  0.939704
  3  0.232619
  4  0.237274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601645': 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) = 4701.48127122
delta logL = 0.0288950144231

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.668e-01  2.110e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.034e+00  9.397e-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.096e+00  2.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  8.806e-01  2.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.84
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/601645/cmap_HighResolution_499564801_499824001_4FGL_J1224.9+2122_daily_bin1004.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-05 13:43:52.398441', job_id='601645', GAL2='1.10', fit_tolerance='1e-08', EG2='0.88', EG='0.87', time_epoch_completed='1630874632.4', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.89e-02', ts2='0.89', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1004' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 601645: <4FGL_J1224.9+2122_daily_bin1004> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1004 186.228 21.3814 499564801 499824001 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            771 sec.

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

