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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1547
RA = 186.228, Dec = 21.3814
tmin = 640310401, tmax = 640569601
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='603600', job_status='RUN', time_executed='2021-09-05 13:38:54.987551', time_epoch_executed='1630874334.99' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603600/ft1_4FGL_J1224.9+2122_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603600/ft2_4FGL_J1224.9+2122_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603600/ft1_4FGL_J1224.9+2122_daily_bin1547.fits outfile=/scratch/kocevski/603600/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1547.fits ra=186.228 dec=21.3814 rad=12.0 tmin=640310401.0 tmax=640569601.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 5.02
user 4.78
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603600/ft1_filtered_4FGL_J1224.9+2122_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/603600/ft2_4FGL_J1224.9+2122_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/603600/ltcube_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.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/603600/ft2_4FGL_J1224.9+2122_daily_bin1547.fits
.....................!
real 14.10
user 13.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603600/ft1_filtered_4FGL_J1224.9+2122_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/603600/ft2_4FGL_J1224.9+2122_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/603600/ltcube_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.fits outfile=/scratch/kocevski/603600/expmap_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.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/603600/ltcube_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.fits
.....................!
real 193.95
user 185.62
sys 5.22

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/603600/ft1_filtered_4FGL_J1224.9+2122_daily_bin1547.fits scfile=/scratch/kocevski/603600/ft2_4FGL_J1224.9+2122_daily_bin1547.fits outfile=/scratch/kocevski/603600/cmap_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603600/ft1_filtered_4FGL_J1224.9+2122_daily_bin1547.fits scfile=/scratch/kocevski/603600/ft2_4FGL_J1224.9+2122_daily_bin1547.fits outfile=/scratch/kocevski/603600/cmap_HighResolution_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.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.58
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99355       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13723E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    18.105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1252       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5125       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.215       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6572       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11950E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.958       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5360       1.0000         .10000E-03   10000.    
    23 'norm      '    6.2984       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .70206       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3336       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=   5981.919     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3024 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97467        85.675       -.26382E-04    .12961E-03
   2  Prefactor     .10000E-03    9.4942       -.61929E-07** at limit **
   3  Prefactor     .10006E-03    1.3887        .20755E-05** at limit **
   4  norm          18.105        2.5614        .10151E-06   -.63595E-03
   5  Prefactor     .10000E-03    5.4314       -.17608E-07** at limit **
   6  Prefactor     2.7790        3.5793        .13492E-07    .81543E-03
   7  Prefactor     .10000E-03    26.688        .80450E-06** at limit **
   8  Prefactor     .10000E-03    1.1723       -.19789E-07** at limit **
   9  Prefactor     .10000E-03    1.3735       -.29838E-07** at limit **
  10  norm          1.2203        3.1675       -.27234E-05   -.10347E-03
  11  Prefactor     .10000E-03    2.0443        .20669E-05** at limit **
  12  Prefactor     6.1245        3.4840       -.12167E-06   -.10934E-02
  13  Prefactor     2.5121        3.3764       -.13009E-07    .15710E-03
  14  norm          .10000E-03    .14013       -.46520E-07** at limit **
  15  norm          .10000E-03    1.4032       -.42556E-08** at limit **
  16  Prefactor     19.221        14.404       -.72935E-06   -.29694E-04
  17  Prefactor     6.6552        11.616       -.51562E-06   -.11922E-03
  18  Prefactor     .10000E-03    28.121       -.89075E-06** at limit **
  19  Prefactor     .10004E-03    843.52        .63923E-05** at limit **
  20  Prefactor     .10000E-03    2.6340       -.63677E-08** at limit **
  21  Prefactor     12.935        18.660       -.32300E-06    .60217E-04
  22  norm          4.5370        4.8644       -.38508E-07    .67292E-03
  23  norm          6.2840        20.979       -.33711E-05   -.13002E-03
  24  Normalizat    .70204        .20324        .37379E-05   -.22912E-04
  25  Prefactor     1.3336        .20007       -.15992E-05   -.27905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.974669
  Prefactor  = 0.0001
  Prefactor  = 0.000100061
  norm       = 18.105
  Prefactor  = 0.0001
  Prefactor  = 2.77901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22027
  Prefactor  = 0.000100001
  Prefactor  = 6.12446
  Prefactor  = 2.51207
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2213
  Prefactor  = 6.65522
  Prefactor  = 0.000100001
  Prefactor  = 0.000100037
  Prefactor  = 0.0001
  Prefactor  = 12.9349
  norm       = 4.53702
  norm       = 6.28395
  Normalizat = 0.702039
  Prefactor  = 1.33358
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.919     FROM HESSE     STATUS=OK           433 CALLS     3457 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97467        91.339        .49754E-02   -1.5511    
   2  Prefactor     .10000E-03    9.6070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10006E-03    14.300        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.105        2.5518        .43366E-04   -1.4857    
   5  Prefactor     .10000E-03    5.4368        .17604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7790        3.5670        .15838E-03   -1.5375    
   7  Prefactor     .10000E-03    26.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1881        .81716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3978        .88463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2203        3.3025        .21171E-03   -1.5487    
  11  Prefactor     .10000E-03    4.2529        .20340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1245        3.4321        .93162E-04   -1.5213    
  13  Prefactor     2.5121        3.3616        .15996E-03   -1.5391    
  14  norm          .10000E-03    1.0995        .55282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4073        .89445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.221        14.378        .91370E-04   -1.4831    
  17  Prefactor     6.6552        11.578        .15552E-03   -1.5192    
  18  Prefactor     .10000E-03    28.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    872.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6393        .12257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.935        18.636        .11128E-03   -1.4989    
  22  norm          4.5370        4.8642        .16738E-03   -1.5282    
  23  norm          6.2840        21.129        .15994E-03   -1.5207    
  24  Normalizat    .70204        .23189        .31408E-03   -1.0381    
  25  Prefactor     1.3336        .23547        .24785E-03   -.82314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29325e-09
Minuit parameter uncertainties:
  1  18.8995
  2  3.23639e-05
  3  0.00186795
  4  2.55178
  5  3.34591e-06
  6  3.56726
  7  0.000144022
  8  3.36003e-06
  9  8.50725e-07
  10  3.30295
  11  9.23236e-05
  12  3.43217
  13  3.36184
  14  1.42093e-06
  15  1.3393e-06
  16  14.3807
  17  11.5821
  18  0.000395328
  19  0.0114669
  20  8.04604e-07
  21  18.6445
  22  4.86462
  23  21.1541
  24  0.232209
  25  0.235661
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.421e-06  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.334e+00  2.357e-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:  7.020e-01  2.322e-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: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603600/likelihoodResults_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.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) = 5981.92469606
delta logL = -0.00562382993576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5981.91794261
delta logL = 0.00112961828836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73271E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .70096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3338       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=   5981.918     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      354 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78634E-03    .10429        .18213E-03** at limit **
   2  alpha         5.0000        3.9501        .18508    ** at limit **
   3  Normalizat    .69958        .22479        .31462E-03   -.21999E-03
   4  Prefactor     1.3352        .23286        .24773E-03    .29233E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000786344
  alpha      = 5
  Normalizat = 0.699579
  Prefactor  = 1.3352
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.918     FROM HESSE     STATUS=OK            25 CALLS      379 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78634E-03    .10397        .72854E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        4.2382        .74031E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .69958        .22299        .12585E-04   -1.0391    
   4  Prefactor     1.3352        .23225        .49546E-04   -.82266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58673e-09
Minuit parameter uncertainties:
  1  0.0168946
  2  0.000812285
  3  0.223277
  4  0.232434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603600': 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) = 5981.91792079
delta logL = 0.001151436295

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.863e-04  1.689e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  5.000e+00  8.123e-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.335e+00  2.324e-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:  6.996e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/603600/cmap_HighResolution_640310401_640569601_4FGL_J1224.9+2122_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-05', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-05 13:51:40.748554', job_id='603600', GAL2='1.34', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630875100.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='1.15e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1547' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:40 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1547 186.228 21.3814 640310401 640569601 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 :                                   732.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

