/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 224 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin61
RA = 186.116, Dec = 24.6142
tmin = 255139201, tmax = 255398401
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='577358', job_status='RUN', time_executed='2021-09-05 12:19:47.070280', time_epoch_executed='1630869587.07' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577358

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577358/ft1_4FGL_J1224.4+2436_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577358/ft1_4FGL_J1224.4+2436_daily_bin61.fits outfile=/scratch/kocevski/577358/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin61.fits ra=186.116 dec=24.6142 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.52
user 7.17
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577358/ft1_filtered_4FGL_J1224.4+2436_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/577358/ltcube_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.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/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits
.....................!
real 11.92
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577358/ft1_filtered_4FGL_J1224.4+2436_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/577358/ltcube_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.fits outfile=/scratch/kocevski/577358/expmap_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.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/577358/ltcube_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.fits
.....................!
real 191.51
user 185.49
sys 5.22

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/577358/ft1_filtered_4FGL_J1224.4+2436_daily_bin61.fits scfile=/scratch/kocevski/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits outfile=/scratch/kocevski/577358/cmap_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577358/ft1_filtered_4FGL_J1224.4+2436_daily_bin61.fits scfile=/scratch/kocevski/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits outfile=/scratch/kocevski/577358/cmap_HighResolution_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/577358/ft1_filtered_4FGL_J1224.4+2436_daily_bin61.fits', '/scratch/kocevski/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits', expMap='/scratch/kocevski/577358/expmap_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.fits', expCube='/scratch/kocevski/577358/ltcube_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/577358/Model_4FGL_J1224.4+2436_daily_bin61.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/577358/ft1_filtered_4FGL_J1224.4+2436_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/577358/ft2_4FGL_J1224.4+2436_daily_bin61.fits
Exposure map: /scratch/kocevski/577358/expmap_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.fits
Exposure cube: /scratch/kocevski/577358/ltcube_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/577358/Model_4FGL_J1224.4+2436_daily_bin61.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) = 5374.20825457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38259       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.845       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2224       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1176       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6780       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33197       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7925       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9333       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2619       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9803       1.0000         .10000E-03   10000.    
    15 'norm      '    .30368       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.014       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.377       1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.495       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9045       1.0000         .10000E-03   10000.    
    23 'norm      '    19.948       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2282       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86123       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=   5374.204     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3456 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8423        .38577E-07** at limit **
   2  Prefactor     .10000E-03    6.8473        .12553E-06** at limit **
   3  Prefactor     .38243        1.0732        .77403E-06    .97595E-03
   4  Prefactor     42.865        40.810       -.16604E-05   -.22668E-04
   5  norm          1.2224        1.0612        .47862E-07    .28374E-04
   6  Prefactor     .10000E-03    4.5728       -.19188E-05** at limit **
   7  Prefactor     4.0523        100.81        .81836E-05    .33701E-04
   8  Prefactor     2.6784        3.3480        .40620E-07    .14582E-03
   9  Prefactor     .33178        2.7739        .94290E-06   -.16508E-03
  10  norm          4.7926        2.8555       -.23356E-07   -.57362E-04
  11  Prefactor     9.9335        10.025       -.26559E-07   -.16725E-04
  12  Prefactor     1.2620        1.3281       -.69552E-07   -.13891E-03
  13  Prefactor     5.7914        3.0311        .28423E-07   -.87751E-04
  14  Prefactor     2.9800        4.4375        .21365E-06    .50550E-04
  15  norm          .30367        .21839        .40475E-08   -.94221E-04
  16  norm          .10000E-03    2.1662       -.13578E-06** at limit **
  17  Prefactor     23.016        13.763        .19961E-07   -.83855E-04
  18  Prefactor     33.380        32.280        .13781E-06   -.23380E-04
  19  Prefactor     53.493        69.020        .40069E-06   -.77192E-05
  20  Prefactor     .10000E-03    3.2612        .24481E-07** at limit **
  21  norm          .10000E-03    1.9121       -.11197E-07** at limit **
  22  norm          1.9044        2.4691        .68652E-07    .20469E-04
  23  norm          19.947        27.180        .19469E-06   -.16135E-05
  24  Normalizat    1.2283        .20041       -.15023E-05   -.23973E-04
  25  Prefactor     .86124        .20574        .66848E-06   -.21460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.382433
  Prefactor  = 42.865
  norm       = 1.22243
  Prefactor  = 0.000100005
  Prefactor  = 4.05234
  Prefactor  = 2.67842
  Prefactor  = 0.331778
  norm       = 4.79263
  Prefactor  = 9.93346
  Prefactor  = 1.26195
  Prefactor  = 5.79138
  Prefactor  = 2.97997
  norm       = 0.303669
  norm       = 0.0001
  Prefactor  = 23.0163
  Prefactor  = 33.3801
  Prefactor  = 53.4932
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.90441
  norm       = 19.9467
  Normalizat = 1.22828
  Prefactor  = 0.861237
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.204     FROM HESSE     STATUS=OK           443 CALLS     3899 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38243        1.0856        .13087E-02   -1.5584    
   4  Prefactor     42.865        40.652        .61245E-04   -1.4398    
   5  norm          1.2224        1.0443        .67761E-04   -1.5487    
   6  Prefactor     .10000E-03    6.6970        .24244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0523        102.27        .19866E-03   -1.5305    
   8  Prefactor     2.6784        3.2168        .12902E-03   -1.5381    
   9  Prefactor     .33178        4.5977        .20108E-02   -1.5593    
  10  norm          4.7926        2.8539        .91395E-04   -1.5270    
  11  Prefactor     9.9335        10.014        .12714E-03   -1.5078    
  12  Prefactor     1.2620        1.3435        .83661E-04   -1.5483    
  13  Prefactor     5.7914        3.0309        .86149E-04   -1.5227    
  14  Prefactor     2.9800        4.4218        .18229E-03   -1.5363    
  15  norm          .30367        .21570        .27601E-04   -1.5598    
  16  norm          .10000E-03    2.1853        .10528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.016        13.743        .83496E-04   -1.4748    
  18  Prefactor     33.380        32.277        .69360E-04   -1.4552    
  19  Prefactor     53.493        69.184        .54839E-04   -1.4244    
  20  Prefactor     .10000E-03    3.2838        .12927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9239        .98979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9044        2.4562        .12695E-03   -1.5432    
  23  norm          19.947        27.155        .89677E-04   -1.4814    
  24  Normalizat    1.2283        .23632        .23679E-03   -.85733    
  25  Prefactor     .86124        .24428        .29554E-03   -.97509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82026e-08
Minuit parameter uncertainties:
  1  8.5571e-07
  2  3.03121e-05
  3  1.08568
  4  40.6778
  5  1.04427
  6  0.000350086
  7  40.7919
  8  3.21701
  9  2.47
  10  2.85399
  11  10.0158
  12  1.34357
  13  3.03099
  14  4.42228
  15  0.215696
  16  4.34331e-06
  17  13.7452
  18  32.2935
  19  69.2877
  20  3.21195e-06
  21  5.03281e-07
  22  2.45636
  23  27.1718
  24  0.236531
  25  0.24459
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.980e+00  4.422e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.612e-01  2.446e-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:  1.228e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/577358/likelihoodResults_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.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) = 5374.11635596
delta logL = 0.0875543754155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5373.73987064
delta logL = 0.464039696106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    5.6239       1.0000          .0000       10.000    
     3 'Normalizat'    1.1406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93412       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=   5373.740     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      355 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86922E-03    .12573E-01    .47305E-03** at limit **
   2  Index         5.6252        1.8146        .95121E-01    .28335E-03
   3  Normalizat    1.1405        .41268E-01    .55216E-01    .70798E-04
   4  Prefactor     .93421        .44272E-01    .45438E-01    .41605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000869223
  Index      = 5.62519
  Normalizat = 1.14054
  Prefactor  = 0.934205
 **********
 **   18 **HESSE 
 **********

 FCN=   5373.740     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      390 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86922E-03    .38510E-01    .20267E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.6252        3.7558        .33844E-02    .12537    
   3  Normalizat    1.1405        .16950        .24416E-03   -.88461    
   4  Prefactor     .93421        .17841        .28499E-03   -.94956    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.0596e-11
Minuit parameter uncertainties:
  1  0.0108853
  2  4.26056
  3  0.16958
  4  0.178523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577358': 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) = 5373.7398696
delta logL = 0.464040737221

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  8.692e-04  1.089e-02  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  5.625e+00  4.261e+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:  9.342e-01  1.785e-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:  1.141e+00  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 186.116 24.614
Photon Index (Free Index): 5.63 +/- 4.26
Photon Flux (Free Index): 7.04e-08 +/- 6.08e-08
Energy Flux (Free Index): 8.95e-06 +/- 8.59e-06

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/577358/cmap_HighResolution_255139201_255398401_4FGL_J1224.4+2436_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-03', comment='SUCCESS', energy_flux2='8.95e-06', dlogl='4.64e-01', photon_flux2='7.04e-08', job_status='DONE', time_completed='2021-09-05 12:32:13.482696', photon_index_error2='4.26', photon_index2='5.63', ts='0.78', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.90e-08', energy_flux_error2='8.59e-06', EG='1.23', time_epoch_completed='1630870333.48', return_code='0', job_id='577358', GAL2='0.93', EG2='1.14', return_code2='102', photon_flux_error2='6.08e-08', ts2='1.81', photon_index='1.93' WHERE bin_id='61' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:32:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 577358: <4FGL_J1224.4+2436_daily_bin61> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin61> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:48 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:49 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:15:49 2021
Terminated at Sun Sep  5 12:32:14 2021
Results reported at Sun Sep  5 12:32:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin61 186.116 24.6142 255139201 255398401 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

