/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 79 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 = 7455
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1384
RA = 186.228, Dec = 21.3814
tmin = 598060801, tmax = 598320001
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='603353', job_status='RUN', time_executed='2021-09-05 13:37:46.740165', time_epoch_executed='1630874266.74' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603353

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603353/ft1_4FGL_J1224.9+2122_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603353/ft2_4FGL_J1224.9+2122_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603353/ft1_4FGL_J1224.9+2122_daily_bin1384.fits outfile=/scratch/kocevski/603353/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1384.fits ra=186.228 dec=21.3814 rad=12.0 tmin=598060801.0 tmax=598320001.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.89
user 4.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603353/ft1_filtered_4FGL_J1224.9+2122_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/603353/ft2_4FGL_J1224.9+2122_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/603353/ltcube_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.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/603353/ft2_4FGL_J1224.9+2122_daily_bin1384.fits
.....................!
real 11.62
user 11.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603353/ft1_filtered_4FGL_J1224.9+2122_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/603353/ft2_4FGL_J1224.9+2122_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/603353/ltcube_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.fits outfile=/scratch/kocevski/603353/expmap_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.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/603353/ltcube_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.fits
.....................!
real 195.95
user 186.44
sys 5.86

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/603353/ft1_filtered_4FGL_J1224.9+2122_daily_bin1384.fits scfile=/scratch/kocevski/603353/ft2_4FGL_J1224.9+2122_daily_bin1384.fits outfile=/scratch/kocevski/603353/cmap_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.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.98
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603353/ft1_filtered_4FGL_J1224.9+2122_daily_bin1384.fits scfile=/scratch/kocevski/603353/ft2_4FGL_J1224.9+2122_daily_bin1384.fits outfile=/scratch/kocevski/603353/cmap_HighResolution_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.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.70
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9410       1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.887       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46153E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6193       1.0000         .10000E-03   10000.    
    10 'norm      '    11.071       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1866       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2321       1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.244       1.0000         .10000E-03   10000.    
    19 'Prefactor '    150.85       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.350       1.0000         .10000E-03   10000.    
    22 'norm      '    .81988       1.0000         .10000E-03   10000.    
    23 'norm      '    50.015       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1022       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91919       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5871.306     FROM MIGRAD    STATUS=CONVERGED     74 CALLS     2859 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.865       -.10784E-05** at limit **
   2  Prefactor     .74500        1.1695       -.14306E-05   -.21479E-03
   3  Prefactor     2.9411        1.6998        .81744E-07    .56420E-04
   4  norm          .10000E-03    .42371        .70274E-07** at limit **
   5  Prefactor     18.860        13.673       -.16021E-05   -.49345E-02
   6  Prefactor     .10000E-03    .59951        .80829E-07** at limit **
   7  Prefactor     .38733E-02    12.931       -.93120E-05    .26081E-02
   8  Prefactor     .10000E-03    .88643        .10541E-07** at limit **
   9  Prefactor     3.6191        2.6169       -.12126E-05   -.52049E-03
  10  norm          11.071        1.4148        .76248E-06    .38461E-02
  11  Prefactor     .10000E-03    .73459       -.21338E-07** at limit **
  12  Prefactor     .10000E-03    .94865       -.36140E-07** at limit **
  13  Prefactor     .10000E-03    1.9686       -.96078E-07** at limit **
  14  norm          .10000E-03    .13945       -.30494E-07** at limit **
  15  norm          5.1863        4.1206        .44272E-05    .23583E-02
  16  Prefactor     9.2926        1.0075       -.32863E-07   -.20102E-03
  17  Prefactor     5.2310        1.1402        .32816E-06   -.33225E-03
  18  Prefactor     47.245        1.0268        .15198E-07   -.10209E-03
  19  Prefactor     150.85        1.0541        .36206E-07   -.14275E-02
  20  Prefactor     .10000E-03    2.4906       -.20773E-06** at limit **
  21  Prefactor     11.364        6.9292        .11337E-05    .10335E-02
  22  norm          .82060        1.1636        .90981E-06    .89465E-03
  23  norm          50.014        1.3792       -.16163E-06    .18125E-02
  24  Normalizat    1.1024        .20457       -.57150E-06    .11187E-04
  25  Prefactor     .91893        .20988       -.99612E-06   -.31824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.745
  Prefactor  = 2.94113
  norm       = 0.0001
  Prefactor  = 18.86
  Prefactor  = 0.0001
  Prefactor  = 0.00387326
  Prefactor  = 0.0001
  Prefactor  = 3.6191
  norm       = 11.0713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.18627
  Prefactor  = 9.29264
  Prefactor  = 5.23105
  Prefactor  = 47.245
  Prefactor  = 150.855
  Prefactor  = 0.0001
  Prefactor  = 11.3638
  norm       = 0.820596
  norm       = 50.0135
  Normalizat = 1.10239
  Prefactor  = 0.918934
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.306     FROM HESSE     STATUS=OK           481 CALLS     3340 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.724        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74500        7.1249        .12232E-01   -1.5535    
   3  Prefactor     2.9411        1.7058        .59210E-02   -1.5365    
   4  norm          .10000E-03    .40842        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.860        15.663        .23040E-02   -1.4839    
   6  Prefactor     .10000E-03    .59954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38733E-02    1107.2        .96554E-02   -1.5696    
   8  Prefactor     .10000E-03    .87363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6191        2.6264        .53093E-02   -1.5327    
  10  norm          11.071        3.5508        .30102E-02   -1.5042    
  11  Prefactor     .10000E-03    .73300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .93076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.9492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .88593E-01    .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1863        4.4023        .44129E-02   -1.5252    
  16  Prefactor     9.2926        9.3789        .32868E-02   -1.5098    
  17  Prefactor     5.2310        10.431        .43933E-02   -1.5250    
  18  Prefactor     47.245        27.440        .14584E-02   -1.4332    
  19  Prefactor     150.85        84.953        .82040E-03   -1.3245    
  20  Prefactor     .10000E-03    2.4847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.364        16.539        .29729E-02   -1.5034    
  22  norm          .82060        2.4583        .46445E-01   -1.5527    
  23  norm          50.014        29.788        .14176E-02   -1.4292    
  24  Normalizat    1.1024        .18525        .37912E-01   -.89675    
  25  Prefactor     .91893        .18519        .45249E-01   -.95483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29465e-06
Minuit parameter uncertainties:
  1  0.000159828
  2  4.60827
  3  1.7058
  4  6.78027e-06
  5  15.6659
  6  9.10369e-06
  7  4.16744
  8  4.25627e-06
  9  2.62651
  10  3.55087
  11  3.24326e-06
  12  4.38115e-06
  13  8.46766e-06
  14  1.61871e-06
  15  4.40257
  16  9.38034
  17  10.4343
  18  27.4478
  19  85.0214
  20  2.89399e-05
  21  16.5454
  22  2.45863
  23  29.7969
  24  0.185363
  25  0.185313
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.619e-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:  9.189e-01  1.853e-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.102e+00  1.854e-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: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603353/likelihoodResults_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5871.30783387
delta logL = -0.00183399106936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.13638893
delta logL = 0.16961094663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11558E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94232       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=   5871.136     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      318 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11563E-01    .21744E-01    .14099E-04   -.63138E-03
   2  alpha         5.0000        4.5250        .14674    ** at limit **
   3  Normalizat    1.0659        .21063        .23944E-03   -.27084E-03
   4  Prefactor     .94247        .21471        .26357E-03   -.14018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0115633
  alpha      = 5
  Normalizat = 1.06586
  Prefactor  = 0.942471
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.136     FROM HESSE     STATUS=OK            23 CALLS      341 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11563E-01    .21344E-01    .56395E-06   -1.5687    
   2  alpha         5.0000        4.5245        .58695E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0659        .21076        .47888E-04   -.90856    
   4  Prefactor     .94247        .21488        .10543E-04   -.94672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09779e-10
Minuit parameter uncertainties:
  1  0.0213441
  2  4.61002e-06
  3  0.210925
  4  0.215073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603353': 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) = 5871.1363863
delta logL = 0.169613575511

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.156e-02  2.134e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  4.610e-06  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:  9.425e-01  2.151e-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.066e+00  2.109e-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/603353/cmap_HighResolution_598060801_598320001_4FGL_J1224.9+2122_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-05', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-05 13:50:08.346444', job_id='603353', GAL2='0.94', fit_tolerance='1e-08', EG2='1.07', EG='1.10', time_epoch_completed='1630875008.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.70e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1384' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:50:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 603353: <4FGL_J1224.9+2122_daily_bin1384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1384 186.228 21.3814 598060801 598320001 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 :                                   716.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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

