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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1062
RA = 186.116, Dec = 24.6142
tmin = 514598401, tmax = 514857601
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='584190', job_status='RUN', time_executed='2021-09-05 12:39:41.077893', time_epoch_executed='1630870781.08' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584190/ft1_4FGL_J1224.4+2436_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584190/ft1_4FGL_J1224.4+2436_daily_bin1062.fits outfile=/scratch/kocevski/584190/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1062.fits ra=186.116 dec=24.6142 rad=12.0 tmin=514598401.0 tmax=514857601.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.03
user 3.74
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.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/584190/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1062.fits evtable="EVENTS" outfile="/scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/584190/ltcube_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.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/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits
.....................!
real 12.05
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/584190/ltcube_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.fits outfile=/scratch/kocevski/584190/expmap_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.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/584190/ltcube_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.fits
.....................!
real 190.46
user 185.51
sys 4.14

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits scfile=/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits outfile=/scratch/kocevski/584190/cmap_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.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.116 yref=24.6142 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits scfile=/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits outfile=/scratch/kocevski/584190/cmap_HighResolution_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.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.116 yref=24.6142 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/584190/Model_4FGL_J1224.4+2436_daily_bin1062.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/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits.....................!
real 51.23
user 49.78
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits', '/scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits', expMap='/scratch/kocevski/584190/expmap_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.fits', expCube='/scratch/kocevski/584190/ltcube_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/584190/Model_4FGL_J1224.4+2436_daily_bin1062.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.4+2436'

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/584190/ft1_filtered_4FGL_J1224.4+2436_daily_bin1062.fits
Spacecraft file(s): /scratch/kocevski/584190/ft2_4FGL_J1224.4+2436_daily_bin1062.fits
Exposure map: /scratch/kocevski/584190/expmap_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.fits
Exposure cube: /scratch/kocevski/584190/ltcube_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/584190/Model_4FGL_J1224.4+2436_daily_bin1062.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) = 5802.31937177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13990E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11493E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .54100E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0213       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11519E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8306       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .23648       1.0000         .10000E-03   10000.    
    16 'norm      '    17.055       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9899       1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12455E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8334       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6562       1.0000         .10000E-03   10000.    
    22 'norm      '    11.086       1.0000         .10000E-03   10000.    
    23 'norm      '    28.893       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61736       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5802.313     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2997 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.228        22.380        .22609E-06   -.94656E-04
   2  Prefactor     4.1705        12.331        .15088E-05    .26245E-03
   3  Prefactor     3.6621        2.1954        .51481E-07   -.22756E-03
   4  Prefactor     .10000E-03    14.956        .55735E-06** at limit **
   5  norm          1.5598        1.2380        .11795E-06   -.62057E-04
   6  Prefactor     .10047E-03    2.7086        .61311E-06** at limit **
   7  Prefactor     .10000E-03    21.489       -.14259E-06** at limit **
   8  Prefactor     8.0313        4.0039        .10516E-05   -.14029E-03
   9  Prefactor     .10000E-03    1.9264       -.42701E-06** at limit **
  10  norm          15.655        4.4669        .26800E-07    .86992E-04
  11  Prefactor     .10000E-03    5.7681        .38641E-07** at limit **
  12  Prefactor     .10000E-03    1.4511       -.15602E-06** at limit **
  13  Prefactor     2.8320        2.3676       -.17124E-07   -.29490E-03
  14  Prefactor     .10005E-03    7.1463        .23709E-05** at limit **
  15  norm          .23656        .20209        .67008E-08   -.21182E-02
  16  norm          17.053        6.8156        .53689E-07   -.93977E-03
  17  Prefactor     6.9905        8.8688        .27592E-05    .13213E-03
  18  Prefactor     71.778        40.829       -.27982E-06   -.25016E-03
  19  Prefactor     .10000E-03    17.084       -.11601E-05** at limit **
  20  Prefactor     1.8670        8.3127        .24672E-05    .14829E-03
  21  norm          3.6661        3.4213        .11570E-06    .32368E-05
  22  norm          11.102        5.7247        .99730E-07   -.95739E-04
  23  norm          28.922        23.780       -.60566E-06   -.36746E-03
  24  Normalizat    .61686        .18727       -.13397E-05   -.30461E-03
  25  Prefactor     1.2287        .19901       -.70111E-06   -.29192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.2285
  Prefactor  = 4.17048
  Prefactor  = 3.66214
  Prefactor  = 0.000100001
  norm       = 1.55977
  Prefactor  = 0.000100474
  Prefactor  = 0.0001
  Prefactor  = 8.03132
  Prefactor  = 0.0001
  norm       = 15.6548
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.83203
  Prefactor  = 0.000100051
  norm       = 0.236559
  norm       = 17.053
  Prefactor  = 6.99047
  Prefactor  = 71.7785
  Prefactor  = 0.000100003
  Prefactor  = 1.86701
  norm       = 3.66607
  norm       = 11.102
  norm       = 28.9218
  Normalizat = 0.616865
  Prefactor  = 1.22869
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.313     FROM HESSE     STATUS=OK           437 CALLS     3434 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.228        22.353        .10334E-03   -1.4927    
   2  Prefactor     4.1705        12.412        .19807E-03   -1.5300    
   3  Prefactor     3.6621        2.1877        .80752E-04   -1.5325    
   4  Prefactor     .10000E-03    15.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5598        1.2203        .70845E-04   -1.5458    
   6  Prefactor     .10047E-03    28.843        .22244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.598        .21118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.0313        3.9653        .49768E-03   -1.5141    
   9  Prefactor     .10000E-03    1.9806        .10342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.655        4.1938        .76325E-04   -1.4916    
  11  Prefactor     .10000E-03    5.8563        .17860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.341        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8320        2.3475        .99687E-04   -1.5371    
  14  Prefactor     .10005E-03    18.976        .34227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .23656        .19282        .29970E-03   -1.5611    
  16  norm          17.053        6.3761        .96982E-04   -1.4882    
  17  Prefactor     6.9905        8.8462        .75870E-03   -1.5179    
  18  Prefactor     71.778        40.999        .47334E-04   -1.4011    
  19  Prefactor     .10000E-03    17.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8670        8.2377        .30818E-03   -1.5435    
  21  norm          3.6661        3.4161        .13177E-03   -1.5325    
  22  norm          11.102        5.7082        .12033E-03   -1.5041    
  23  norm          28.922        24.000        .74535E-04   -1.4632    
  24  Normalizat    .61686        .21184        .30601E-03   -1.0727    
  25  Prefactor     1.2287        .23017        .25182E-03   -.85453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02422e-08
Minuit parameter uncertainties:
  1  22.3649
  2  12.4199
  3  2.18779
  4  0.00021524
  5  1.22032
  6  0.00740073
  7  5.45645e-05
  8  3.96546
  9  2.90108e-05
  10  4.19383
  11  1.32837e-05
  12  0.000389544
  13  2.34761
  14  0.00195899
  15  0.192818
  16  6.37632
  17  8.84784
  18  41.0154
  19  0.000479495
  20  7.84503
  21  3.41627
  22  5.70843
  23  24.0081
  24  0.212118
  25  0.230357
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.001e-04  1.959e-03  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.229e+00  2.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  6.169e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/584190/likelihoodResults_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.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): 102
logL (Free Index) = 5802.31302531
delta logL = -0.000249966391493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5802.31269822
delta logL = 7.71231088947e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20943E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0938       1.0000          .0000       10.000    
     3 'Normalizat'    .61699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5801.764     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      257 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45104        8.0541        .10094E-01    .53090E-03
   2  Index         3.2927        2.4086        .88636E-01   -.66377E-05
   3  Normalizat    .56669        .38865E-01    .71789E-01   -.35519E-03
   4  Prefactor     1.2544        .43904E-01    .56359E-01   -.66019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.451038
  Index      = 3.29269
  Normalizat = 0.566689
  Prefactor  = 1.25435
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.764     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45104        23.717        .51865E-04   -1.5574    
   2  Index         3.2927        6.6438        .49156E-02   -.34847    
   3  Normalizat    .56669        .18900        .31779E-03   -1.0942    
   4  Prefactor     1.2544        .21098        .24919E-03   -.84675    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33248e-08
Minuit parameter uncertainties:
  1  6.54329
  2  5.53429
  3  0.189216
  4  0.211119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584190': 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): 102
logL (Free Index) = 5801.76365209
delta logL = 0.549123246908

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  4.510e-01  6.543e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  3.293e+00  5.534e+00  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.254e+00  2.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  5.667e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 186.116 24.614
Photon Index (Free Index): 3.29 +/- 5.53
Photon Flux (Free Index): 5.32e-08 +/- 5.66e-08
Energy Flux (Free Index): 9.41e-06 +/- 1.79e-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/584190/cmap_HighResolution_514598401_514857601_4FGL_J1224.4+2436_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', comment='SUCCESS', energy_flux2='9.41e-06', dlogl='5.49e-01', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-09-05 12:51:58.167979', photon_index_error2='5.53', photon_index2='3.29', ts='-0.00', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='7.28e-08', energy_flux_error2='1.79e-05', EG='0.62', time_epoch_completed='1630871518.17', return_code='0', job_id='584190', GAL2='1.25', EG2='0.57', return_code2='102', photon_flux_error2='5.66e-08', ts2='1.15', photon_index='1.93' WHERE bin_id='1062' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:51:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 584190: <4FGL_J1224.4+2436_daily_bin1062> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin1062> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:35:39 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:35:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:35:41 2021
Terminated at Sun Sep  5 12:52:00 2021
Results reported at Sun Sep  5 12:52:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1062 186.116 24.6142 514598401 514857601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.4+2436 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            981 sec.

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

