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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin544
RA = 186.116, Dec = 24.6142
tmin = 380332801, tmax = 380592001
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='580864', job_status='RUN', time_executed='2021-09-05 12:25:42.510492', time_epoch_executed='1630869942.51' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580864

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580864/ft1_4FGL_J1224.4+2436_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580864/ft2_4FGL_J1224.4+2436_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580864/ft1_4FGL_J1224.4+2436_daily_bin544.fits outfile=/scratch/kocevski/580864/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin544.fits ra=186.116 dec=24.6142 rad=12.0 tmin=380332801.0 tmax=380592001.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.48
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580864/ft1_filtered_4FGL_J1224.4+2436_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/580864/ft2_4FGL_J1224.4+2436_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/580864/ltcube_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.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/580864/ft2_4FGL_J1224.4+2436_daily_bin544.fits
.....................!
real 12.27
user 11.93
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580864/ft1_filtered_4FGL_J1224.4+2436_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/580864/ft2_4FGL_J1224.4+2436_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/580864/ltcube_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.fits outfile=/scratch/kocevski/580864/expmap_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.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/580864/ltcube_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.fits
.....................!
real 190.91
user 185.76
sys 4.43

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/580864/ft1_filtered_4FGL_J1224.4+2436_daily_bin544.fits scfile=/scratch/kocevski/580864/ft2_4FGL_J1224.4+2436_daily_bin544.fits outfile=/scratch/kocevski/580864/cmap_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580864/ft1_filtered_4FGL_J1224.4+2436_daily_bin544.fits scfile=/scratch/kocevski/580864/ft2_4FGL_J1224.4+2436_daily_bin544.fits outfile=/scratch/kocevski/580864/cmap_HighResolution_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14807E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.468       1.0000         .10000E-03   10000.    
     5 'norm      '    .63867       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73811E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82770E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53148       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9448       1.0000         .10000E-03   10000.    
    10 'norm      '    10.100       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4458       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3673       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6208       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.398       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10563E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.2045       1.0000         .10000E-03   10000.    
    23 'norm      '    33.680       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84601       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1034       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6734.482     FROM MIGRAD    STATUS=CONVERGED   1068 CALLS     3913 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    109.39        .47091E-02** at limit **
   2  Prefactor     .10000E-03    7.7580        .18142E-02** at limit **
   3  Prefactor     1.7723        1.5164        .90054E-04   -.70166E-03
   4  Prefactor     37.539        33.622        .65477E-04    .31253E-05
   5  norm          .63759        1.1010        .10887E-03    .16635E-03
   6  Prefactor     .10253E-03    4.1010        .36192E-01** at limit **
   7  Prefactor     .10000E-03    47.674        .12825    ** at limit **
   8  Prefactor     .53136        4.3036        .21551E-02    .38502E-03
   9  Prefactor     3.9437        4.5220        .77745E-03   -.76157E-04
  10  norm          10.101        3.7740        .90969E-04    .38067E-03
  11  Prefactor     4.3319        7.0490        .96782E-03    .38608E-03
  12  Prefactor     2.4459        1.9028        .94489E-04    .16339E-03
  13  Prefactor     .10000E-03    1.7870        .20965E-03** at limit **
  14  Prefactor     .10000E-03    2.7361        .13214E-02** at limit **
  15  norm          1.3672        .34423        .22385E-04   -.21844E-02
  16  norm          1.6196        4.3938        .26820E-03    .24797E-04
  17  Prefactor     14.156        10.349        .10645E-03   -.14845E-03
  18  Prefactor     50.402        33.319        .56490E-04   -.81426E-04
  19  Prefactor     .10000E-03    18.878        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.4459        .36285E-03** at limit **
  21  norm          .10000E-03    4.4878        .24219E-02** at limit **
  22  norm          7.2049        3.9393        .11539E-03   -.56750E-04
  23  norm          33.678        21.056        .69048E-04   -.45871E-04
  24  Normalizat    .84625        .21522        .27834E-03   -.14917E-03
  25  Prefactor     1.1031        .21674        .26454E-03   -.23594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 1.77233
  Prefactor  = 37.5385
  norm       = 0.63759
  Prefactor  = 0.000102534
  Prefactor  = 0.000100004
  Prefactor  = 0.531362
  Prefactor  = 3.94373
  norm       = 10.1011
  Prefactor  = 4.33191
  Prefactor  = 2.44595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36716
  norm       = 1.61958
  Prefactor  = 14.1556
  Prefactor  = 50.4022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.20485
  norm       = 33.6781
  Normalizat = 0.846253
  Prefactor  = 1.10314
 **********
 **   18 **HESSE 
 **********

 FCN=   6734.482     FROM HESSE     STATUS=OK           425 CALLS     4338 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    111.96        .18836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.7610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7723        1.5157        .36022E-05   -1.5442    
   4  Prefactor     37.539        33.606        .26191E-05   -1.4482    
   5  norm          .63759        1.1007        .43546E-05   -1.5548    
   6  Prefactor     .10253E-03    3.1982        .42772E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.431        .13036       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .53136        4.1478        .86204E-04   -1.5562    
   9  Prefactor     3.9437        4.4568        .31098E-04   -1.5311    
  10  norm          10.101        3.7739        .36388E-05   -1.5072    
  11  Prefactor     4.3319        7.0461        .38713E-04   -1.5292    
  12  Prefactor     2.4459        1.9028        .37795E-05   -1.5395    
  13  Prefactor     .10000E-03    1.7870        .41931E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7362        .26429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3672        .34417        .89539E-06   -1.5474    
  16  norm          1.6196        4.3923        .10728E-04   -1.5453    
  17  Prefactor     14.156        10.348        .42579E-05   -1.4955    
  18  Prefactor     50.402        33.315        .11298E-04   -1.4287    
  19  Prefactor     .10000E-03    18.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4461        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.5044        .48438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.2049        3.9390        .46155E-05   -1.5171    
  23  norm          33.678        21.055        .13810E-04   -1.4547    
  24  Normalizat    .84625        .21527        .11133E-04   -.98375    
  25  Prefactor     1.1031        .21689        .52908E-04   -.89366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17186e-09
Minuit parameter uncertainties:
  1  0.00175653
  2  5.70105e-05
  3  1.51573
  4  33.6225
  5  1.10073
  6  0.00569445
  7  0.00087583
  8  2.96915
  9  4.45714
  10  3.77398
  11  7.04743
  12  1.90283
  13  2.22217e-05
  14  5.86186e-06
  15  0.344167
  16  4.39318
  17  10.3494
  18  33.3269
  19  2.36772e-05
  20  5.91865e-05
  21  9.43734e-05
  22  3.93915
  23  21.06
  24  0.21549
  25  0.217066
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  5.862e-06  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.103e+00  2.171e-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:  8.463e-01  2.155e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580864/likelihoodResults_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.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) = 6734.48338543
delta logL = -0.00173398653442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6734.48165153
delta logL = -8.60436557559e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9432       1.0000          .0000       10.000    
     3 'Normalizat'    .84625       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1032       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6734.482     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    181.03        .13396E-02** at limit **
   2  Index         1.9626        5.1391        .50000       -.57335E-04
   3  Normalizat    .84625        .37296E-01    .27834E-03    .11820E-03
   4  Prefactor     1.1031        .40126E-01    .26454E-03    .92011E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6734.482     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      398 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    181.03        .27931E-03** at limit **
   2  Index         1.9626        5.1391        .16466E-04   -.57335E-04
   3  Normalizat    .84625        .37296E-01    .43082E-06    .11820E-03
   4  Prefactor     1.1031        .40126E-01    .19311E-06    .92011E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6734.482     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      432 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    559.51        .26793E-03** at limit **
   2  Index         1.9631        5.3097        .50000       -.57386E-04
   3  Normalizat    .84625        .98386E-01    .11134E-04    .11396E-03
   4  Prefactor     1.1031        .10583        .10581E-04    .87886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 1.96309
  Normalizat = 0.846253
  Prefactor  = 1.10314
 **********
 **   18 **HESSE 
 **********

 FCN=   6734.482     FROM HESSE     STATUS=OK            29 CALLS      461 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.1159        .53586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9631        5.9591        .50000       -.65276    
   3  Normalizat    .84625        .19845        .22267E-05   -.98375    
   4  Prefactor     1.1031        .21350        .21163E-05   -.89366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98874e-09
Minuit parameter uncertainties:
  1  0.000336717
  2  4.17972
  3  0.198619
  4  0.213662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580864': 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) = 6734.48165092
delta logL = 5.2367340686e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.367e-04  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.963e+00  4.180e+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.103e+00  2.137e-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:  8.463e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.116 24.614

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/580864/cmap_HighResolution_380332801_380592001_4FGL_J1224.4+2436_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-05 12:39:58.380164', job_id='580864', GAL2='1.10', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630870798.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='5.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='544' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:39:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 580864: <4FGL_J1224.4+2436_daily_bin544> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin544> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 12:25:29 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:25:30 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:25:30 2021
Terminated at Sun Sep  5 12:39:59 2021
Results reported at Sun Sep  5 12:39:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin544 186.116 24.6142 380332801 380592001 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 :                                   849.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            870 sec.

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

