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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin53
RA = 186.228, Dec = 21.3814
tmin = 253065601, tmax = 253324801
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='597121', job_status='RUN', time_executed='2021-09-05 13:18:55.155200', time_epoch_executed='1630873135.16' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597121/ft1_4FGL_J1224.9+2122_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597121/ft2_4FGL_J1224.9+2122_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597121/ft1_4FGL_J1224.9+2122_daily_bin53.fits outfile=/scratch/kocevski/597121/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin53.fits ra=186.228 dec=21.3814 rad=12.0 tmin=253065601.0 tmax=253324801.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.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597121/ft2_4FGL_J1224.9+2122_daily_bin53.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/597121/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin53.fits evtable="EVENTS" outfile="/scratch/kocevski/597121/ft1_filtered_4FGL_J1224.9+2122_daily_bin53.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.51
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597121/ft1_filtered_4FGL_J1224.9+2122_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/597121/ft2_4FGL_J1224.9+2122_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/597121/ltcube_253065601_253324801_4FGL_J1224.9+2122_daily_bin53.fits outfile=/scratch/kocevski/597121/expmap_253065601_253324801_4FGL_J1224.9+2122_daily_bin53.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/597121/ltcube_253065601_253324801_4FGL_J1224.9+2122_daily_bin53.fits
.....................!
real 190.21
user 185.64
sys 3.98

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/597121/ft1_filtered_4FGL_J1224.9+2122_daily_bin53.fits scfile=/scratch/kocevski/597121/ft2_4FGL_J1224.9+2122_daily_bin53.fits outfile=/scratch/kocevski/597121/cmap_253065601_253324801_4FGL_J1224.9+2122_daily_bin53.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39687       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0806       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31221E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.148       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65790       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78764       1.0000         .10000E-03   10000.    
    10 'norm      '    5.4572       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3423       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14866       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.729       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-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 '    10.856       1.0000         .10000E-03   10000.    
    22 'norm      '    10.469       1.0000         .10000E-03   10000.    
    23 'norm      '    11.934       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4312       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79908       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=   6876.432     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2916 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6129        20.818        .57897E-06    .27683E-04
   2  Prefactor     .10000E-03    4.2034       -.21970E-06** at limit **
   3  Prefactor     .39553        1.5131        .54163E-06   -.38274E-03
   4  norm          3.0804        1.1639        .11801E-08   -.12219E-03
   5  Prefactor     .10000E-03    4.3270        .15789E-06** at limit **
   6  Prefactor     .10002E-03    1.7354       -.52520E-06** at limit **
   7  Prefactor     38.132        69.706       -.37875E-05   -.85164E-04
   8  Prefactor     .65851        2.7101        .54503E-06   -.13946E-03
   9  Prefactor     .78725        3.5812        .93732E-06   -.13898E-03
  10  norm          5.4568        2.8368       -.16939E-08   -.89087E-04
  11  Prefactor     .10000E-03    1.8630        .14318E-07** at limit **
  12  Prefactor     4.3419        2.3302        .99171E-07   -.18695E-04
  13  Prefactor     .10000E-03    1.9514       -.12252E-07** at limit **
  14  norm          .14855        .22527        .92256E-07   -.64942E-04
  15  norm          .10000E-03    1.6017        .26115E-07** at limit **
  16  Prefactor     10.728        7.7732        .11335E-06   -.33231E-04
  17  Prefactor     7.1805        6.6763       -.72216E-06    .67911E-04
  18  Prefactor     .10000E-03    23.906        .22249E-05** at limit **
  19  Prefactor     .10000E-03    25.499       -.20810E-05** at limit **
  20  Prefactor     .10000E-03    2.4177        .34007E-07** at limit **
  21  Prefactor     10.854        12.801        .13227E-06   -.32561E-04
  22  norm          10.468        4.3040        .42230E-07   -.15013E-04
  23  norm          11.933        13.499        .41122E-08   -.28512E-05
  24  Normalizat    1.4315        .18054       -.86611E-06   -.82319E-04
  25  Prefactor     .79895        .17238       -.14017E-06   -.10361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61293
  Prefactor  = 0.0001
  Prefactor  = 0.395531
  norm       = 3.08042
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 38.1316
  Prefactor  = 0.65851
  Prefactor  = 0.787254
  norm       = 5.45681
  Prefactor  = 0.0001
  Prefactor  = 4.34192
  Prefactor  = 0.0001
  norm       = 0.148551
  norm       = 0.0001
  Prefactor  = 10.7283
  Prefactor  = 7.18045
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.8535
  norm       = 10.4681
  norm       = 11.9335
  Normalizat = 1.43146
  Prefactor  = 0.798946
 **********
 **   18 **HESSE 
 **********

 FCN=   6876.432     FROM HESSE     STATUS=OK           435 CALLS     3351 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6129        20.343        .21284E-03   -1.5328    
   2  Prefactor     .10000E-03    4.2280        .16605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .39553        2.1911        .16905E-02   -1.5582    
   4  norm          3.0804        1.1631        .53082E-04   -1.5357    
   5  Prefactor     .10000E-03    4.3437        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    12.929        .19815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.132        72.008        .64892E-04   -1.4472    
   8  Prefactor     .65851        2.3767        .21503E-03   -1.5546    
   9  Prefactor     .78725        3.0499        .24944E-03   -1.5531    
  10  norm          5.4568        2.8248        .96102E-04   -1.5241    
  11  Prefactor     .10000E-03    1.9229        .21988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3419        2.3282        .87695E-04   -1.5291    
  13  Prefactor     .10000E-03    1.9560        .11310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14855        .21652        .44846E-03   -1.5631    
  15  norm          .10000E-03    1.6096        .10247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.728        7.7661        .12232E-03   -1.5053    
  17  Prefactor     7.1805        6.7437        .74843E-03   -1.5172    
  18  Prefactor     .10000E-03    24.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4264        .12592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.854        12.813        .12160E-03   -1.5049    
  22  norm          10.468        4.3040        .10688E-03   -1.5061    
  23  norm          11.933        13.498        .11596E-03   -1.5017    
  24  Normalizat    1.4315        .20947        .22939E-03   -.79723    
  25  Prefactor     .79895        .20173        .29996E-03   -.99767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97312e-08
Minuit parameter uncertainties:
  1  17.1549
  2  8.35247e-06
  3  1.86176
  4  1.16308
  5  1.87842e-05
  6  0.0010308
  7  72.1723
  8  2.377
  9  3.05051
  10  2.82486
  11  3.35227e-06
  12  2.3282
  13  2.84636e-07
  14  0.216524
  15  1.36547e-06
  16  7.76685
  17  6.7444
  18  0.000273269
  19  0.00027921
  20  2.11766e-06
  21  12.8159
  22  4.30416
  23  13.5019
  24  0.209592
  25  0.201914
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.486e-01  2.165e-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:  7.989e-01  2.019e-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.431e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/597121/likelihoodResults_253065601_253324801_4FGL_J1224.9+2122_daily_bin53.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) = 6874.91106426
delta logL = 1.52103640666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6874.89839114
delta logL = 1.53370952706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63274E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5898       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86244       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=   6874.898     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      296 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63268E-01    1.1968        .12416E-03    .30487E-02
   2  alpha         4.5900        2.6915        .37935E-01    .41929E-05
   3  Normalizat    1.3411        .18390        .23546E-03   -.19409E-04
   4  Prefactor     .86242        .18228        .28983E-03   -.23535E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0632676
  alpha      = 4.58996
  Normalizat = 1.3411
  Prefactor  = 0.862421
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.898     FROM HESSE     STATUS=OK            27 CALLS      323 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63268E-01    .14010        .49666E-05   -1.5658    
   2  alpha         4.5900        4.0601        .15174E-02    .98992    
   3  Normalizat    1.3411        .20490        .94186E-05   -.82348    
   4  Prefactor     .86242        .20371        .11593E-04   -.97467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06125e-11
Minuit parameter uncertainties:
  1  0.140101
  2  1.94082
  3  0.205026
  4  0.203888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597121': 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) = 6874.89839112
delta logL = 1.53370954592

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.327e-02  1.401e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.590e+00  1.941e+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:  8.624e-01  2.039e-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.341e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.84
Ra Dec: 186.228 21.381
Photon Index (Free Index): 4.59 +/- 1.94
Photon Flux (Free Index): 8.88e-08 +/- 5.50e-08
Energy Flux (Free Index): 1.24e-05 +/- 8.21e-06

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/597121/cmap_HighResolution_253065601_253324801_4FGL_J1224.9+2122_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='1.53e+00', photon_flux2='8.88e-08', job_status='DONE', time_completed='2021-09-05 13:31:50.796077', photon_index_error2='1.94', photon_index2='4.59', ts='0.59', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='8.21e-06', EG='1.43', time_epoch_completed='1630873910.8', return_code='0', job_id='597121', GAL2='0.86', EG2='1.34', return_code2='0', photon_flux_error2='5.50e-08', ts2='3.84', photon_index='2.28' WHERE bin_id='53' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 597121: <4FGL_J1224.9+2122_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin53 186.228 21.3814 253065601 253324801 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 :                                   773.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

