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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1177
RA = 186.228, Dec = 21.3814
tmin = 544406401, tmax = 544665601
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='603064', job_status='RUN', time_executed='2021-09-05 13:37:57.787005', time_epoch_executed='1630874277.79' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603064

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603064/ft1_4FGL_J1224.9+2122_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603064/ft2_4FGL_J1224.9+2122_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603064/ft1_4FGL_J1224.9+2122_daily_bin1177.fits outfile=/scratch/kocevski/603064/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1177.fits ra=186.228 dec=21.3814 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.97
user 7.40
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603064/ft2_4FGL_J1224.9+2122_daily_bin1177.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/603064/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/603064/ft1_filtered_4FGL_J1224.9+2122_daily_bin1177.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.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603064/ft1_filtered_4FGL_J1224.9+2122_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/603064/ft2_4FGL_J1224.9+2122_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/603064/ltcube_544406401_544665601_4FGL_J1224.9+2122_daily_bin1177.fits outfile=/scratch/kocevski/603064/expmap_544406401_544665601_4FGL_J1224.9+2122_daily_bin1177.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/603064/ltcube_544406401_544665601_4FGL_J1224.9+2122_daily_bin1177.fits
.....................!
real 190.84
user 185.28
sys 4.64

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/603064/ft1_filtered_4FGL_J1224.9+2122_daily_bin1177.fits scfile=/scratch/kocevski/603064/ft2_4FGL_J1224.9+2122_daily_bin1177.fits outfile=/scratch/kocevski/603064/cmap_544406401_544665601_4FGL_J1224.9+2122_daily_bin1177.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.83
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603064/ft1_filtered_4FGL_J1224.9+2122_daily_bin1177.fits scfile=/scratch/kocevski/603064/ft2_4FGL_J1224.9+2122_daily_bin1177.fits outfile=/scratch/kocevski/603064/cmap_HighResolution_544406401_544665601_4FGL_J1224.9+2122_daily_bin1177.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 1.01
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    95.871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .16179E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.535       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9440       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0281       1.0000         .10000E-03   10000.    
    15 'norm      '    37.332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    30.463       1.0000         .10000E-03   10000.    
    23 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69186       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2954       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=   1177.192     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2855 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    144.37        .53019E-04** at limit **
   2  Prefactor     .10000E-03    164.85       -.32208E-05** at limit **
   3  Prefactor     .10000E-03    7.7802       -.65079E-08** at limit **
   4  norm          95.871        36.314       -.14634E-06   -.27098E-04
   5  Prefactor     .10000E-03    24.036        .21626E-05** at limit **
   6  Prefactor     .10000E-03    16.108        .44241E-05** at limit **
   7  Prefactor     .10000E-03    95.722        .59065E-04** at limit **
   8  Prefactor     8.8618        10.585       -.21308E-06   -.74150E-05
   9  Prefactor     .10000E-03    9.6388       -.21951E-06** at limit **
  10  norm          .10000E-03    119.54        .22456E-04** at limit **
  11  Prefactor     25.538        27.144       -.85018E-06   -.31704E-03
  12  Prefactor     2.9404        12.039       -.24829E-06   -.89862E-04
  13  Prefactor     .10000E-03    66.244       -.74244E-04** at limit **
  14  norm          2.0282        1.2372        .26641E-07    .72426E-03
  15  norm          37.351        26.628        .44422E-06    .59965E-03
  16  Prefactor     .10000E-03    11.553       -.38707E-05** at limit **
  17  Prefactor     .10000E-03    27.823        .28796E-04** at limit **
  18  Prefactor     .10000E-03    22.532       -.19986E-04** at limit **
  19  Prefactor     .10000E-03    243.62       -.26102E-03** at limit **
  20  Prefactor     .10000E-03    10.999        .31555E-05** at limit **
  21  Prefactor     .10000E-03    33.393       -.85585E-05** at limit **
  22  norm          30.460        19.286       -.22174E-06   -.11287E-03
  23  norm          .10000E-03    101.45        .72278E-04** at limit **
  24  Normalizat    .69167        .51572        .16477E-06    .38766E-04
  25  Prefactor     1.2956        .48291        .63335E-06    .76908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 95.8708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8618
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5375
  Prefactor  = 2.94037
  Prefactor  = 0.000100001
  norm       = 2.02818
  norm       = 37.3511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.4602
  norm       = 0.0001
  Normalizat = 0.691675
  Prefactor  = 1.29564
 **********
 **   18 **HESSE 
 **********

 FCN=   1177.192     FROM HESSE     STATUS=OK           409 CALLS     3264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    144.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    166.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7884        .93488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          95.871        36.312        .41050E-04   -1.3747    
   5  Prefactor     .10000E-03    24.046        .16436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.160        .13449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    95.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8618        10.566        .11516E-03   -1.5113    
   9  Prefactor     .10000E-03    9.6862        .10388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    119.78        .40820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.538        26.795        .79274E-04   -1.4697    
  12  Prefactor     2.9404        11.982        .22445E-03   -1.5365    
  13  Prefactor     .10000E-03    66.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0282        1.2340        .27993E-04   -1.5423    
  15  norm          37.351        26.599        .65595E-04   -1.4485    
  16  Prefactor     .10000E-03    11.566        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.823        .17685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.536        .15913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    243.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.004        .11116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          30.460        19.284        .72594E-04   -1.4604    
  23  norm          .10000E-03    101.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69167        .62187        .37308E-03   -1.0422    
  25  Prefactor     1.2956        .58779        .26316E-03   -.83437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06377e-09
Minuit parameter uncertainties:
  1  2.58457e-07
  2  8.05717e-05
  3  5.43391e-07
  4  36.3203
  5  3.23479e-06
  6  3.71025e-06
  7  2.73357e-06
  8  10.5687
  9  2.31017e-06
  10  1.74987e-05
  11  26.8076
  12  11.8751
  13  0.000491201
  14  1.23402
  15  26.6077
  16  1.74399e-06
  17  2.68283e-06
  18  1.3333e-06
  19  3.0973e-06
  20  1.76333e-06
  21  2.91434e-06
  22  19.2883
  23  3.63906e-05
  24  0.628365
  25  0.590829
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.028e+00  1.234e+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

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.296e+00  5.908e-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:  6.917e-01  6.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.43e-07 +/- 2.08e-07
Energy Flux (Fixed Index): 1.19e-04 +/- 7.25e-05

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) = 1176.87818444
delta logL = 0.31423827166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1176.84870841
delta logL = 0.343714296946

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8616       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8499       1.0000          .0000       5.0000    
     3 'Normalizat'    .78016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2226       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=   1176.849     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8616        1.1410        .59855E-02   -.79255E-03
   2  alpha         1.8499        .42140        .13140       -.13538E-04
   3  Normalizat    .78013        .50634        .79786E-01   -.17991E-04
   4  Prefactor     1.2227        .47474        .60814E-01   -.33695E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86163
  alpha      = 1.84992
  Normalizat = 0.780127
  Prefactor  = 1.2227
 **********
 **   18 **HESSE 
 **********

 FCN=   1176.849     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8616        1.2356        .26534E-04   -1.5435    
   2  alpha         1.8499        .47034        .56684E-02   -.26306    
   3  Normalizat    .78013        .62215        .35328E-03   -1.0081    
   4  Prefactor     1.2227        .58456        .26894E-03   -.85636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01063e-11
Minuit parameter uncertainties:
  1  1.23563
  2  0.473369
  3  0.62795
  4  0.587706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603064': 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) = 1176.84870839
delta logL = 0.343714318379

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.862e+00  1.236e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.850e+00  4.734e-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:  1.223e+00  5.877e-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.801e-01  6.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.69
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.85 +/- 0.47
Photon Flux (Free Index): 2.60e-07 +/- 1.90e-07
Energy Flux (Free Index): 1.88e-04 +/- 1.61e-04

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/603064/cmap_HighResolution_544406401_544665601_4FGL_J1224.9+2122_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-07', energy_flux2='1.88e-04', photon_flux_error='2.08e-07', dlogl='3.44e-01', energy_flux='1.19e-04', photon_flux2='2.60e-07', job_status='DONE', time_completed='2021-09-05 13:44:38.730738', photon_index_error2='0.47', photon_index2='1.85', ts='4.98', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='1.61e-04', EG='0.69', time_epoch_completed='1630874678.73', return_code='0', job_id='603064', GAL2='1.22', EG2='0.78', return_code2='0', energy_flux_error='7.25e-05', photon_flux_error2='1.90e-07', ts2='5.69', photon_index='2.28' WHERE bin_id='1177' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 603064: <4FGL_J1224.9+2122_daily_bin1177> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1177 186.228 21.3814 544406401 544665601 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 :                                   393.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             219.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            541 sec.

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

