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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1009
RA = 186.228, Dec = 21.3814
tmin = 500860801, tmax = 501120001
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='601654', job_status='RUN', time_executed='2021-09-05 13:33:40.102041', time_epoch_executed='1630874020.1' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601654/ft1_4FGL_J1224.9+2122_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601654/ft2_4FGL_J1224.9+2122_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601654/ft1_4FGL_J1224.9+2122_daily_bin1009.fits outfile=/scratch/kocevski/601654/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1009.fits ra=186.228 dec=21.3814 rad=12.0 tmin=500860801.0 tmax=501120001.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.61
user 4.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601654/ft1_filtered_4FGL_J1224.9+2122_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/601654/ft2_4FGL_J1224.9+2122_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/601654/ltcube_500860801_501120001_4FGL_J1224.9+2122_daily_bin1009.fits outfile=/scratch/kocevski/601654/expmap_500860801_501120001_4FGL_J1224.9+2122_daily_bin1009.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/601654/ltcube_500860801_501120001_4FGL_J1224.9+2122_daily_bin1009.fits
.....................!
real 189.51
user 185.03
sys 4.08

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/601654/ft1_filtered_4FGL_J1224.9+2122_daily_bin1009.fits scfile=/scratch/kocevski/601654/ft2_4FGL_J1224.9+2122_daily_bin1009.fits outfile=/scratch/kocevski/601654/cmap_500860801_501120001_4FGL_J1224.9+2122_daily_bin1009.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.61
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601654/ft1_filtered_4FGL_J1224.9+2122_daily_bin1009.fits scfile=/scratch/kocevski/601654/ft2_4FGL_J1224.9+2122_daily_bin1009.fits outfile=/scratch/kocevski/601654/cmap_HighResolution_500860801_501120001_4FGL_J1224.9+2122_daily_bin1009.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2506       1.0000         .10000E-03   10000.    
     4 'norm      '    4.8448       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.604       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9836       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43719       1.0000         .10000E-03   10000.    
    22 'norm      '    5.0080       1.0000         .10000E-03   10000.    
    23 'norm      '    23.600       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .72300       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4020       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=   5416.032     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2531 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.886        .25084E-06** at limit **
   2  Prefactor     .10000E-03    19.495        .30282E-06** at limit **
   3  Prefactor     3.2505        2.3216        .98429E-06   -.54479E-04
   4  norm          4.8449        1.5319       -.86476E-08    .17236E-03
   5  Prefactor     .10000E-03    14.983        .69127E-06** at limit **
   6  Prefactor     .10007E-03    2.9093       -.15434E-05** at limit **
   7  Prefactor     .10000E-03    52.332        .13718E-05** at limit **
   8  Prefactor     5.0113        3.3671        .31869E-07    .64295E-03
   9  Prefactor     .10000E-03    2.5264        .15227E-06** at limit **
  10  norm          12.607        4.4380        .15986E-07    .41199E-03
  11  Prefactor     .10000E-03    2.4935        .29143E-07** at limit **
  12  Prefactor     .10000E-03    2.1417       -.47688E-06** at limit **
  13  Prefactor     .10000E-03    4.3921        .34293E-07** at limit **
  14  norm          .10000E-03    .14746        .65359E-07** at limit **
  15  norm          10.964        5.8604       -.16782E-06   -.39772E-04
  16  Prefactor     .10000E-03    5.9604        .42410E-07** at limit **
  17  Prefactor     5.9899        11.745        .42493E-05   -.44284E-04
  18  Prefactor     .10000E-03    32.797        .66876E-06** at limit **
  19  Prefactor     .10000E-03    24.858       -.13079E-05** at limit **
  20  Prefactor     .10000E-03    9.8998        .90836E-06** at limit **
  21  Prefactor     .42064        7.3161        .37096E-06   -.66791E-04
  22  norm          5.0088        5.3333        .49906E-06   -.32860E-04
  23  norm          23.557        28.340       -.47331E-05   -.47169E-03
  24  Normalizat    .72305        .19661       -.64997E-06    .25630E-03
  25  Prefactor     1.4020        .20031       -.55014E-06    .25574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25048
  norm       = 4.84489
  Prefactor  = 0.0001
  Prefactor  = 0.000100065
  Prefactor  = 0.000100001
  Prefactor  = 5.01126
  Prefactor  = 0.0001
  norm       = 12.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9638
  Prefactor  = 0.0001
  Prefactor  = 5.98989
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.42064
  norm       = 5.00875
  norm       = 23.557
  Normalizat = 0.723051
  Prefactor  = 1.40202
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.032     FROM HESSE     STATUS=OK           425 CALLS     2956 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2505        2.3522        .45780E-03   -1.5347    
   4  norm          4.8449        1.5313        .49448E-04   -1.5268    
   5  Prefactor     .10000E-03    15.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    11.216        .22233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0113        3.3158        .10355E-03   -1.5260    
   9  Prefactor     .10000E-03    2.5891        .22791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.607        4.3421        .86206E-04   -1.4998    
  11  Prefactor     .10000E-03    2.5459        .22522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7025        .20005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4192        .15048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .31118        .54371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.964        5.8380        .12101E-03   -1.5046    
  16  Prefactor     .10000E-03    5.9764        .17547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9899        11.964        .82076E-03   -1.5218    
  18  Prefactor     .10000E-03    33.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .42064        57.333        .38334E-02   -1.5578    
  22  norm          5.0088        5.3183        .16508E-03   -1.5260    
  23  norm          23.557        30.228        .82455E-04   -1.4737    
  24  Normalizat    .72305        .22368        .30201E-03   -1.0299    
  25  Prefactor     1.4020        .23436        .24001E-03   -.80322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47017e-08
Minuit parameter uncertainties:
  1  1.75834e-05
  2  9.64647e-05
  3  2.3523
  4  1.53132
  5  9.07923e-05
  6  0.00170842
  7  0.000362492
  8  3.31591
  9  9.87726e-06
  10  4.34218
  11  8.72687e-06
  12  6.93231e-05
  13  6.81259e-06
  14  4.61131e-07
  15  5.8383
  16  3.99068e-07
  17  11.9686
  18  0.000116811
  19  0.000247345
  20  9.06462e-05
  21  9.8302
  22  5.31876
  23  30.2474
  24  0.223963
  25  0.234538
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  4.611e-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:  1.402e+00  2.345e-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:  7.231e-01  2.240e-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: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601654/likelihoodResults_500860801_501120001_4FGL_J1224.9+2122_daily_bin1009.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) = 5416.03316044
delta logL = -0.0011426150113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5416.03198397
delta logL = 3.38578847732e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6219       1.0000          .0000       5.0000    
     3 'Normalizat'    .72307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4020       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=   5416.032     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      272 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .22161        .90712E-02** at limit **
   2  alpha         3.2255        2.6465        .41214       -.55581E-06
   3  Normalizat    .72302        .73143E-02    .68251E-01   -.80613E-03
   4  Prefactor     1.4020        .78461E-02    .54286E-01   -.95686E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.22552
  Normalizat = 0.72302
  Prefactor  = 1.40204
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.032     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .55056        .44793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2255        2.5119        .50000        .29445    
   3  Normalizat    .72302        .21707        .30201E-03   -1.0299    
   4  Prefactor     1.4020        .23309        .24001E-03   -.80321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66546e-09
Minuit parameter uncertainties:
  1  1.92412e-05
  2  114.125
  3  0.21733
  4  0.233262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601654': 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) = 5416.03195624
delta logL = 6.15797616774e-05

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.924e-05  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.226e+00  1.141e+02  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.402e+00  2.333e-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:  7.230e-01  2.173e-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/601654/cmap_HighResolution_500860801_501120001_4FGL_J1224.9+2122_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-05 13:44:30.289841', job_id='601654', GAL2='1.40', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630874670.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='6.16e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1009' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 601654: <4FGL_J1224.9+2122_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1009> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:03 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:31:05 2021
Terminated at Sun Sep  5 13:44:31 2021
Results reported at Sun Sep  5 13:44:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1009 186.228 21.3814 500860801 501120001 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 :                                   644.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

