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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1224
RA = 186.228, Dec = 21.3814
tmin = 556588801, tmax = 556848001
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='603137', job_status='RUN', time_executed='2021-09-05 13:39:25.054818', time_epoch_executed='1630874365.05' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603137/ft1_4FGL_J1224.9+2122_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603137/ft1_4FGL_J1224.9+2122_daily_bin1224.fits outfile=/scratch/kocevski/603137/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1224.fits ra=186.228 dec=21.3814 rad=12.0 tmin=556588801.0 tmax=556848001.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.69
user 3.36
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.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/603137/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/603137/ft1_filtered_4FGL_J1224.9+2122_daily_bin1224.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.57
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603137/ft1_filtered_4FGL_J1224.9+2122_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/603137/ltcube_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.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/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.fits
.....................!
real 12.20
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603137/ft1_filtered_4FGL_J1224.9+2122_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/603137/ltcube_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.fits outfile=/scratch/kocevski/603137/expmap_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.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/603137/ltcube_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.fits
.....................!
real 197.70
user 186.89
sys 4.92

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/603137/ft1_filtered_4FGL_J1224.9+2122_daily_bin1224.fits scfile=/scratch/kocevski/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.fits outfile=/scratch/kocevski/603137/cmap_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.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/603137/ft1_filtered_4FGL_J1224.9+2122_daily_bin1224.fits scfile=/scratch/kocevski/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.fits outfile=/scratch/kocevski/603137/cmap_HighResolution_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.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/603137/ft1_filtered_4FGL_J1224.9+2122_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/603137/ft2_4FGL_J1224.9+2122_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603137/Model_4FGL_J1224.9+2122_daily_bin1224.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/603137/ft1_filtered_4FGL_J1224.9+2122_daily_bin1224.fits....................!
real 18.20
user 16.94
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47615E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54533E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7157       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44768E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60250E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.253       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20774E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.772       1.0000         .10000E-03   10000.    
    10 'norm      '    .68571E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9307       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23759E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .47306       1.0000         .10000E-03   10000.    
    15 'norm      '    .10667E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    113.38       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .51125E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    63.989       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26623       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .34369E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .65797E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .11053E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    31.990       1.0000         .10000E-03   10000.    
    24 'Normalizat'    2.1738       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .15510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   639.2081     FROM MIGRAD    STATUS=CONVERGED    286 CALLS     2193 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.86       -.60367E-06** at limit **
   2  Prefactor     .10000E-03    38.551       -.90855E-06** at limit **
   3  Prefactor     5.9964        14.283        .22218E-05   -.18747E-04
   4  norm          .10000E-03    4.5577       -.13587E-06** at limit **
   5  Prefactor     .10000E-03    69.279       -.59066E-05** at limit **
   6  Prefactor     .10000E-03    15.580       -.15358E-05** at limit **
   7  Prefactor     161.69        523.67       -.55282E-05   -.87924E-06
   8  Prefactor     .10000E-03    63.465       -.63280E-06** at limit **
   9  Prefactor     43.019        28.173       -.79704E-07    .27834E-04
  10  norm          .10000E-03    24.053        .12335E-05** at limit **
  11  Prefactor     8.7874        22.085       -.22573E-06   -.66688E-05
  12  Prefactor     3.9508        13.247        .68311E-06   -.19962E-04
  13  Prefactor     .10000E-03    22.850        .47616E-06** at limit **
  14  norm          .51959        1.3858        .15905E-06    .63051E-04
  15  norm          .10000E-03    19.845       -.28916E-05** at limit **
  16  Prefactor     97.326        87.487        .63720E-06    .13067E-04
  17  Prefactor     .10000E-03    37.875       -.10439E-05** at limit **
  18  Prefactor     118.34        184.24       -.12670E-04    .15838E-04
  19  Prefactor     .10000E-03    178.24        .34247E-05** at limit **
  20  Prefactor     .10000E-03    17.357        .97579E-06** at limit **
  21  Prefactor     .10000E-03    137.55        .44606E-06** at limit **
  22  norm          .10000E-03    6.4851       -.89217E-06** at limit **
  23  norm          42.204        94.721        .18080E-05    .85446E-05
  24  Normalizat    2.1032        .97957        .67358E-05    .16816E-04
  25  Prefactor     .16322        1.1106       -.66455E-05    .33003E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99642
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 161.689
  Prefactor  = 0.0001
  Prefactor  = 43.0191
  norm       = 0.0001
  Prefactor  = 8.78739
  Prefactor  = 3.95076
  Prefactor  = 0.0001
  norm       = 0.519592
  norm       = 0.0001
  Prefactor  = 97.3262
  Prefactor  = 0.0001
  Prefactor  = 118.337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 42.2042
  Normalizat = 2.10316
  Prefactor  = 0.163224
 **********
 **   18 **HESSE 
 **********

 FCN=   639.2081     FROM HESSE     STATUS=OK           475 CALLS     2668 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.99        .92584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.480        .10557E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9964        14.542        .42002E-02   -1.5218    
   4  norm          .10000E-03    4.5542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    67.604        .10606E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.612        .94668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     161.69        557.54        .28610E-02   -1.3158    
   8  Prefactor     .10000E-03    62.824        .10097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.019        28.657        .15149E-02   -1.4395    
  10  norm          .10000E-03    23.839        .10496E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7874        22.087        .36125E-02   -1.5115    
  12  Prefactor     3.9508        13.315        .50870E-02   -1.5310    
  13  Prefactor     .10000E-03    23.041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .51959        1.5375        .99273E-02   -1.5564    
  15  norm          .10000E-03    19.647        .10360E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     97.326        98.478        .94450E-03   -1.3732    
  17  Prefactor     .10000E-03    37.784        .95858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     118.34        184.77        .12542E-02   -1.3528    
  19  Prefactor     .10000E-03    178.35        .10276E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.538        .98381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    136.51        .93991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.5466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          42.204        97.087        .17711E-02   -1.4408    
  24  Normalizat    2.1032        2.3875        .55902E-01   -.61989    
  25  Prefactor     .16322        7.7580        .16652       -1.3146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6699e-09
Minuit parameter uncertainties:
  1  9.35238e-05
  2  6.31218e-06
  3  14.5505
  4  1.1116e-06
  5  0.000208781
  6  2.0383e-05
  7  577.506
  8  1.33154e-05
  9  28.6665
  10  4.7172e-05
  11  22.1079
  12  13.3252
  13  1.62196e-05
  14  1.53758
  15  4.31911e-05
  16  98.6435
  17  4.68476e-06
  18  185.679
  19  2.97184e-05
  20  1.79834e-05
  21  3.64385e-05
  22  9.07317e-06
  23  97.4534
  24  2.55173
  25  2.48769
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.196e-01  1.538e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.632e-01  2.488e+00  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:  2.103e+00  2.552e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 6.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603137/likelihoodResults_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.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) = 639.059841351
delta logL = 0.148218752082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 639.028690294
delta logL = 0.179369809527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29821       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8696       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27462       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=   639.0287     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      244 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29844        1.1114        .20704E-04    .28395E-03
   2  alpha         3.8696        4.2981        .17414E-01    .32455E-05
   3  Normalizat    1.9683        .90856        .25220E-03    .22023E-04
   4  Prefactor     .27440        .80624        .57125E-03   -.42191E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.298439
  alpha      = 3.86957
  Normalizat = 1.96835
  Prefactor  = 0.274401
 **********
 **   18 **HESSE 
 **********

 FCN=   639.0287     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29844        .94200        .82816E-06   -1.5599    
   2  alpha         3.8696        4.1177        .69658E-03    .57976    
   3  Normalizat    1.9683        .90822        .50440E-04   -.65346    
   4  Prefactor     .27440        .80506        .22850E-04   -1.2380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01627e-11
Minuit parameter uncertainties:
  1  0.942048
  2  2.97466
  3  0.916351
  4  0.841825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603137': 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) = 639.028690006
delta logL = 0.179370097922

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.984e-01  9.420e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.870e+00  2.975e+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:  2.744e-01  8.418e-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.968e+00  9.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 186.228 21.381

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/603137/cmap_HighResolution_556588801_556848001_4FGL_J1224.9+2122_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-04', job_status='DONE', photon_flux_upper_limit='6.88e-07', time_completed='2021-09-05 13:45:39.500702', job_id='603137', GAL2='0.27', fit_tolerance='1e-08', EG2='1.97', EG='2.10', time_epoch_completed='1630874739.5', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.16', dlogl='1.79e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1224' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:45:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 603137: <4FGL_J1224.9+2122_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1224> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:44 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:35:46 2021
Terminated at Sun Sep  5 13:45:40 2021
Results reported at Sun Sep  5 13:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1224 186.228 21.3814 556588801 556848001 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 :                                   366.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            596 sec.

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

