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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1013
RA = 186.228, Dec = 21.3814
tmin = 501897601, tmax = 502156801
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='601660', job_status='RUN', time_executed='2021-09-05 13:31:58.519148', time_epoch_executed='1630873918.52' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1013'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601660/ft1_4FGL_J1224.9+2122_daily_bin1013.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601660/ft2_4FGL_J1224.9+2122_daily_bin1013.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601660/ft1_4FGL_J1224.9+2122_daily_bin1013.fits outfile=/scratch/kocevski/601660/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1013.fits ra=186.228 dec=21.3814 rad=12.0 tmin=501897601.0 tmax=502156801.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.53
user 3.24
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601660/ft2_4FGL_J1224.9+2122_daily_bin1013.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/601660/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1013.fits evtable="EVENTS" outfile="/scratch/kocevski/601660/ft1_filtered_4FGL_J1224.9+2122_daily_bin1013.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 1.27
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601660/ft1_filtered_4FGL_J1224.9+2122_daily_bin1013.fits" evtable="EVENTS" scfile=/scratch/kocevski/601660/ft2_4FGL_J1224.9+2122_daily_bin1013.fits sctable="SC_DATA" outfile=/scratch/kocevski/601660/ltcube_501897601_502156801_4FGL_J1224.9+2122_daily_bin1013.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/601660/ft2_4FGL_J1224.9+2122_daily_bin1013.fits
.....................!
real 12.32
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601660/ft1_filtered_4FGL_J1224.9+2122_daily_bin1013.fits evtable="EVENTS" scfile=/scratch/kocevski/601660/ft2_4FGL_J1224.9+2122_daily_bin1013.fits sctable="SC_DATA" expcube=/scratch/kocevski/601660/ltcube_501897601_502156801_4FGL_J1224.9+2122_daily_bin1013.fits outfile=/scratch/kocevski/601660/expmap_501897601_502156801_4FGL_J1224.9+2122_daily_bin1013.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/601660/ltcube_501897601_502156801_4FGL_J1224.9+2122_daily_bin1013.fits
.....................!
real 191.56
user 185.86
sys 4.03

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/601660/ft1_filtered_4FGL_J1224.9+2122_daily_bin1013.fits scfile=/scratch/kocevski/601660/ft2_4FGL_J1224.9+2122_daily_bin1013.fits outfile=/scratch/kocevski/601660/cmap_501897601_502156801_4FGL_J1224.9+2122_daily_bin1013.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601660/ft1_filtered_4FGL_J1224.9+2122_daily_bin1013.fits scfile=/scratch/kocevski/601660/ft2_4FGL_J1224.9+2122_daily_bin1013.fits outfile=/scratch/kocevski/601660/cmap_HighResolution_501897601_502156801_4FGL_J1224.9+2122_daily_bin1013.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.349       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4278       1.0000         .10000E-03   10000.    
     4 'norm      '    10.041       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.400       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2155       1.0000         .10000E-03   10000.    
    10 'norm      '    12.239       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9260       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .41403       1.0000         .10000E-03   10000.    
    15 'norm      '    9.1157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.532       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.246       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.542       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.4781       1.0000         .10000E-03   10000.    
    23 'norm      '    16.556       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92715       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6506.129     FROM MIGRAD    STATUS=CONVERGED     73 CALLS     2375 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.350        1.0032        .40516E-07   -.51594E-03
   2  Prefactor     .10000E-03    6.5664       -.92773E-05** at limit **
   3  Prefactor     2.4276        1.8181        .35380E-06    .19872E-04
   4  norm          10.041        1.9079       -.69387E-06    .20630E-03
   5  Prefactor     11.400        1.0010       -.56129E-08    .27250E-04
   6  Prefactor     .10000E-03    1.3557        .34196E-06** at limit **
   7  Prefactor     41.900        1.0002       -.83452E-08    .21142E-03
   8  Prefactor     .10000E-03    .78920       -.36260E-06** at limit **
   9  Prefactor     4.2157        2.6673       -.38684E-05    .26560E-03
  10  norm          12.238        1.0478       -.12552E-06   -.32702E-02
  11  Prefactor     .10000E-03    1.0016       -.95629E-07** at limit **
  12  Prefactor     4.9256        1.2109       -.10950E-05   -.14915E-02
  13  Prefactor     .10000E-03    2.0058        .62314E-06** at limit **
  14  norm          .41404        .21013       -.16172E-06   -.13709E-03
  15  norm          9.1159        1.0022        .42355E-07   -.22954E-04
  16  Prefactor     16.533        1.0007        .15947E-07   -.11899E-03
  17  Prefactor     .10000E-03    4.5388        .18415E-05** at limit **
  18  Prefactor     35.245        1.0205       -.10214E-06    .20616E-02
  19  Prefactor     .10000E-03    30.792       -.30648E-05** at limit **
  20  Prefactor     11.542        1.0048        .94535E-07   -.17914E-03
  21  Prefactor     .10000E-03    7.2687        .94087E-05** at limit **
  22  norm          6.4781        1.0086        .94219E-07    .10254E-02
  23  norm          16.556        1.0006       -.66476E-08    .10448E-03
  24  Normalizat    .92715        .20810        .48103E-05   -.54940E-05
  25  Prefactor     1.0339        .21439        .26591E-06   -.12120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3495
  Prefactor  = 0.0001
  Prefactor  = 2.42764
  norm       = 10.0409
  Prefactor  = 11.3996
  Prefactor  = 0.0001
  Prefactor  = 41.8998
  Prefactor  = 0.0001
  Prefactor  = 4.21572
  norm       = 12.2378
  Prefactor  = 0.0001
  Prefactor  = 4.92563
  Prefactor  = 0.0001
  norm       = 0.414045
  norm       = 9.11586
  Prefactor  = 16.5329
  Prefactor  = 0.0001
  Prefactor  = 35.2447
  Prefactor  = 0.0001
  Prefactor  = 11.5416
  Prefactor  = 0.0001
  norm       = 6.47815
  norm       = 16.5562
  Normalizat = 0.927154
  Prefactor  = 1.03389
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.129     FROM HESSE     STATUS=OK           483 CALLS     2858 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.350        21.116        .19891E-02   -1.4701    
   2  Prefactor     .10000E-03    6.5433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4276        1.8835        .65662E-02   -1.5396    
   4  norm          10.041        1.9316        .31614E-02   -1.5074    
   5  Prefactor     11.400        11.655        .29664E-02   -1.5033    
   6  Prefactor     .10000E-03    1.3471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.900        70.103        .15482E-02   -1.4412    
   8  Prefactor     .10000E-03    .78069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2157        2.7630        .49068E-02   -1.5297    
  10  norm          12.238        3.7623        .28625E-02   -1.5008    
  11  Prefactor     .10000E-03    .99308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9256        2.5070        .45304E-02   -1.5264    
  13  Prefactor     .10000E-03    2.0016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .41404        .21341        .57094E-02   -1.5579    
  15  norm          9.1159        5.1116        .33187E-02   -1.5104    
  16  Prefactor     16.533        12.392        .24626E-02   -1.4895    
  17  Prefactor     .10000E-03    4.5048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.245        29.746        .16876E-02   -1.4520    
  19  Prefactor     .10000E-03    30.784        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.542        9.3164        .29480E-02   -1.5028    
  21  Prefactor     .10000E-03    7.2679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.4781        3.5703        .39421E-02   -1.5199    
  23  norm          16.556        16.899        .24608E-02   -1.4894    
  24  Normalizat    .92715        .18573        .45248E-01   -.95512    
  25  Prefactor     1.0339        .18599        .62210E-01   -.91608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58378e-08
Minuit parameter uncertainties:
  1  21.1218
  2  3.34942e-05
  3  1.88356
  4  1.93162
  5  11.657
  6  3.19204e-07
  7  70.2411
  8  1.91855e-06
  9  2.76312
  10  3.76236
  11  1.7982e-06
  12  2.50706
  13  3.79701e-06
  14  0.213415
  15  5.11182
  16  12.394
  17  8.16734e-06
  18  29.7588
  19  2.25122e-05
  20  9.31753
  21  1.91915e-05
  22  3.57045
  23  16.9043
  24  0.185861
  25  0.186101
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.140e-01  2.134e-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.034e+00  1.861e-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.272e-01  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.02
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 7.00e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.25e-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) = 6505.99148589
delta logL = 0.137158880443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6505.98913648
delta logL = 0.139508285866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40896       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6106       1.0000          .0000       5.0000    
     3 'Normalizat'    .90156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0527       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=   6505.989     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40896        3.8991        .53809E-02    .12674E-02
   2  alpha         2.6106        3.2493        .41203        .29166E-04
   3  Normalizat    .90156        .89852E-01    .44922E-01    .20059E-04
   4  Prefactor     1.0526        .98014E-01    .61733E-01    .35578E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.408955
  alpha      = 2.61055
  Normalizat = 0.901557
  Prefactor  = 1.05265
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.989     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40896        .21026        .24071E-04   -1.5580    
   2  alpha         2.6106        .66460        .15817E-01    .44235E-01
   3  Normalizat    .90156        .21152        .27948E-03   -.96405    
   4  Prefactor     1.0526        .21791        .27301E-03   -.90995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04749e-11
Minuit parameter uncertainties:
  1  0.210265
  2  0.672704
  3  0.211716
  4  0.21809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601660': 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) = 6505.98913647
delta logL = 0.139508294945

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.090e-01  2.103e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.611e+00  6.727e-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.053e+00  2.181e-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.016e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.25
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.61 +/- 0.67
Photon Flux (Free Index): 8.64e-08 +/- 5.03e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/601660/cmap_HighResolution_501897601_502156801_4FGL_J1224.9+2122_daily_bin1013.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.00e-08', energy_flux2='2.17e-05', photon_flux_error='3.60e-08', dlogl='1.40e-01', energy_flux='2.43e-05', photon_flux2='8.64e-08', job_status='DONE', time_completed='2021-09-05 13:42:35.423258', photon_index_error2='0.67', photon_index2='2.61', ts='8.02', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='0.93', time_epoch_completed='1630874555.42', return_code='0', job_id='601660', GAL2='1.05', EG2='0.90', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.03e-08', ts2='8.25', photon_index='2.28' WHERE bin_id='1013' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:42:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 601660: <4FGL_J1224.9+2122_daily_bin1013> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1013> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:03 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:05 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:31:05 2021
Terminated at Sun Sep  5 13:42:36 2021
Results reported at Sun Sep  5 13:42:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1013 186.228 21.3814 501897601 502156801 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 :                                   626.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

