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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1279
RA = 186.228, Dec = 21.3814
tmin = 570844801, tmax = 571104001
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='603219', job_status='RUN', time_executed='2021-09-05 13:37:10.732035', time_epoch_executed='1630874230.73' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603219/ft1_4FGL_J1224.9+2122_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603219/ft2_4FGL_J1224.9+2122_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603219/ft1_4FGL_J1224.9+2122_daily_bin1279.fits outfile=/scratch/kocevski/603219/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1279.fits ra=186.228 dec=21.3814 rad=12.0 tmin=570844801.0 tmax=571104001.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.34
user 2.83
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603219/ft1_filtered_4FGL_J1224.9+2122_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/603219/ft2_4FGL_J1224.9+2122_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/603219/ltcube_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.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/603219/ft2_4FGL_J1224.9+2122_daily_bin1279.fits
.....................!
real 12.37
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603219/ft1_filtered_4FGL_J1224.9+2122_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/603219/ft2_4FGL_J1224.9+2122_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/603219/ltcube_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.fits outfile=/scratch/kocevski/603219/expmap_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.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/603219/ltcube_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.fits
.....................!
real 191.22
user 185.48
sys 5.25

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/603219/ft1_filtered_4FGL_J1224.9+2122_daily_bin1279.fits scfile=/scratch/kocevski/603219/ft2_4FGL_J1224.9+2122_daily_bin1279.fits outfile=/scratch/kocevski/603219/cmap_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.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.72
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603219/ft1_filtered_4FGL_J1224.9+2122_daily_bin1279.fits scfile=/scratch/kocevski/603219/ft2_4FGL_J1224.9+2122_daily_bin1279.fits outfile=/scratch/kocevski/603219/cmap_HighResolution_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.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.63
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.871       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.1273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.316       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7975       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12718E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86714E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3611       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9678       1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.785       1.0000         .10000E-03   10000.    
    19 'Prefactor '    98.023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12187E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    5.9691       1.0000         .10000E-03   10000.    
    23 'norm      '    34.241       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3255       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68140       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=   3074.440     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2487 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10314E-03    72.625        .16936E-04** at limit **
   2  Prefactor     17.880        1.5689        .24556E-06    .70193E-03
   3  Prefactor     .10000E-03    2.3453        .42439E-06** at limit **
   4  norm          6.1276        3.2993        .81981E-06    .71839E-03
   5  Prefactor     48.308        1.7011       -.42579E-06    .14783E-02
   6  Prefactor     3.8085        6.4255        .13513E-04    .49329E-02
   7  Prefactor     .10357E-03    187.26       -.21524E-04** at limit **
   8  Prefactor     .10002E-03    13.479        .82846E-05** at limit **
   9  Prefactor     .10000E-03    6.1418        .16755E-06** at limit **
  10  norm          4.9650        3.9253       -.18508E-05   -.25643E-02
  11  Prefactor     .10000E-03    1.3671       -.33298E-06** at limit **
  12  Prefactor     2.3612        2.5479        .16625E-06    .77031E-04
  13  Prefactor     .10000E-03    7.3127       -.74067E-06** at limit **
  14  norm          .10000E-03    .17956       -.40711E-08** at limit **
  15  norm          12.316        1.2538       -.94949E-06   -.19568E-02
  16  Prefactor     .10000E-03    5.2786       -.24600E-06** at limit **
  17  Prefactor     8.9675        1.0174       -.25226E-06   -.22781E-03
  18  Prefactor     37.781        1.1993       -.23501E-06    .51364E-03
  19  Prefactor     98.021        1.0989       -.13709E-06    .97893E-03
  20  Prefactor     .10000E-03    3.5314        .18076E-06** at limit **
  21  Prefactor     .11443E-03    35.099       -.27975E-04** at limit **
  22  norm          5.9682        2.1914       -.16548E-05   -.56335E-02
  23  norm          34.241        1.0013       -.30243E-07   -.20066E-03
  24  Normalizat    1.3257        .29015       -.30698E-05   -.22224E-04
  25  Prefactor     .68124        .28235        .75509E-06   -.26047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103138
  Prefactor  = 17.8803
  Prefactor  = 0.0001
  norm       = 6.12762
  Prefactor  = 48.3082
  Prefactor  = 3.80853
  Prefactor  = 0.000103565
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 4.96496
  Prefactor  = 0.0001
  Prefactor  = 2.36119
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.3159
  Prefactor  = 0.0001
  Prefactor  = 8.96753
  Prefactor  = 37.7814
  Prefactor  = 98.021
  Prefactor  = 0.0001
  Prefactor  = 0.000114432
  norm       = 5.96815
  norm       = 34.2407
  Normalizat = 1.32568
  Prefactor  = 0.681244
 **********
 **   18 **HESSE 
 **********

 FCN=   3074.440     FROM HESSE     STATUS=OK           493 CALLS     2980 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10314E-03    84.195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.880        28.492        .23686E-02   -1.4862    
   3  Prefactor     .10000E-03    2.3301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1276        3.3103        .40547E-02   -1.5213    
   5  Prefactor     48.308        44.851        .14422E-02   -1.4317    
   6  Prefactor     3.8085        7.7011        .51785E-02   -1.5318    
   7  Prefactor     .10357E-03    201.14        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    3.8896        .57397E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9578        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9650        4.2113        .45120E-02   -1.5262    
  11  Prefactor     .10000E-03    1.3642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3612        2.5551        .66675E-02   -1.5401    
  13  Prefactor     .10000E-03    7.2420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .15354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.316        6.3215        .28535E-02   -1.5006    
  16  Prefactor     .10000E-03    5.2776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9675        8.7194        .33461E-02   -1.5109    
  18  Prefactor     37.781        42.382        .16300E-02   -1.4478    
  19  Prefactor     98.021        91.837        .10150E-02   -1.3725    
  20  Prefactor     .10000E-03    3.5242        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .11443E-03    13.786        .10313       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.9682        4.4898        .41088E-02   -1.5219    
  23  norm          34.241        26.393        .17121E-02   -1.4537    
  24  Normalizat    1.3257        .25890        .53297E-01   -.82803    
  25  Prefactor     .68124        .24692        .70294E-01   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53415e-07
Minuit parameter uncertainties:
  1  0.0325551
  2  28.514
  3  7.19956e-06
  4  3.31038
  5  44.8828
  6  7.70314
  7  0.0537394
  8  0.000608689
  9  1.42881e-05
  10  4.21159
  11  5.97958e-06
  12  2.55524
  13  8.19297e-05
  14  5.64069e-07
  15  6.32188
  16  5.79587e-06
  17  8.72061
  18  42.4161
  19  91.971
  20  5.18021e-06
  21  0.0282171
  22  4.49002
  23  26.4019
  24  0.259152
  25  0.247316
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  5.641e-07  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:  6.812e-01  2.473e-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.326e+00  2.592e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603219/likelihoodResults_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.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) = 3074.44013124
delta logL = -8.99030551409e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3073.84654081
delta logL = 0.593500535199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50434E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75918       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=   3073.847     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      336 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50426E-01    .86634E-01    .27115E-02    .18115E-02
   2  alpha         5.0000        3.4820        .46267    ** at limit **
   3  Normalizat    1.1991        .26642        .55591E-01    .29996E-05
   4  Prefactor     .75917        .24881        .66976E-01    .94495E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0504261
  alpha      = 5
  Normalizat = 1.19911
  Prefactor  = 0.759173
 **********
 **   18 **HESSE 
 **********

 FCN=   3073.847     FROM HESSE     STATUS=OK            33 CALLS      369 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50426E-01    .53802E-01    .12270E-03   -1.5663    
   2  alpha         5.0000        .89811        .45667E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1991        .31012        .24582E-03   -.86630    
   4  Prefactor     .75917        .29333        .29632E-03   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90531e-13
Minuit parameter uncertainties:
  1  0.0538019
  2  2.80885e-08
  3  0.310595
  4  0.293929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603219': 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) = 3073.84654079
delta logL = 0.593500550192

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.043e-02  5.380e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  2.809e-08  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.592e-01  2.939e-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.199e+00  3.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 186.228 21.381
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.11e-07 +/- 1.18e-07
Energy Flux (Free Index): 1.49e-05 +/- 1.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603219/cmap_HighResolution_570844801_571104001_4FGL_J1224.9+2122_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='5.94e-01', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-05 13:45:49.618822', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.58e-05', EG='1.33', time_epoch_completed='1630874749.62', return_code='0', job_id='603219', GAL2='0.76', EG2='1.20', return_code2='0', photon_flux_error2='1.18e-07', ts2='1.31', photon_index='2.28' WHERE bin_id='1279' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 603219: <4FGL_J1224.9+2122_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1279 186.228 21.3814 570844801 571104001 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 :                                   504.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            599 sec.

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

