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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1415
RA = 186.228, Dec = 21.3814
tmin = 606096001, tmax = 606355201
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='603400', job_status='RUN', time_executed='2021-09-05 13:38:50.890127', time_epoch_executed='1630874330.89' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603400

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603400/ft1_4FGL_J1224.9+2122_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603400/ft2_4FGL_J1224.9+2122_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603400/ft1_4FGL_J1224.9+2122_daily_bin1415.fits outfile=/scratch/kocevski/603400/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1415.fits ra=186.228 dec=21.3814 rad=12.0 tmin=606096001.0 tmax=606355201.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 4.02
user 3.44
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603400/ft1_filtered_4FGL_J1224.9+2122_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/603400/ft2_4FGL_J1224.9+2122_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/603400/ltcube_606096001_606355201_4FGL_J1224.9+2122_daily_bin1415.fits outfile=/scratch/kocevski/603400/expmap_606096001_606355201_4FGL_J1224.9+2122_daily_bin1415.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/603400/ltcube_606096001_606355201_4FGL_J1224.9+2122_daily_bin1415.fits
.....................!
real 192.44
user 186.02
sys 4.64

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/603400/ft1_filtered_4FGL_J1224.9+2122_daily_bin1415.fits scfile=/scratch/kocevski/603400/ft2_4FGL_J1224.9+2122_daily_bin1415.fits outfile=/scratch/kocevski/603400/cmap_606096001_606355201_4FGL_J1224.9+2122_daily_bin1415.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.65
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603400/ft1_filtered_4FGL_J1224.9+2122_daily_bin1415.fits scfile=/scratch/kocevski/603400/ft2_4FGL_J1224.9+2122_daily_bin1415.fits outfile=/scratch/kocevski/603400/cmap_HighResolution_606096001_606355201_4FGL_J1224.9+2122_daily_bin1415.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.73
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1614       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9598       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.929       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4589       1.0000         .10000E-03   10000.    
     7 'Prefactor '    98.077       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .54788E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7301       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0928       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2497       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.901       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3161       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0386       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76264       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=   5332.073     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2907 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.794        17.009        .19249E-06    .53388E-05
   2  Prefactor     .10000E-03    2.8217       -.44431E-07** at limit **
   3  Prefactor     3.1615        1.8784        .82755E-08   -.42268E-04
   4  norm          4.9599        1.5111        .25139E-07    .12713E-03
   5  Prefactor     11.930        26.820        .23631E-05    .81707E-05
   6  Prefactor     5.4618        5.0628        .10535E-06   -.50459E-03
   7  Prefactor     98.127        131.80       -.65950E-05   -.16802E-04
   8  Prefactor     .10001E-03    1.8471        .10869E-05** at limit **
   9  Prefactor     2.7333        3.7721       -.68598E-06   -.89285E-03
  10  norm          .10000E-03    1.0502       -.89159E-07** at limit **
  11  Prefactor     7.9333        2.9612        .35482E-07    .13007E-03
  12  Prefactor     .10000E-03    1.0903       -.23376E-06** at limit **
  13  Prefactor     1.0927        4.1743        .11775E-04   -.14825E-03
  14  norm          .10000E-03    .65173E-01   -.11184E-06** at limit **
  15  norm          4.2498        3.9406       -.96352E-06    .44876E-04
  16  Prefactor     10.903        9.4319        .68341E-07    .19373E-04
  17  Prefactor     13.060        10.569        .61040E-06    .62481E-04
  18  Prefactor     .10000E-03    72.333       -.75408E-06** at limit **
  19  Prefactor     21.290        72.660       -.23954E-04   -.30564E-04
  20  Prefactor     2.3160        4.7560        .30248E-05   -.42453E-04
  21  Prefactor     .10000E-03    6.1211       -.22039E-06** at limit **
  22  norm          2.0387        2.2503       -.47344E-07    .61575E-05
  23  norm          .10000E-03    7.1272        .77972E-07** at limit **
  24  Normalizat    1.0939        .18904       -.23844E-05   -.25416E-03
  25  Prefactor     .76273        .18066        .21132E-05    .91468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7936
  Prefactor  = 0.0001
  Prefactor  = 3.16147
  norm       = 4.95992
  Prefactor  = 11.9298
  Prefactor  = 5.46184
  Prefactor  = 98.1271
  Prefactor  = 0.000100006
  Prefactor  = 2.73326
  norm       = 0.0001
  Prefactor  = 7.93328
  Prefactor  = 0.0001
  Prefactor  = 1.09272
  norm       = 0.0001
  norm       = 4.24975
  Prefactor  = 10.9028
  Prefactor  = 13.0602
  Prefactor  = 0.0001
  Prefactor  = 21.2902
  Prefactor  = 2.31602
  Prefactor  = 0.0001
  norm       = 2.03867
  norm       = 0.0001
  Normalizat = 1.09391
  Prefactor  = 0.762728
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.073     FROM HESSE     STATUS=OK           431 CALLS     3338 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.794        17.013        .92392E-04   -1.4841    
   2  Prefactor     .10000E-03    2.8234        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1615        1.8747        .73764E-04   -1.5352    
   4  norm          4.9599        1.5126        .47559E-04   -1.5263    
   5  Prefactor     11.930        26.694        .11599E-03   -1.5017    
   6  Prefactor     5.4618        4.9397        .14359E-03   -1.5241    
   7  Prefactor     98.127        131.19        .20295E-03   -1.3724    
   8  Prefactor     .10001E-03    9.7774        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7333        3.5344        .14648E-03   -1.5377    
  10  norm          .10000E-03    1.0577        .72970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.9333        2.9566        .73963E-04   -1.5145    
  12  Prefactor     .10000E-03    1.1127        .74343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0927        4.1874        .13956E-02   -1.5499    
  14  norm          .10000E-03    .76197E-01    .36235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2498        3.9434        .13178E-03   -1.5296    
  16  Prefactor     10.903        9.4167        .12134E-03   -1.5047    
  17  Prefactor     13.060        10.566        .11084E-03   -1.4985    
  18  Prefactor     .10000E-03    74.318        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.290        72.547        .86997E-04   -1.4785    
  20  Prefactor     2.3160        4.7287        .11018E-02   -1.5404    
  21  Prefactor     .10000E-03    6.1399        .17644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0387        2.2509        .11185E-03   -1.5422    
  23  norm          .10000E-03    7.1287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0939        .21727        .23253E-03   -.89947    
  25  Prefactor     .76273        .20807        .27706E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39337e-09
Minuit parameter uncertainties:
  1  17.0176
  2  5.05912e-06
  3  1.87473
  4  1.51263
  5  26.7207
  6  4.94004
  7  131.585
  8  0.000483328
  9  3.53463
  10  4.0384e-06
  11  2.95668
  12  1.29607e-05
  13  4.18854
  14  1.57552e-06
  15  3.94365
  16  9.41799
  17  10.5675
  18  0.000303926
  19  72.8504
  20  4.72946
  21  2.48215e-05
  22  2.25103
  23  4.21873e-06
  24  0.217447
  25  0.20828
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.576e-06  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:  7.627e-01  2.083e-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.094e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603400/likelihoodResults_606096001_606355201_4FGL_J1224.9+2122_daily_bin1415.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) = 5332.07324795
delta logL = -0.000156304862685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5332.06944764
delta logL = 0.00364400361286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15319E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76559       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5332.069     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      408 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15329E-02    .71961E-01    .18177E-03** at limit **
   2  alpha         5.0000        3.0639        .18507    ** at limit **
   3  Normalizat    1.0894        .21378        .23299E-03   -.44648E-04
   4  Prefactor     .76561        .21074        .27660E-03   -.22400E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00153293
  alpha      = 5
  Normalizat = 1.08937
  Prefactor  = 0.765606
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.069     FROM HESSE     STATUS=OK            25 CALLS      433 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15329E-02    .70629E-01    .72710E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        3.1416        .37014E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0894        .21176        .93195E-05   -.90094    
   4  Prefactor     .76561        .21004        .11064E-04   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3626e-11
Minuit parameter uncertainties:
  1  0.0201204
  2  0.000519419
  3  0.211928
  4  0.210259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603400': 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) = 5332.06944726
delta logL = 0.00364438840006

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.533e-03  2.012e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  5.194e-04  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:  7.656e-01  2.103e-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.089e+00  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/603400/cmap_HighResolution_606096001_606355201_4FGL_J1224.9+2122_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-05 13:50:26.941568', job_id='603400', GAL2='0.77', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630875026.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.64e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1415' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 603400: <4FGL_J1224.9+2122_daily_bin1415> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1415> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:06 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:08 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:36:08 2021
Terminated at Sun Sep  5 13:50:27 2021
Results reported at Sun Sep  5 13:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1415 186.228 21.3814 606096001 606355201 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 :                                   675.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

