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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1064
RA = 186.228, Dec = 21.3814
tmin = 515116801, tmax = 515376001
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='601741', job_status='RUN', time_executed='2021-09-05 13:33:33.691239', time_epoch_executed='1630874013.69' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601741/ft1_4FGL_J1224.9+2122_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601741/ft2_4FGL_J1224.9+2122_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601741/ft1_4FGL_J1224.9+2122_daily_bin1064.fits outfile=/scratch/kocevski/601741/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1064.fits ra=186.228 dec=21.3814 rad=12.0 tmin=515116801.0 tmax=515376001.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.50
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601741/ft1_filtered_4FGL_J1224.9+2122_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/601741/ft2_4FGL_J1224.9+2122_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/601741/ltcube_515116801_515376001_4FGL_J1224.9+2122_daily_bin1064.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/601741/ft2_4FGL_J1224.9+2122_daily_bin1064.fits
.....................!
real 11.95
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601741/ft1_filtered_4FGL_J1224.9+2122_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/601741/ft2_4FGL_J1224.9+2122_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/601741/ltcube_515116801_515376001_4FGL_J1224.9+2122_daily_bin1064.fits outfile=/scratch/kocevski/601741/expmap_515116801_515376001_4FGL_J1224.9+2122_daily_bin1064.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/601741/ltcube_515116801_515376001_4FGL_J1224.9+2122_daily_bin1064.fits
.....................!
real 190.15
user 185.68
sys 4.10

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/601741/ft1_filtered_4FGL_J1224.9+2122_daily_bin1064.fits scfile=/scratch/kocevski/601741/ft2_4FGL_J1224.9+2122_daily_bin1064.fits outfile=/scratch/kocevski/601741/cmap_515116801_515376001_4FGL_J1224.9+2122_daily_bin1064.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601741/ft1_filtered_4FGL_J1224.9+2122_daily_bin1064.fits scfile=/scratch/kocevski/601741/ft2_4FGL_J1224.9+2122_daily_bin1064.fits outfile=/scratch/kocevski/601741/cmap_HighResolution_515116801_515376001_4FGL_J1224.9+2122_daily_bin1064.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.60
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0603       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    16.800       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .37026       1.0000         .10000E-03   10000.    
    15 'norm      '    8.6415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.218       1.0000         .10000E-03   10000.    
    22 'norm      '    12.542       1.0000         .10000E-03   10000.    
    23 'norm      '    5.9057       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0219       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84383       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=   5694.134     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2876 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.9990        .25662E-06** at limit **
   2  Prefactor     .10000E-03    3.6168       -.56998E-06** at limit **
   3  Prefactor     .10000E-03    .57251       -.30359E-06** at limit **
   4  norm          3.0578        1.4023       -.31284E-06    .39022E-04
   5  Prefactor     16.224        13.944       -.49988E-06    .37660E-05
   6  Prefactor     .10000E-03    3.8397        .67872E-06** at limit **
   7  Prefactor     .10000E-03    63.840        .77317E-05** at limit **
   8  Prefactor     3.0612        2.4307       -.56096E-06   -.13386E-03
   9  Prefactor     .10000E-03    .89518       -.61833E-07** at limit **
  10  norm          16.799        4.5483       -.11535E-06    .10938E-03
  11  Prefactor     1.3698        1.4712        .39917E-07    .23379E-03
  12  Prefactor     1.7506        1.9777       -.22629E-06   -.26744E-03
  13  Prefactor     .10000E-03    4.4832       -.17947E-06** at limit **
  14  norm          .37026        .21938       -.14367E-06   -.61801E-03
  15  norm          8.6410        4.3833       -.20356E-06    .95648E-04
  16  Prefactor     .10000E-03    4.4006       -.90779E-06** at limit **
  17  Prefactor     8.3364        7.5179        .55697E-06    .56985E-04
  18  Prefactor     .10000E-03    13.149       -.63492E-06** at limit **
  19  Prefactor     27.093        58.116       -.19370E-03    .29745E-04
  20  Prefactor     .10000E-03    3.0441       -.94344E-07** at limit **
  21  Prefactor     20.217        13.682       -.83881E-06    .19385E-04
  22  norm          12.541        4.9749       -.98873E-07    .61959E-04
  23  norm          5.9050        11.832       -.26291E-05   -.10007E-02
  24  Normalizat    1.0219        .18131        .51629E-05    .12315E-04
  25  Prefactor     .84396        .18236        .34617E-05    .13926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.05781
  Prefactor  = 16.2238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06119
  Prefactor  = 0.0001
  norm       = 16.7994
  Prefactor  = 1.36976
  Prefactor  = 1.75063
  Prefactor  = 0.0001
  norm       = 0.370264
  norm       = 8.641
  Prefactor  = 0.0001
  Prefactor  = 8.33639
  Prefactor  = 0.0001
  Prefactor  = 27.0927
  Prefactor  = 0.0001
  Prefactor  = 20.2172
  norm       = 12.5414
  norm       = 5.905
  Normalizat = 1.02186
  Prefactor  = 0.84396
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.134     FROM HESSE     STATUS=OK           431 CALLS     3307 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6239        .14014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .94612        .11092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0578        1.4024        .57569E-04   -1.5358    
   5  Prefactor     16.224        13.946        .99434E-04   -1.4902    
   6  Prefactor     .10000E-03    4.0093        .28815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    63.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.0612        2.4265        .10025E-03   -1.5358    
   9  Prefactor     .10000E-03    .89889        .69668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          16.799        4.5274        .77733E-04   -1.4888    
  11  Prefactor     1.3698        1.4763        .90714E-04   -1.5474    
  12  Prefactor     1.7506        1.9557        .10571E-03   -1.5443    
  13  Prefactor     .10000E-03    4.5552        .15582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .37026        .21510        .25893E-04   -1.5586    
  15  norm          8.6410        4.3778        .10857E-03   -1.5120    
  16  Prefactor     .10000E-03    4.4194        .15459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3364        7.5131        .13885E-03   -1.5130    
  18  Prefactor     .10000E-03    13.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.093        58.128        .76799E-04   -1.4666    
  20  Prefactor     .10000E-03    3.0594        .12855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.217        13.690        .89077E-04   -1.4808    
  22  norm          12.541        4.9793        .10189E-03   -1.5000    
  23  norm          5.9050        11.837        .82623E-03   -1.5222    
  24  Normalizat    1.0219        .20737        .24004E-03   -.92302    
  25  Prefactor     .84396        .20850        .27176E-03   -.98128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96227e-09
Minuit parameter uncertainties:
  1  3.04336e-05
  2  2.11725e-05
  3  2.93826e-05
  4  1.40244
  5  13.9485
  6  8.93249e-05
  7  0.000138229
  8  2.42656
  9  6.75977e-06
  10  4.52745
  11  1.47638
  12  1.95581
  13  3.0496e-05
  14  0.2151
  15  4.37792
  16  2.43683e-05
  17  7.51393
  18  7.32848e-05
  19  58.2499
  20  1.78469e-05
  21  13.6923
  22  4.97951
  23  11.8412
  24  0.207534
  25  0.208695
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.703e-01  2.151e-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:  8.440e-01  2.087e-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.022e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.26e-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) = 5694.13122304
delta logL = 0.00314857146805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5694.13111235
delta logL = 0.00325926651021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36812       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3196       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84574       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=   5694.131     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      217 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36830        6.5741        .57359E-02    .22173E-02
   2  alpha         2.3201        2.9279        .34330        .63119E-05
   3  Normalizat    1.0197        .13030        .43387E-01   -.40941E-03
   4  Prefactor     .84582        .22341        .44310E-01   -.30750E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.368304
  alpha      = 2.3201
  Normalizat = 1.01966
  Prefactor  = 0.845815
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.131     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36830        .21645        .25790E-04   -1.5587    
   2  alpha         2.3201        .52426        .13429E-01   -.72021E-01
   3  Normalizat    1.0197        .20173        .24027E-03   -.92375    
   4  Prefactor     .84582        .20926        .27150E-03   -.98061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63426e-10
Minuit parameter uncertainties:
  1  0.216446
  2  0.5282
  3  0.201885
  4  0.209457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601741': 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) = 5694.13111126
delta logL = 0.0032603543068

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.683e-01  2.164e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.320e+00  5.282e-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:  8.458e-01  2.095e-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.020e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.32 +/- 0.53
Photon Flux (Free Index): 6.38e-08 +/- 3.96e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.48e-05

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/601741/cmap_HighResolution_515116801_515376001_4FGL_J1224.9+2122_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='2.11e-05', photon_flux_error='3.63e-08', dlogl='3.26e-03', energy_flux='2.17e-05', photon_flux2='6.38e-08', job_status='DONE', time_completed='2021-09-05 13:44:01.739693', photon_index_error2='0.53', photon_index2='2.32', ts='5.18', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.02', time_epoch_completed='1630874641.74', return_code='0', job_id='601741', GAL2='0.85', EG2='1.02', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.96e-08', ts2='5.14', photon_index='2.28' WHERE bin_id='1064' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 601741: <4FGL_J1224.9+2122_daily_bin1064> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1064 186.228 21.3814 515116801 515376001 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 :                                   620.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             245.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            771 sec.

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

