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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1434
RA = 186.228, Dec = 21.3814
tmin = 611020801, tmax = 611280001
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='603429', job_status='RUN', time_executed='2021-09-05 13:37:29.404977', time_epoch_executed='1630874249.41' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603429/ft1_4FGL_J1224.9+2122_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603429/ft2_4FGL_J1224.9+2122_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603429/ft1_4FGL_J1224.9+2122_daily_bin1434.fits outfile=/scratch/kocevski/603429/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1434.fits ra=186.228 dec=21.3814 rad=12.0 tmin=611020801.0 tmax=611280001.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.59
user 3.28
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603429/ft1_filtered_4FGL_J1224.9+2122_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/603429/ft2_4FGL_J1224.9+2122_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/603429/ltcube_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.fits outfile=/scratch/kocevski/603429/expmap_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.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/603429/ltcube_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.fits
.....................!
real 192.15
user 186.64
sys 4.90

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/603429/ft1_filtered_4FGL_J1224.9+2122_daily_bin1434.fits scfile=/scratch/kocevski/603429/ft2_4FGL_J1224.9+2122_daily_bin1434.fits outfile=/scratch/kocevski/603429/cmap_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.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.63
user 0.38
sys 0.15

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603429/ft1_filtered_4FGL_J1224.9+2122_daily_bin1434.fits', '/scratch/kocevski/603429/ft2_4FGL_J1224.9+2122_daily_bin1434.fits', expMap='/scratch/kocevski/603429/expmap_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.fits', expCube='/scratch/kocevski/603429/ltcube_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603429/Model_4FGL_J1224.9+2122_daily_bin1434.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/603429/ft1_filtered_4FGL_J1224.9+2122_daily_bin1434.fits
Spacecraft file(s): /scratch/kocevski/603429/ft2_4FGL_J1224.9+2122_daily_bin1434.fits
Exposure map: /scratch/kocevski/603429/expmap_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.fits
Exposure cube: /scratch/kocevski/603429/ltcube_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603429/Model_4FGL_J1224.9+2122_daily_bin1434.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6168.12352347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8789       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31651       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4336       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5319       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5198       1.0000         .10000E-03   10000.    
    14 'norm      '    .19917       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2757       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7070       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3376       1.0000         .10000E-03   10000.    
    22 'norm      '    .77038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.3554       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96850       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=   6167.960     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2535 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8765        22.099       -.34003E-05   -.26343E-04
   2  Prefactor     20.625        12.053       -.19458E-06    .71800E-05
   3  Prefactor     .10000E-03    .94383        .54650E-07** at limit **
   4  norm          .10000E-03    .31148       -.61070E-08** at limit **
   5  Prefactor     .10000E-03    7.8716       -.32446E-06** at limit **
   6  Prefactor     .10001E-03    2.3440        .16009E-06** at limit **
   7  Prefactor     .10000E-03    50.148       -.19542E-04** at limit **
   8  Prefactor     .10000E-03    1.3316        .65460E-07** at limit **
   9  Prefactor     .31681        2.4167       -.12364E-05   -.55521E-03
  10  norm          5.7171        3.0506       -.95704E-07   -.17970E-04
  11  Prefactor     3.4334        2.4446       -.40276E-07   -.14068E-03
  12  Prefactor     3.5320        2.3291       -.35018E-07   -.13210E-03
  13  Prefactor     3.5187        7.7834       -.14461E-05   -.30076E-03
  14  norm          .19920        .16279       -.44422E-08    .74735E-03
  15  norm          7.2761        5.6402       -.45862E-06   -.36439E-04
  16  Prefactor     5.4931        7.1382       -.10618E-05   -.94628E-03
  17  Prefactor     .10000E-03    5.3851       -.24906E-07** at limit **
  18  Prefactor     .10000E-03    28.716       -.12745E-04** at limit **
  19  Prefactor     .10000E-03    37.209        .30151E-04** at limit **
  20  Prefactor     4.7009        8.4844       -.20700E-05   -.10849E-03
  21  Prefactor     7.3305        15.132       -.86101E-06   -.23567E-04
  22  norm          .10017E-03    1.8875       -.59409E-06** at limit **
  23  norm          6.3448        22.848       -.12396E-04    .49848E-05
  24  Normalizat    1.2676        .19541        .19096E-05    .27938E-03
  25  Prefactor     .96866        .19170        .56364E-06    .29999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.87654
  Prefactor  = 20.6253
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.316811
  norm       = 5.71712
  Prefactor  = 3.43343
  Prefactor  = 3.53203
  Prefactor  = 3.51869
  norm       = 0.199196
  norm       = 7.27612
  Prefactor  = 5.49306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70095
  Prefactor  = 7.3305
  norm       = 0.000100169
  norm       = 6.34482
  Normalizat = 1.2676
  Prefactor  = 0.968657
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.960     FROM HESSE     STATUS=OK           437 CALLS     2972 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8765        21.794        .13451E-03   -1.5112    
   2  Prefactor     20.625        11.964        .88207E-04   -1.4799    
   3  Prefactor     .10000E-03    1.5349        .14429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .32050        .85507E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.8883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    12.263        .22477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.3442        .88102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .31681        5.0725        .22789E-02   -1.5595    
  10  norm          5.7171        3.0620        .90443E-04   -1.5230    
  11  Prefactor     3.4334        2.4502        .93722E-04   -1.5337    
  12  Prefactor     3.5320        2.3232        .91577E-04   -1.5332    
  13  Prefactor     3.5187        7.7368        .21548E-03   -1.5333    
  14  norm          .19920        .16814        .27387E-03   -1.5619    
  15  norm          7.2761        5.5996        .14548E-03   -1.5168    
  16  Prefactor     5.4931        7.2160        .85724E-03   -1.5239    
  17  Prefactor     .10000E-03    5.4068        .17795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7009        8.4980        .18548E-03   -1.5274    
  21  Prefactor     7.3305        15.124        .14807E-03   -1.5166    
  22  norm          .10017E-03    17.272        .20570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.3448        22.820        .15922E-03   -1.5204    
  24  Normalizat    1.2676        .22766        .23786E-03   -.84539    
  25  Prefactor     .96866        .22572        .28019E-03   -.93782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17634e-08
Minuit parameter uncertainties:
  1  21.8133
  2  11.965
  3  1.03744e-05
  4  6.57103e-09
  5  5.40255e-06
  6  0.000552893
  7  1.45572e-05
  8  4.30659e-06
  9  2.53521
  10  3.06206
  11  2.45023
  12  2.3233
  13  7.73896
  14  0.168138
  15  5.6
  16  7.21718
  17  4.42926e-06
  18  3.63557e-05
  19  3.39902e-05
  20  8.50019
  21  15.1323
  22  0.00341864
  23  22.851
  24  0.227844
  25  0.225942
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.992e-01  1.681e-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:  9.687e-01  2.259e-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.268e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 9.88e-06

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) = 6167.30151768
delta logL = 0.658075032055

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6167.29243491
delta logL = 0.667157795754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4846       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95818       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=   6167.292     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10015        .91772E-01    .51065E-02   -.62608E-03
   2  alpha         1.4847        .38527        .31725       -.44438E-04
   3  Normalizat    1.2894        .18092        .53405E-01    .41482E-05
   4  Prefactor     .95821        .19029        .45742E-01    .13613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.100152
  alpha      = 1.48469
  Normalizat = 1.28938
  Prefactor  = 0.958208
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.292     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10015        .14741        .20614E-03   -1.5645    
   2  alpha         1.4847        .65108        .12082E-01   -.41821    
   3  Normalizat    1.2894        .21230        .23614E-03   -.83884    
   4  Prefactor     .95821        .22323        .28157E-03   -.94136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69911e-09
Minuit parameter uncertainties:
  1  0.147409
  2  0.66023
  3  0.212445
  4  0.223443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603429': 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) = 6167.29243485
delta logL = 0.667157863953

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.002e-01  1.474e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.485e+00  6.602e-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:  9.582e-01  2.234e-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.289e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.54
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.48 +/- 0.66
Photon Flux (Free Index): 1.37e-08 +/- 1.87e-08
Energy Flux (Free Index): 2.57e-05 +/- 3.39e-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/603429/cmap_HighResolution_611020801_611280001_4FGL_J1224.9+2122_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='2.57e-05', photon_flux_error='2.84e-08', dlogl='6.67e-01', energy_flux='1.17e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-05 13:48:26.027552', photon_index_error2='0.66', photon_index2='1.48', ts='6.20', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.39e-05', EG='1.27', time_epoch_completed='1630874906.03', return_code='0', job_id='603429', GAL2='0.96', EG2='1.29', return_code2='0', energy_flux_error='9.88e-06', photon_flux_error2='1.87e-08', ts2='7.54', photon_index='2.28' WHERE bin_id='1434' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:48:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 603429: <4FGL_J1224.9+2122_daily_bin1434> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1434 186.228 21.3814 611020801 611280001 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 :                                   629.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            737 sec.

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

