/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 120 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin311
RA = 186.228, Dec = 21.3814
tmin = 319939201, tmax = 320198401
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='597586', job_status='RUN', time_executed='2021-09-05 13:18:39.543660', time_epoch_executed='1630873119.54' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597586/ft1_4FGL_J1224.9+2122_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597586/ft2_4FGL_J1224.9+2122_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597586/ft1_4FGL_J1224.9+2122_daily_bin311.fits outfile=/scratch/kocevski/597586/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin311.fits ra=186.228 dec=21.3814 rad=12.0 tmin=319939201.0 tmax=320198401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.49
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597586/ft2_4FGL_J1224.9+2122_daily_bin311.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/597586/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin311.fits evtable="EVENTS" outfile="/scratch/kocevski/597586/ft1_filtered_4FGL_J1224.9+2122_daily_bin311.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597586/ft1_filtered_4FGL_J1224.9+2122_daily_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/597586/ft2_4FGL_J1224.9+2122_daily_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/597586/ltcube_319939201_320198401_4FGL_J1224.9+2122_daily_bin311.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/597586/ft2_4FGL_J1224.9+2122_daily_bin311.fits
.....................!
real 11.84
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597586/ft1_filtered_4FGL_J1224.9+2122_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/597586/ft2_4FGL_J1224.9+2122_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/597586/ltcube_319939201_320198401_4FGL_J1224.9+2122_daily_bin311.fits outfile=/scratch/kocevski/597586/expmap_319939201_320198401_4FGL_J1224.9+2122_daily_bin311.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/597586/ltcube_319939201_320198401_4FGL_J1224.9+2122_daily_bin311.fits
.....................!
real 191.98
user 187.02
sys 4.42

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/597586/ft1_filtered_4FGL_J1224.9+2122_daily_bin311.fits scfile=/scratch/kocevski/597586/ft2_4FGL_J1224.9+2122_daily_bin311.fits outfile=/scratch/kocevski/597586/cmap_319939201_320198401_4FGL_J1224.9+2122_daily_bin311.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597586/ft1_filtered_4FGL_J1224.9+2122_daily_bin311.fits scfile=/scratch/kocevski/597586/ft2_4FGL_J1224.9+2122_daily_bin311.fits outfile=/scratch/kocevski/597586/cmap_HighResolution_319939201_320198401_4FGL_J1224.9+2122_daily_bin311.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67389E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4027       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9962       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .98731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85706E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3456       1.0000         .10000E-03   10000.    
    10 'norm      '    10.599       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12683E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3970       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6453       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.443       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.198       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9871       1.0000         .10000E-03   10000.    
    22 'norm      '    .11085E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.513       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1266       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1552       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=   7071.089     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2667 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38779        16.213        .13869E-06   -.59882E-04
   2  Prefactor     .10000E-03    15.044       -.87671E-07** at limit **
   3  Prefactor     1.3952        2.1541        .18926E-06   -.25202E-03
   4  norm          2.9941        1.5736        .63315E-07   -.13509E-03
   5  Prefactor     .10000E-03    7.1242       -.78071E-08** at limit **
   6  Prefactor     .98712        6.0824        .33657E-05   -.22713E-03
   7  Prefactor     .10000E-03    56.175        .54062E-07** at limit **
   8  Prefactor     .10937        1.8732        .20839E-06   -.10922E-02
   9  Prefactor     5.3443        3.9397        .70852E-07   -.38355E-03
  10  norm          10.599        4.2976       -.54967E-07    .65969E-04
  11  Prefactor     .10000E-03    1.4656       -.81754E-07** at limit **
  12  Prefactor     3.4658        2.4246        .56574E-06   -.27253E-03
  13  Prefactor     .10000E-03    1.6924       -.15397E-07** at limit **
  14  norm          3.3973        .49372        .96815E-09   -.14181E-02
  15  norm          .10000E-03    1.9212       -.18560E-07** at limit **
  16  Prefactor     .10000E-03    6.0934        .58928E-06** at limit **
  17  Prefactor     5.6487        8.6204        .72962E-06    .20123E-03
  18  Prefactor     15.460        32.755        .44954E-05    .19758E-03
  19  Prefactor     .10000E-03    30.792        .62784E-07** at limit **
  20  Prefactor     10.201        8.1651        .12892E-07   -.15590E-03
  21  Prefactor     7.0006        18.055        .52782E-06   -.31435E-04
  22  norm          .10000E-03    2.2463       -.21168E-07** at limit **
  23  norm          17.513        18.653        .75914E-07   -.13442E-04
  24  Normalizat    1.1261        .21743       -.13304E-05   -.16398E-03
  25  Prefactor     1.1552        .20120       -.41889E-06   -.17492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.387789
  Prefactor  = 0.0001
  Prefactor  = 1.39518
  norm       = 2.99409
  Prefactor  = 0.0001
  Prefactor  = 0.987119
  Prefactor  = 0.0001
  Prefactor  = 0.109366
  Prefactor  = 5.34432
  norm       = 10.5995
  Prefactor  = 0.000100003
  Prefactor  = 3.4658
  Prefactor  = 0.0001
  norm       = 3.39727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64871
  Prefactor  = 15.4604
  Prefactor  = 0.0001
  Prefactor  = 10.2011
  Prefactor  = 7.00063
  norm       = 0.0001
  norm       = 17.5125
  Normalizat = 1.12612
  Prefactor  = 1.1552
 **********
 **   18 **HESSE 
 **********

 FCN=   7071.089     FROM HESSE     STATUS=OK           453 CALLS     3120 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38779        20.018        .96764E-01   -1.5583    
   2  Prefactor     .10000E-03    15.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3952        2.1114        .13883E-03   -1.5472    
   4  norm          2.9941        1.5716        .72041E-04   -1.5362    
   5  Prefactor     .10000E-03    7.1327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .98712        6.4794        .37635E-02   -1.5509    
   7  Prefactor     .10000E-03    56.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10937        16.346        .19861E-02   -1.5642    
   9  Prefactor     5.3443        3.9400        .13043E-03   -1.5246    
  10  norm          10.599        4.3145        .98850E-04   -1.5057    
  11  Prefactor     .10000E-03    2.5305        .34327E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4658        2.4355        .51503E-03   -1.5336    
  13  Prefactor     .10000E-03    1.6941        .10683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3973        .49531        .21196E-04   -1.5339    
  15  norm          .10000E-03    1.9376        .11380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.0882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6487        8.6840        .16907E-03   -1.5233    
  18  Prefactor     15.460        34.195        .10192E-03   -1.4921    
  19  Prefactor     .10000E-03    30.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.201        8.1743        .12547E-03   -1.5069    
  21  Prefactor     7.0006        18.079        .15177E-03   -1.5179    
  22  norm          .10000E-03    4.6176        .24396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          17.513        18.645        .95706E-04   -1.4871    
  24  Normalizat    1.1261        .26227        .29891E-03   -.88917    
  25  Prefactor     1.1552        .24365        .29543E-03   -.87721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00881e-07
Minuit parameter uncertainties:
  1  5.57359
  2  2.85577e-06
  3  2.11156
  4  1.57161
  5  1.16746e-06
  6  5.05859
  7  2.58719e-05
  8  2.6736
  9  3.94021
  10  4.31463
  11  0.000180017
  12  2.43562
  13  2.98075e-07
  14  0.495314
  15  4.06897e-07
  16  2.77415e-05
  17  8.68589
  18  34.2383
  19  2.12516e-05
  20  8.1752
  21  18.0931
  22  6.63907e-05
  23  18.6508
  24  0.262577
  25  0.243882
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.397e+00  4.953e-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.155e+00  2.439e-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.126e+00  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 164.18
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.74e-07 +/- 8.36e-08
Energy Flux (Fixed Index): 2.00e-04 +/- 2.91e-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) = 7070.92052692
delta logL = 0.168129051851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7070.90616927
delta logL = 0.182486697634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3700       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1861       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1325       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=   7070.906     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3700        .49397        .48432E-02    .51957E-03
   2  alpha         2.1861        .14686        .10870       -.49704E-04
   3  Normalizat    1.1603        .20396        .66765E-01    .42648E-04
   4  Prefactor     1.1325        .20052        .67366E-01   -.15575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.37004
  alpha      = 2.18608
  Normalizat = 1.16031
  Prefactor  = 1.13254
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.906     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3700        .49993        .21406E-04   -1.5341    
   2  alpha         2.1861        .15068        .47548E-03   -.12590    
   3  Normalizat    1.1603        .24933        .29537E-03   -.87838    
   4  Prefactor     1.1325        .24329        .29801E-03   -.88433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22145e-11
Minuit parameter uncertainties:
  1  0.499931
  2  0.150774
  3  0.249587
  4  0.243528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597586': 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) = 7070.90616927
delta logL = 0.182486698438

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.370e+00  4.999e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.186e+00  1.508e-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.133e+00  2.435e-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.160e+00  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 162.92
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.19 +/- 0.15
Photon Flux (Free Index): 5.41e-07 +/- 9.70e-08
Energy Flux (Free Index): 2.12e-04 +/- 3.92e-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/597586/cmap_HighResolution_319939201_320198401_4FGL_J1224.9+2122_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-07', energy_flux2='2.12e-04', photon_flux_error='8.36e-08', dlogl='1.82e-01', energy_flux='2.00e-04', photon_flux2='5.41e-07', job_status='DONE', time_completed='2021-09-05 13:29:59.862636', photon_index_error2='0.15', photon_index2='2.19', ts='164.18', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='3.92e-05', EG='1.13', time_epoch_completed='1630873799.86', return_code='0', job_id='597586', GAL2='1.13', EG2='1.16', return_code2='0', energy_flux_error='2.91e-05', photon_flux_error2='9.70e-08', ts2='162.92', photon_index='2.28' WHERE bin_id='311' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 597586: <4FGL_J1224.9+2122_daily_bin311> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin311> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:16:24 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:16:26 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:16:26 2021
Terminated at Sun Sep  5 13:30:00 2021
Results reported at Sun Sep  5 13:30:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin311 186.228 21.3814 319939201 320198401 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 :                                   671.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

