/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin385
RA = 186.228, Dec = 21.3814
tmin = 339120001, tmax = 339379201
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='597706', job_status='RUN', time_executed='2021-09-05 13:18:09.152547', time_epoch_executed='1630873089.15' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597706

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597706/ft1_4FGL_J1224.9+2122_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597706/ft2_4FGL_J1224.9+2122_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597706/ft1_4FGL_J1224.9+2122_daily_bin385.fits outfile=/scratch/kocevski/597706/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin385.fits ra=186.228 dec=21.3814 rad=12.0 tmin=339120001.0 tmax=339379201.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 6.38
user 6.01
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597706/ft2_4FGL_J1224.9+2122_daily_bin385.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/597706/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin385.fits evtable="EVENTS" outfile="/scratch/kocevski/597706/ft1_filtered_4FGL_J1224.9+2122_daily_bin385.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597706/ft1_filtered_4FGL_J1224.9+2122_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/597706/ft2_4FGL_J1224.9+2122_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/597706/ltcube_339120001_339379201_4FGL_J1224.9+2122_daily_bin385.fits outfile=/scratch/kocevski/597706/expmap_339120001_339379201_4FGL_J1224.9+2122_daily_bin385.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/597706/ltcube_339120001_339379201_4FGL_J1224.9+2122_daily_bin385.fits
.....................!
real 193.90
user 187.80
sys 5.45

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/597706/ft1_filtered_4FGL_J1224.9+2122_daily_bin385.fits scfile=/scratch/kocevski/597706/ft2_4FGL_J1224.9+2122_daily_bin385.fits outfile=/scratch/kocevski/597706/cmap_339120001_339379201_4FGL_J1224.9+2122_daily_bin385.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597706/ft1_filtered_4FGL_J1224.9+2122_daily_bin385.fits scfile=/scratch/kocevski/597706/ft2_4FGL_J1224.9+2122_daily_bin385.fits outfile=/scratch/kocevski/597706/cmap_HighResolution_339120001_339379201_4FGL_J1224.9+2122_daily_bin385.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6320       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8772       1.0000         .10000E-03   10000.    
     4 'norm      '    12.352       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8689       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9957       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0747       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25793E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .52452       1.0000         .10000E-03   10000.    
    15 'norm      '    4.3915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.548       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.440       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.344       1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.460       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9019       1.0000         .10000E-03   10000.    
    22 'norm      '    1.7832       1.0000         .10000E-03   10000.    
    23 'norm      '    .88574E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1756       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80177       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=   6254.770     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3048 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6329        24.873       -.28180E-05   -.88297E-04
   2  Prefactor     16.083        13.329        .13663E-05    .89874E-05
   3  Prefactor     2.8772        2.2271       -.22635E-06   -.22846E-03
   4  norm          12.352        2.3823       -.59570E-07    .18140E-03
   5  Prefactor     22.401        17.287        .23653E-05    .17184E-04
   6  Prefactor     4.5241        4.1117       -.51278E-06   -.24022E-03
   7  Prefactor     .10000E-03    54.665       -.26315E-06** at limit **
   8  Prefactor     6.8692        3.3793       -.66080E-06   -.21534E-02
   9  Prefactor     .10000E-03    .89482       -.37245E-07** at limit **
  10  norm          3.9957        3.0597       -.67323E-06   -.25523E-02
  11  Prefactor     2.5231        2.2351        .12636E-06   -.68116E-05
  12  Prefactor     5.0759        3.1361        .83424E-07   -.63094E-04
  13  Prefactor     .11846E-03    4.4509       -.40216E-06** at limit **
  14  norm          .52469        .29579       -.51995E-07   -.13724E-03
  15  norm          4.3949        4.0901        .42095E-06    .88729E-04
  16  Prefactor     15.548        18.419       -.32720E-05   -.58843E-05
  17  Prefactor     12.442        10.716        .23020E-06    .44459E-04
  18  Prefactor     41.327        45.779        .45301E-05    .29104E-04
  19  Prefactor     69.361        94.071       -.60410E-04    .15855E-05
  20  Prefactor     .10000E-03    2.8101       -.21814E-07** at limit **
  21  Prefactor     7.9043        14.432       -.64549E-05   -.28976E-04
  22  norm          1.7826        3.7946       -.10230E-05   -.73824E-03
  23  norm          .10000E-03    17.718       -.49335E-06** at limit **
  24  Normalizat    1.1751        .20634        .32782E-05    .38288E-04
  25  Prefactor     .80231        .19109        .19062E-05    .13468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63288
  Prefactor  = 16.0825
  Prefactor  = 2.87723
  norm       = 12.3522
  Prefactor  = 22.4012
  Prefactor  = 4.52411
  Prefactor  = 0.0001
  Prefactor  = 6.86923
  Prefactor  = 0.0001
  norm       = 3.99568
  Prefactor  = 2.52311
  Prefactor  = 5.07593
  Prefactor  = 0.000118458
  norm       = 0.524689
  norm       = 4.39488
  Prefactor  = 15.548
  Prefactor  = 12.4421
  Prefactor  = 41.3269
  Prefactor  = 69.361
  Prefactor  = 0.0001
  Prefactor  = 7.90434
  norm       = 1.78256
  norm       = 0.0001
  Normalizat = 1.17511
  Prefactor  = 0.802311
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.770     FROM HESSE     STATUS=OK           453 CALLS     3501 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6329        24.697        .25135E-03   -1.5383    
   2  Prefactor     16.083        13.329        .99876E-04   -1.4906    
   3  Prefactor     2.8772        2.2145        .97417E-04   -1.5369    
   4  norm          12.352        2.3833        .51021E-04   -1.5005    
   5  Prefactor     22.401        17.290        .84631E-04   -1.4761    
   6  Prefactor     4.5241        4.1022        .14474E-03   -1.5283    
   7  Prefactor     .10000E-03    54.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.8692        3.3955        .48652E-03   -1.5184    
   9  Prefactor     .10000E-03    .89674        .73017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9957        3.0840        .56476E-03   -1.5308    
  11  Prefactor     2.5231        2.2367        .10379E-03   -1.5390    
  12  Prefactor     5.0759        3.1306        .10200E-03   -1.5257    
  13  Prefactor     .11846E-03    4.7606        .54189E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .52469        .29264        .30180E-04   -1.5563    
  15  norm          4.3949        4.0891        .14702E-03   -1.5289    
  16  Prefactor     15.548        18.410        .10157E-03   -1.4919    
  17  Prefactor     12.442        10.716        .11357E-03   -1.5002    
  18  Prefactor     41.327        45.883        .62343E-04   -1.4421    
  19  Prefactor     69.361        93.487        .24082E-03   -1.4040    
  20  Prefactor     .10000E-03    2.8160        .12946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.9043        14.467        .14264E-03   -1.5146    
  22  norm          1.7826        3.7761        .21480E-03   -1.5441    
  23  norm          .10000E-03    126.59        .64537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1751        .24139        .27336E-03   -.87376    
  25  Prefactor     .80231        .22115        .31591E-03   -.99643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14509e-09
Minuit parameter uncertainties:
  1  16.1359
  2  13.3312
  3  2.2146
  4  2.38329
  5  17.2942
  6  4.1025
  7  0.000109536
  8  3.3956
  9  2.03794e-06
  10  3.08408
  11  2.23678
  12  3.13071
  13  0.0187493
  14  0.292638
  15  4.08933
  16  18.4167
  17  10.7174
  18  45.922
  19  93.6859
  20  4.95911e-06
  21  14.4734
  22  3.77664
  23  0.0001052
  24  0.241619
  25  0.221392
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.247e-01  2.926e-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.023e-01  2.214e-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.175e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.39
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 8.87e-08 +/- 4.94e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.72e-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) = 6254.7549663
delta logL = 0.0153853330485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6254.75329068
delta logL = 0.0170609512161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53874       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3714       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80748       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=   6254.753     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .53892        .53593        .66959E-02    .63971E-03
   2  alpha         2.3714        .77895        .34163       -.18619E-04
   3  Normalizat    1.1662        .19530        .62003E-01    .86078E-05
   4  Prefactor     .80757        .19223        .71180E-01    .18291E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.538921
  alpha      = 2.37139
  Normalizat = 1.16618
  Prefactor  = 0.807569
 **********
 **   18 **HESSE 
 **********

 FCN=   6254.753     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .53892        .29489        .29864E-04   -1.5561    
   2  alpha         2.3714        .50111        .13226E-01   -.51468E-01
   3  Normalizat    1.1662        .23068        .27424E-03   -.87654    
   4  Prefactor     .80757        .22073        .31497E-03   -.99450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26861e-10
Minuit parameter uncertainties:
  1  0.294893
  2  0.504541
  3  0.230881
  4  0.220969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597706': 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) = 6254.7532904
delta logL = 0.0170612244701

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.389e-01  2.949e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.371e+00  5.045e-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.076e-01  2.210e-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.166e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.37 +/- 0.50
Photon Flux (Free Index): 9.65e-08 +/- 6.54e-08
Energy Flux (Free Index): 3.01e-05 +/- 1.68e-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/597706/cmap_HighResolution_339120001_339379201_4FGL_J1224.9+2122_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.87e-08', energy_flux2='3.01e-05', photon_flux_error='4.94e-08', dlogl='1.71e-02', energy_flux='3.08e-05', photon_flux2='9.65e-08', job_status='DONE', time_completed='2021-09-05 13:29:25.506050', photon_index_error2='0.50', photon_index2='2.37', ts='7.39', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.18', time_epoch_completed='1630873765.51', return_code='0', job_id='597706', GAL2='0.81', EG2='1.17', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='6.54e-08', ts2='7.32', photon_index='2.28' WHERE bin_id='385' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 597706: <4FGL_J1224.9+2122_daily_bin385> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin385> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:16:34 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:16:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:16:35 2021
Terminated at Sun Sep  5 13:29:26 2021
Results reported at Sun Sep  5 13:29:26 2021

Your job looked like:

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

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

