/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 116 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1315
RA = 186.228, Dec = 21.3814
tmin = 580176001, tmax = 580435201
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='603272', job_status='RUN', time_executed='2021-09-05 13:38:05.666435', time_epoch_executed='1630874285.67' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603272

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603272/ft1_4FGL_J1224.9+2122_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603272/ft2_4FGL_J1224.9+2122_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603272/ft1_4FGL_J1224.9+2122_daily_bin1315.fits outfile=/scratch/kocevski/603272/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1315.fits ra=186.228 dec=21.3814 rad=12.0 tmin=580176001.0 tmax=580435201.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 4.66
user 4.39
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603272/ft1_filtered_4FGL_J1224.9+2122_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/603272/ft2_4FGL_J1224.9+2122_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/603272/ltcube_580176001_580435201_4FGL_J1224.9+2122_daily_bin1315.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/603272/ft2_4FGL_J1224.9+2122_daily_bin1315.fits
.....................!
real 11.47
user 11.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603272/ft1_filtered_4FGL_J1224.9+2122_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/603272/ft2_4FGL_J1224.9+2122_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/603272/ltcube_580176001_580435201_4FGL_J1224.9+2122_daily_bin1315.fits outfile=/scratch/kocevski/603272/expmap_580176001_580435201_4FGL_J1224.9+2122_daily_bin1315.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/603272/ltcube_580176001_580435201_4FGL_J1224.9+2122_daily_bin1315.fits
.....................!
real 192.07
user 186.12
sys 5.21

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/603272/ft1_filtered_4FGL_J1224.9+2122_daily_bin1315.fits scfile=/scratch/kocevski/603272/ft2_4FGL_J1224.9+2122_daily_bin1315.fits outfile=/scratch/kocevski/603272/cmap_580176001_580435201_4FGL_J1224.9+2122_daily_bin1315.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603272/ft1_filtered_4FGL_J1224.9+2122_daily_bin1315.fits scfile=/scratch/kocevski/603272/ft2_4FGL_J1224.9+2122_daily_bin1315.fits outfile=/scratch/kocevski/603272/cmap_HighResolution_580176001_580435201_4FGL_J1224.9+2122_daily_bin1315.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.59
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.972       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .94432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5402       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6617       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11506E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13360E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14595E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7701       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5462       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0735       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11547E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34878       1.0000         .10000E-03   10000.    
    15 'norm      '    13.632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3876       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .85944E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3252       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    26.348       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83203       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3278       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=   6222.056     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3002 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.976        21.352       -.83734E-06   -.16193E-05
   2  Prefactor     .92239        8.7966       -.18095E-05   -.70507E-04
   3  Prefactor     6.5404        2.5007        .10308E-06    .21418E-04
   4  norm          1.4141        .89351        .29825E-07    .67424E-05
   5  Prefactor     2.6633        19.518       -.10779E-05   -.89902E-04
   6  Prefactor     .10000E-03    2.2075        .47138E-07** at limit **
   7  Prefactor     .10000E-03    38.140       -.95038E-05** at limit **
   8  Prefactor     .10000E-03    1.5683        .13593E-06** at limit **
   9  Prefactor     .10000E-03    1.6626        .11002E-06** at limit **
  10  norm          2.7702        1.9598        .44643E-08    .98612E-04
  11  Prefactor     2.5463        1.6960       -.39016E-07    .13074E-03
  12  Prefactor     4.0741        2.4812       -.40270E-06   -.36447E-03
  13  Prefactor     .10000E-03    2.3894       -.26602E-07** at limit **
  14  norm          .34879        .21429       -.34965E-09   -.82950E-03
  15  norm          13.632        4.8668        .12837E-06    .15850E-04
  16  Prefactor     9.3381        12.157       -.19060E-05   -.12591E-02
  17  Prefactor     11.868        9.9788        .54894E-05   -.27757E-04
  18  Prefactor     .10001E-03    167.64       -.40313E-05** at limit **
  19  Prefactor     .10000E-03    41.681        .98455E-05** at limit **
  20  Prefactor     3.4201        7.1303        .27098E-05   -.32535E-03
  21  Prefactor     7.3215        16.834        .20624E-05   -.43501E-04
  22  norm          .10000E-03    1.4000       -.46228E-08** at limit **
  23  norm          26.349        19.874       -.36947E-06   -.15116E-05
  24  Normalizat    .83187        .18892       -.63871E-06    .58813E-04
  25  Prefactor     1.3278        .19714       -.23791E-06    .75623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9759
  Prefactor  = 0.922394
  Prefactor  = 6.54037
  norm       = 1.41407
  Prefactor  = 2.66329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77022
  Prefactor  = 2.5463
  Prefactor  = 4.07409
  Prefactor  = 0.0001
  norm       = 0.348785
  norm       = 13.6322
  Prefactor  = 9.33806
  Prefactor  = 11.8681
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 3.42008
  Prefactor  = 7.32148
  norm       = 0.0001
  norm       = 26.3495
  Normalizat = 0.831868
  Prefactor  = 1.32777
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.056     FROM HESSE     STATUS=OK           441 CALLS     3443 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.976        21.385        .77137E-04   -1.4669    
   2  Prefactor     .92239        25.601        .44018E-02   -1.5516    
   3  Prefactor     6.5404        2.4988        .71144E-04   -1.5196    
   4  norm          1.4141        .89196        .57172E-04   -1.5470    
   5  Prefactor     2.6633        19.605        .24983E-03   -1.5382    
   6  Prefactor     .10000E-03    2.2409        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1096        .18788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9687        .19413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7702        1.9619        .89250E-04   -1.5375    
  11  Prefactor     2.5463        1.7011        .80825E-04   -1.5389    
  12  Prefactor     4.0741        2.4800        .90812E-04   -1.5304    
  13  Prefactor     .10000E-03    5.9693        .23646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34879        .21093        .27183E-04   -1.5590    
  15  norm          13.632        4.8480        .10019E-03   -1.4969    
  16  Prefactor     9.3381        12.890        .65400E-03   -1.5097    
  17  Prefactor     11.868        9.6873        .11626E-03   -1.5019    
  18  Prefactor     .10001E-03    172.77        .36703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    41.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4201        6.9915        .21863E-03   -1.5338    
  21  Prefactor     7.3215        16.768        .14819E-03   -1.5167    
  22  norm          .10000E-03    1.4216        .91125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          26.349        19.874        .78044E-04   -1.4681    
  24  Normalizat    .83187        .22201        .28379E-03   -.98897    
  25  Prefactor     1.3278        .23602        .25050E-03   -.82485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79064e-08
Minuit parameter uncertainties:
  1  21.3911
  2  9.72303
  3  2.49884
  4  0.891968
  5  14.4581
  6  7.76949e-06
  7  1.96321e-05
  8  2.25474e-05
  9  2.16064e-05
  10  1.96192
  11  1.70114
  12  2.48006
  13  1.27255e-05
  14  0.210935
  15  4.84814
  16  12.8942
  17  9.6886
  18  0.00229372
  19  2.05852e-05
  20  6.99314
  21  16.7791
  22  1.61291e-06
  23  19.8793
  24  0.222255
  25  0.236212
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.488e-01  2.109e-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:  1.328e+00  2.362e-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:  8.319e-01  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.73
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.24e-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) = 6221.8776029
delta logL = 0.17857335416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6221.87264667
delta logL = 0.18352957874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27813       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8928       1.0000          .0000       5.0000    
     3 'Normalizat'    .85775       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3127       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=   6221.873     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27816        .18452        .59834E-02    .21841E-03
   2  alpha         1.8921        .38791        .32889       -.43536E-04
   3  Normalizat    .85758        .18154        .44359E-01    .24945E-04
   4  Prefactor     1.3129        .19701        .56920E-01    .60762E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.278158
  alpha      = 1.89211
  Normalizat = 0.857577
  Prefactor  = 1.31292
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.873     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27816        .25171        .26567E-04   -1.5603    
   2  alpha         1.8921        .62590        .12312E-01   -.24562    
   3  Normalizat    .85758        .21575        .27970E-03   -.97967    
   4  Prefactor     1.3129        .23204        .25169E-03   -.82924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30441e-09
Minuit parameter uncertainties:
  1  0.25171
  2  0.633062
  3  0.215969
  4  0.232221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603272': 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) = 6221.87264506
delta logL = 0.18353119023

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.782e-01  2.517e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.892e+00  6.331e-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:  1.313e+00  2.322e-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:  8.576e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.07
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.89 +/- 0.63
Photon Flux (Free Index): 3.93e-08 +/- 4.13e-08
Energy Flux (Free Index): 2.59e-05 +/- 2.17e-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/603272/cmap_HighResolution_580176001_580435201_4FGL_J1224.9+2122_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='2.59e-05', photon_flux_error='3.56e-08', dlogl='1.84e-01', energy_flux='2.05e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-05 13:49:21.901052', photon_index_error2='0.63', photon_index2='1.89', ts='5.73', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.83', time_epoch_completed='1630874961.9', return_code='0', job_id='603272', GAL2='1.31', EG2='0.86', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.13e-08', ts2='6.07', photon_index='2.28' WHERE bin_id='1315' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 603272: <4FGL_J1224.9+2122_daily_bin1315> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1315> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:55 2021
Job was executed on host(s) <bullet0275>, 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:49:22 2021
Results reported at Sun Sep  5 13:49:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1315 186.228 21.3814 580176001 580435201 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 :                                   663.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

