/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 116 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 = 7432
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin42
RA = 186.228, Dec = 21.3814
tmin = 250214401, tmax = 250473601
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='597100', job_status='RUN', time_executed='2021-09-05 13:17:57.106375', time_epoch_executed='1630873077.11' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597100

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597100/ft1_4FGL_J1224.9+2122_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597100/ft2_4FGL_J1224.9+2122_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597100/ft1_4FGL_J1224.9+2122_daily_bin42.fits outfile=/scratch/kocevski/597100/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin42.fits ra=186.228 dec=21.3814 rad=12.0 tmin=250214401.0 tmax=250473601.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 1.44
user 1.23
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597100/ft1_filtered_4FGL_J1224.9+2122_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/597100/ft2_4FGL_J1224.9+2122_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/597100/ltcube_250214401_250473601_4FGL_J1224.9+2122_daily_bin42.fits outfile=/scratch/kocevski/597100/expmap_250214401_250473601_4FGL_J1224.9+2122_daily_bin42.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/597100/ltcube_250214401_250473601_4FGL_J1224.9+2122_daily_bin42.fits
.....................!
real 190.10
user 185.07
sys 4.52

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/597100/ft1_filtered_4FGL_J1224.9+2122_daily_bin42.fits scfile=/scratch/kocevski/597100/ft2_4FGL_J1224.9+2122_daily_bin42.fits outfile=/scratch/kocevski/597100/cmap_250214401_250473601_4FGL_J1224.9+2122_daily_bin42.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.55
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3504       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8982       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .86673E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10614E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5621       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7854       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16308       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9921       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.012       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.961       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.6553       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83605       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7116.077     FROM MIGRAD    STATUS=CONVERGED   1065 CALLS     3429 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3232        17.374        .13873E-03    .59822E-04
   2  Prefactor     .10000E-03    2.8159        .13809E-02** at limit **
   3  Prefactor     3.8996        2.1287        .84150E-04   -.47285E-04
   4  norm          2.9107        1.2284        .58380E-04   -.36805E-04
   5  Prefactor     .10000E-03    4.7621        .17969E-02** at limit **
   6  Prefactor     .19010E-02    2.7950        .35073E-01** at limit **
   7  Prefactor     .10000E-03    96.543        .18142E-02** at limit **
   8  Prefactor     .10017E-03    17.231        .15096E-02** at limit **
   9  Prefactor     .10000E-03    1.6143        .16263E-02** at limit **
  10  norm          1.4795        1.7107        .11326E-03    .29108E-04
  11  Prefactor     2.5620        1.7226        .85644E-04    .37566E-04
  12  Prefactor     3.7852        2.3498        .96019E-04    .47005E-04
  13  Prefactor     .10000E-03    2.2780        .12400E-02** at limit **
  14  norm          .16305        .22775        .44026E-04    .44673E-04
  15  norm          2.9916        3.0790        .14506E-03   -.37071E-04
  16  Prefactor     .10000E-03    3.0293        .14323E-02** at limit **
  17  Prefactor     17.012        9.7772        .97104E-04    .24938E-04
  18  Prefactor     28.004        20.301        .75702E-04   -.16069E-04
  19  Prefactor     33.875        67.923        .68763E-04   -.58163E-04
  20  Prefactor     .10000E-03    8.6930        .29534E-02** at limit **
  21  Prefactor     .10000E-03    8.4885        .18142E-02** at limit **
  22  norm          4.6553        3.5304        .66303E-03   -.61864E-04
  23  norm          .10000E-03    5.2879        .18142E-02** at limit **
  24  Normalizat    .83608        .19206        .27022E-03    .86332E-04
  25  Prefactor     1.2368        .19199        .23850E-03   -.34035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32325
  Prefactor  = 0.0001
  Prefactor  = 3.89962
  norm       = 2.91072
  Prefactor  = 0.0001
  Prefactor  = 0.00190098
  Prefactor  = 0.0001
  Prefactor  = 0.000100174
  Prefactor  = 0.0001
  norm       = 1.4795
  Prefactor  = 2.56197
  Prefactor  = 3.78522
  Prefactor  = 0.0001
  norm       = 0.163046
  norm       = 2.99156
  Prefactor  = 0.0001
  Prefactor  = 17.0119
  Prefactor  = 28.0044
  Prefactor  = 33.8754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65529
  norm       = 0.0001
  Normalizat = 0.836078
  Prefactor  = 1.23684
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.077     FROM HESSE     STATUS=OK           413 CALLS     3842 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3232        17.372        .55492E-05   -1.5131    
   2  Prefactor     .10000E-03    2.8161        .27618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8996        2.1286        .33660E-05   -1.5313    
   4  norm          2.9107        1.2284        .23352E-05   -1.5367    
   5  Prefactor     .10000E-03    4.7623        .35938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .19010E-02    2.3732        .39525E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    96.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10017E-03    18.037        .60385E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6177        .32526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4795        1.7108        .45305E-05   -1.5465    
  11  Prefactor     2.5620        1.7226        .34258E-05   -1.5388    
  12  Prefactor     3.7852        2.3496        .38408E-05   -1.5319    
  13  Prefactor     .10000E-03    2.2782        .24801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .16305        .22770        .17610E-05   -1.5627    
  15  norm          2.9916        3.0789        .58022E-05   -1.5362    
  16  Prefactor     .10000E-03    3.0294        .28647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.012        9.7767        .38841E-05   -1.4883    
  18  Prefactor     28.004        20.301        .30281E-05   -1.4649    
  19  Prefactor     33.875        67.926        .13753E-04   -1.4543    
  20  Prefactor     .10000E-03    8.7595        .59069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.6553        3.5299        .26521E-04   -1.5276    
  23  norm          .10000E-03    5.2879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83608        .19223        .10809E-04   -.98744    
  25  Prefactor     1.2368        .19211        .95400E-05   -.85205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90379e-09
Minuit parameter uncertainties:
  1  17.3822
  2  1.79616e-06
  3  2.12861
  4  1.22841
  5  1.0325e-06
  6  0.130758
  7  8.85297e-05
  8  0.00354753
  9  2.26417e-05
  10  1.71081
  11  1.72268
  12  2.3497
  13  1.57566e-06
  14  0.227705
  15  3.07903
  16  2.82467e-06
  17  9.77767
  18  20.3064
  19  68.0813
  20  0.000124749
  21  8.45178e-06
  22  3.53005
  23  5.75956e-06
  24  0.192388
  25  0.192215
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.630e-01  2.277e-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:  1.237e+00  1.922e-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:  8.361e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.61
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597100/likelihoodResults_250214401_250473601_4FGL_J1224.9+2122_daily_bin42.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) = 7114.87407564
delta logL = 1.20249780975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7114.86214044
delta logL = 1.21443301466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12417       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9499       1.0000          .0000       5.0000    
     3 'Normalizat'    .75095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2938       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=   7114.862     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12405        1.2257        .39736E-02    .23021E-02
   2  alpha         3.9514        4.0896        .50000        .33587E-04
   3  Normalizat    .75089        .48251E-01    .64212E-01    .16098E-04
   4  Prefactor     1.2938        .51699E-01    .52915E-01   -.36233E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.124047
  alpha      = 3.95139
  Normalizat = 0.750886
  Prefactor  = 1.29382
 **********
 **   18 **HESSE 
 **********

 FCN=   7114.862     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12405        .34279        .17928E-04   -1.5638    
   2  alpha         3.9514        3.9740        .24302E-01    .61941    
   3  Normalizat    .75089        .19113        .28407E-03   -1.0192    
   4  Prefactor     1.2938        .19748        .23394E-03   -.83491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75028e-08
Minuit parameter uncertainties:
  1  0.342798
  2  2.56727
  3  0.191304
  4  0.19759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597100': 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) = 7114.86213952
delta logL = 1.21443393101

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.240e-01  3.428e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.951e+00  2.567e+00  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.294e+00  1.976e-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.509e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 186.228 21.381
Photon Index (Free Index): 3.95 +/- 2.57
Photon Flux (Free Index): 8.87e-08 +/- 5.76e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/597100/cmap_HighResolution_250214401_250473601_4FGL_J1224.9+2122_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='1.21e+00', photon_flux2='8.87e-08', job_status='DONE', time_completed='2021-09-05 13:31:34.293693', photon_index_error2='2.57', photon_index2='3.95', ts='0.61', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.12e-05', EG='0.84', time_epoch_completed='1630873894.29', return_code='0', job_id='597100', GAL2='1.29', EG2='0.75', return_code2='0', photon_flux_error2='5.76e-08', ts2='3.28', photon_index='2.28' WHERE bin_id='42' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 597100: <4FGL_J1224.9+2122_daily_bin42> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin42 186.228 21.3814 250214401 250473601 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 :                                   812.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

