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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1326
RA = 186.228, Dec = 21.3814
tmin = 583027201, tmax = 583286401
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='603288', job_status='RUN', time_executed='2021-09-05 13:38:18.407465', time_epoch_executed='1630874298.41' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603288

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603288/ft1_4FGL_J1224.9+2122_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603288/ft2_4FGL_J1224.9+2122_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603288/ft1_4FGL_J1224.9+2122_daily_bin1326.fits outfile=/scratch/kocevski/603288/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1326.fits ra=186.228 dec=21.3814 rad=12.0 tmin=583027201.0 tmax=583286401.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.55
user 3.34
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603288/ft1_filtered_4FGL_J1224.9+2122_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/603288/ft2_4FGL_J1224.9+2122_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/603288/ltcube_583027201_583286401_4FGL_J1224.9+2122_daily_bin1326.fits outfile=/scratch/kocevski/603288/expmap_583027201_583286401_4FGL_J1224.9+2122_daily_bin1326.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/603288/ltcube_583027201_583286401_4FGL_J1224.9+2122_daily_bin1326.fits
.....................!
real 191.41
user 186.62
sys 3.96

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/603288/ft1_filtered_4FGL_J1224.9+2122_daily_bin1326.fits scfile=/scratch/kocevski/603288/ft2_4FGL_J1224.9+2122_daily_bin1326.fits outfile=/scratch/kocevski/603288/cmap_583027201_583286401_4FGL_J1224.9+2122_daily_bin1326.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.59
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603288/ft1_filtered_4FGL_J1224.9+2122_daily_bin1326.fits scfile=/scratch/kocevski/603288/ft2_4FGL_J1224.9+2122_daily_bin1326.fits outfile=/scratch/kocevski/603288/cmap_HighResolution_583027201_583286401_4FGL_J1224.9+2122_daily_bin1326.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.695       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1190       1.0000         .10000E-03   10000.    
     4 'norm      '    .17592       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10847E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.731       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1757       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2287       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.728       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.042       1.0000         .10000E-03   10000.    
    19 'Prefactor '    76.306       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12316E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11657E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98125       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2914       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=   6390.943     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3039 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.695        29.124        .17255E-07    .50788E-06
   2  Prefactor     3.4368        5.5307        .12531E-05   -.11782E-02
   3  Prefactor     4.1194        2.4585       -.34137E-08   -.49335E-04
   4  norm          .17661        .96556        .12964E-06   -.73130E-03
   5  Prefactor     .10000E-03    42.817       -.10590E-04** at limit **
   6  Prefactor     .10000E-03    3.1646       -.83369E-07** at limit **
   7  Prefactor     .10000E-03    38.979        .10843E-04** at limit **
   8  Prefactor     .53628        2.9257       -.10452E-06   -.11872E-03
   9  Prefactor     .10000E-03    2.2621       -.11995E-07** at limit **
  10  norm          13.731        4.2733        .69534E-08    .54691E-05
  11  Prefactor     1.1758        1.9070        .73080E-08   -.11850E-03
  12  Prefactor     3.2290        2.3379       -.61778E-08   -.68595E-04
  13  Prefactor     .10000E-03    4.4740       -.23672E-07** at limit **
  14  norm          .10000E-03    .16098        .22838E-07** at limit **
  15  norm          14.190        6.2337        .49964E-07   -.33557E-03
  16  Prefactor     11.728        13.171        .29787E-06    .95714E-05
  17  Prefactor     .10000E-03    8.2188        .27208E-07** at limit **
  18  Prefactor     45.041        38.109       -.63253E-06   -.14529E-04
  19  Prefactor     76.310        67.586        .29228E-05    .47413E-04
  20  Prefactor     .10000E-03    4.0344        .38870E-06** at limit **
  21  Prefactor     .10000E-03    18.282       -.89654E-06** at limit **
  22  norm          .10000E-03    2.4689        .17338E-06** at limit **
  23  norm          .10000E-03    7.9596       -.79212E-06** at limit **
  24  Normalizat    .98118        .20116       -.32931E-06    .27276E-04
  25  Prefactor     1.2914        .19771       -.87268E-07    .30109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.6954
  Prefactor  = 3.43684
  Prefactor  = 4.11943
  norm       = 0.176615
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.536284
  Prefactor  = 0.0001
  norm       = 13.7312
  Prefactor  = 1.17582
  Prefactor  = 3.22899
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.1897
  Prefactor  = 11.7281
  Prefactor  = 0.0001
  Prefactor  = 45.0415
  Prefactor  = 76.3104
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.981176
  Prefactor  = 1.29138
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.943     FROM HESSE     STATUS=OK           435 CALLS     3474 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.695        29.023        .61353E-04   -1.4400    
   2  Prefactor     3.4368        9.0041        .10909E-02   -1.5337    
   3  Prefactor     4.1194        2.4497        .88626E-04   -1.5302    
   4  norm          .17661        1.0210        .15321E-03   -1.5624    
   5  Prefactor     .10000E-03    43.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2389        .27705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53628        5.5787        .24373E-02   -1.5562    
   9  Prefactor     .10000E-03    2.2873        .11681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.731        4.2494        .84551E-04   -1.4967    
  11  Prefactor     1.1758        1.8505        .13097E-03   -1.5491    
  12  Prefactor     3.2290        2.3282        .98218E-04   -1.5349    
  13  Prefactor     .10000E-03    4.4998        .16494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .38916        .60565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.190        6.2471        .53167E-03   -1.4954    
  16  Prefactor     11.728        13.152        .11697E-03   -1.5023    
  17  Prefactor     .10000E-03    8.3447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.041        38.097        .59739E-04   -1.4365    
  19  Prefactor     76.310        67.626        .45968E-04   -1.3959    
  20  Prefactor     .10000E-03    9.9920        .30975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.6893        .24291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.9671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98118        .23266        .28462E-03   -.93664    
  25  Prefactor     1.2914        .23155        .26128E-03   -.83564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4188e-08
Minuit parameter uncertainties:
  1  29.0322
  2  9.00763
  3  2.44974
  4  0.849077
  5  0.000528654
  6  2.76406e-06
  7  0.000707707
  8  3.45943
  9  4.77002e-06
  10  4.24948
  11  1.85058
  12  2.32827
  13  1.37679e-07
  14  5.65601e-07
  15  6.24738
  16  13.1551
  17  5.45024e-07
  18  38.1179
  19  67.6945
  20  0.000161747
  21  2.84922e-05
  22  7.35787e-05
  23  2.28838e-05
  24  0.232899
  25  0.231739
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  5.656e-07  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.291e+00  2.317e-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:  9.812e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603288/likelihoodResults_583027201_583286401_4FGL_J1224.9+2122_daily_bin1326.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) = 6390.47098615
delta logL = 0.472329608004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6390.470909
delta logL = 0.472406757774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25545E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .90971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3371       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=   6390.471     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      498 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25482E-01    .35564E-01    .14111E-03    .11494E-02
   2  alpha         5.0000        4.0020        .50000    ** at limit **
   3  Normalizat    .90979        .23275        .29469E-03    .25269E-04
   4  Prefactor     1.3370        .23495        .25752E-03    .29181E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0254823
  alpha      = 5
  Normalizat = 0.909793
  Prefactor  = 1.337
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.471     FROM HESSE     STATUS=OK            31 CALLS      529 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25482E-01    .33857E-01    .56444E-05   -1.5676    
   2  alpha         5.0000        3.8996        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .90979        .23323        .11788E-04   -.96117    
   4  Prefactor     1.3370        .23533        .10301E-04   -.82213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99671e-10
Minuit parameter uncertainties:
  1  0.0338573
  2  0.000185741
  3  0.233492
  4  0.235515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603288': 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) = 6390.47090225
delta logL = 0.472413513509

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.548e-02  3.386e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  1.857e-04  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.337e+00  2.355e-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:  9.098e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 186.228 21.381
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.62e-08 +/- 7.42e-08
Energy Flux (Free Index): 7.51e-06 +/- 9.95e-06

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/603288/cmap_HighResolution_583027201_583286401_4FGL_J1224.9+2122_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', comment='SUCCESS', energy_flux2='7.51e-06', dlogl='4.72e-01', photon_flux2='5.62e-08', job_status='DONE', time_completed='2021-09-05 13:51:11.105492', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='9.25e-08', energy_flux_error2='9.95e-06', EG='0.98', time_epoch_completed='1630875071.11', return_code='0', job_id='603288', GAL2='1.34', EG2='0.91', return_code2='0', photon_flux_error2='7.42e-08', ts2='1.02', photon_index='2.28' WHERE bin_id='1326' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 603288: <4FGL_J1224.9+2122_daily_bin1326> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1326 186.228 21.3814 583027201 583286401 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 :                                   760.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

