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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin144
RA = 186.116, Dec = 24.6142
tmin = 276652801, tmax = 276912001
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='577485', job_status='RUN', time_executed='2021-09-05 12:16:31.227865', time_epoch_executed='1630869391.23' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577485

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577485/ft1_4FGL_J1224.4+2436_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577485/ft2_4FGL_J1224.4+2436_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577485/ft1_4FGL_J1224.4+2436_daily_bin144.fits outfile=/scratch/kocevski/577485/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin144.fits ra=186.116 dec=24.6142 rad=12.0 tmin=276652801.0 tmax=276912001.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.57
user 4.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577485/ft1_filtered_4FGL_J1224.4+2436_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/577485/ft2_4FGL_J1224.4+2436_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/577485/ltcube_276652801_276912001_4FGL_J1224.4+2436_daily_bin144.fits outfile=/scratch/kocevski/577485/expmap_276652801_276912001_4FGL_J1224.4+2436_daily_bin144.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/577485/ltcube_276652801_276912001_4FGL_J1224.4+2436_daily_bin144.fits
.....................!
real 191.13
user 186.45
sys 4.34

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/577485/ft1_filtered_4FGL_J1224.4+2436_daily_bin144.fits scfile=/scratch/kocevski/577485/ft2_4FGL_J1224.4+2436_daily_bin144.fits outfile=/scratch/kocevski/577485/cmap_276652801_276912001_4FGL_J1224.4+2436_daily_bin144.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.71
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577485/ft1_filtered_4FGL_J1224.4+2436_daily_bin144.fits scfile=/scratch/kocevski/577485/ft2_4FGL_J1224.4+2436_daily_bin144.fits outfile=/scratch/kocevski/577485/cmap_HighResolution_276652801_276912001_4FGL_J1224.4+2436_daily_bin144.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.431       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.195       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .97140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.316       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.4253       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5825       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.686       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .16074E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.878       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2801       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78576       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=   6218.894     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2921 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5249       -.22878E-07** at limit **
   2  Prefactor     18.431        14.375        .33765E-06    .65799E-05
   3  Prefactor     .10000E-03    .95419        .27016E-07** at limit **
   4  Prefactor     13.204        24.667       -.14982E-05   -.10637E-04
   5  norm          1.3265        .87419        .59398E-08   -.69926E-04
   6  Prefactor     .97103        3.4517        .14240E-06    .11569E-05
   7  Prefactor     20.256        34.718        .55605E-05    .21121E-04
   8  Prefactor     .10000E-03    .76705        .14971E-07** at limit **
   9  Prefactor     .10000E-03    1.8337       -.59566E-08** at limit **
  10  norm          8.4264        4.9210       -.57136E-07   -.16811E-04
  11  Prefactor     .10000E-03    1.9286       -.53020E-07** at limit **
  12  Prefactor     1.6540        3.8163       -.13593E-08   -.33649E-04
  13  Prefactor     1.6606        2.2230        .29178E-07   -.32132E-05
  14  Prefactor     .10000E-03    4.0779        .42750E-06** at limit **
  15  norm          4.5825        .53767       -.89284E-08   -.14765E-03
  16  norm          3.6512        5.5886        .12317E-05    .35325E-04
  17  Prefactor     17.688        11.959        .45288E-07   -.53136E-05
  18  Prefactor     6.9415        30.477        .11517E-05    .16982E-05
  19  Prefactor     3.6549        102.47       -.81707E-07   -.83278E-05
  20  Prefactor     .10000E-03    2.1082        .20878E-08** at limit **
  21  norm          .10023E-03    3.7311        .65052E-06** at limit **
  22  norm          10.878        4.7357        .26258E-07   -.76156E-05
  23  norm          .10000E-03    7.6279        .44081E-07** at limit **
  24  Normalizat    1.2799        .19513        .17351E-06   -.38255E-04
  25  Prefactor     .78602        .20270       -.11058E-05   -.35518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.4315
  Prefactor  = 0.0001
  Prefactor  = 13.204
  norm       = 1.32655
  Prefactor  = 0.971025
  Prefactor  = 20.2562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.42638
  Prefactor  = 0.0001
  Prefactor  = 1.65396
  Prefactor  = 1.66062
  Prefactor  = 0.0001
  norm       = 4.58255
  norm       = 3.65123
  Prefactor  = 17.6875
  Prefactor  = 6.94148
  Prefactor  = 3.65487
  Prefactor  = 0.0001
  norm       = 0.000100234
  norm       = 10.8782
  norm       = 0.0001
  Normalizat = 1.27991
  Prefactor  = 0.786018
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.894     FROM HESSE     STATUS=OK           443 CALLS     3364 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.431        14.346        .93293E-04   -1.4849    
   3  Prefactor     .10000E-03    .98002        .15030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.204        24.684        .11027E-03   -1.4981    
   5  norm          1.3265        .86819        .28985E-03   -1.5478    
   6  Prefactor     .97103        3.4086        .26048E-03   -1.5511    
   7  Prefactor     20.256        34.816        .88862E-04   -1.4808    
   8  Prefactor     .10000E-03    .76966        .67421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8698        .10421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.4264        4.8010        .10202E-03   -1.5127    
  11  Prefactor     .10000E-03    1.9305        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6540        3.6834        .17957E-03   -1.5451    
  13  Prefactor     1.6606        2.1835        .12430E-03   -1.5450    
  14  Prefactor     .10000E-03    4.1112        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5825        .53909        .18723E-04   -1.5280    
  16  norm          3.6512        5.6206        .10568E-02   -1.5326    
  17  Prefactor     17.688        11.941        .95236E-04   -1.4867    
  18  Prefactor     6.9415        30.491        .15220E-03   -1.5181    
  19  Prefactor     3.6549        102.47        .21128E-03   -1.5326    
  20  Prefactor     .10000E-03    2.1115        .11182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10023E-03    3.4294        .45649E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.878        4.7395        .10945E-03   -1.5048    
  23  norm          .10000E-03    7.6308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2799        .22763        .25278E-03   -.84168    
  25  Prefactor     .78602        .23316        .33689E-03   -1.0025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66063e-10
Minuit parameter uncertainties:
  1  6.92303e-07
  2  14.3485
  3  7.96489e-07
  4  24.7028
  5  0.868199
  6  3.40932
  7  34.8511
  8  2.72634e-07
  9  1.24246e-06
  10  4.80121
  11  2.9691e-06
  12  3.6839
  13  2.18362
  14  1.5452e-06
  15  0.539093
  16  5.62142
  17  11.9425
  18  29.1215
  19  38.7781
  20  4.54606e-07
  21  0.00179152
  22  4.73964
  23  7.60869e-07
  24  0.227809
  25  0.233451
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.545e-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:  7.860e-01  2.335e-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.280e+00  2.278e-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: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577485/likelihoodResults_276652801_276912001_4FGL_J1224.4+2436_daily_bin144.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) = 6218.89508056
delta logL = -0.00115226744947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6218.89392824
delta logL = 5.06761352881e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9573       1.0000          .0000       10.000    
     3 'Normalizat'    1.2799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78608       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=   6218.894     FROM MIGRAD    STATUS=FAILED        92 CALLS      248 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    151.43        .16339E-02** at limit **
   2  Index         1.9942        6.1356        .50000       -.74628E-04
   3  Normalizat    1.2799        .29246E-01    .25277E-03    .20464E-04
   4  Prefactor     .78602        .31464E-01    .33690E-03   -.67828E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6218.894     FROM SIMPLEX   STATUS=UNCHANGED    159 CALLS      407 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    151.43        .38586E-03** at limit **
   2  Index         1.9942        6.1356        .12295E-03   -.74628E-04
   3  Normalizat    1.2799        .29246E-01    .84279E-06    .20464E-04
   4  Prefactor     .78602        .31464E-01    .10513E-05   -.67828E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6217.743     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      547 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36799E-02    .10202        .77471E-03   -.65866E-02
   2  Index         5.2396        2.7041        .84977E-01    .14318E-03
   3  Normalizat    1.1890        .19404        .10111E-03    .13493E-05
   4  Prefactor     .84644        .14939        .13476E-03    .67322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00367991
  Index      = 5.23964
  Normalizat = 1.18896
  Prefactor  = 0.846439
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.743     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      576 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36799E-02    .10518        .34913E-05   -1.5720    
   2  Index         5.2396        3.3070        .30813E-02    .47945E-01
   3  Normalizat    1.1890        .19184        .40444E-05   -.86945    
   4  Prefactor     .84644        .20387        .26952E-04   -.98039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.34797e-10
Minuit parameter uncertainties:
  1  0.0388085
  2  3.61436
  3  0.191954
  4  0.204049
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577485': 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) = 6217.74315175
delta logL = 1.15077654645

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.680e-03  3.881e-02  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  5.240e+00  3.614e+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:  8.464e-01  2.040e-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.189e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.42
Ra Dec: 186.116 24.614
Photon Index (Free Index): 5.24 +/- 3.61
Photon Flux (Free Index): 9.83e-08 +/- 2.04e-06
Energy Flux (Free Index): 1.28e-05 +/- 2.63e-04

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/577485/cmap_HighResolution_276652801_276912001_4FGL_J1224.4+2436_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='1.15e+00', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-05 12:29:42.306051', photon_index_error2='3.61', photon_index2='5.24', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.28e-08', energy_flux_error2='2.63e-04', EG='1.28', time_epoch_completed='1630870182.31', return_code='0', job_id='577485', GAL2='0.85', EG2='1.19', return_code2='102', photon_flux_error2='2.04e-06', ts2='2.42', photon_index='1.93' WHERE bin_id='144' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:29:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 577485: <4FGL_J1224.4+2436_daily_bin144> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin144> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:57 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:58 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:58 2021
Terminated at Sun Sep  5 12:29:45 2021
Results reported at Sun Sep  5 12:29:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin144 186.116 24.6142 276652801 276912001 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 :                                   785.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            828 sec.

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

