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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin424
RA = 186.116, Dec = 24.6142
tmin = 349228801, tmax = 349488001
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='580679', job_status='RUN', time_executed='2021-09-05 12:25:33.749303', time_epoch_executed='1630869933.75' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580679

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580679/ft1_4FGL_J1224.4+2436_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580679/ft2_4FGL_J1224.4+2436_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580679/ft1_4FGL_J1224.4+2436_daily_bin424.fits outfile=/scratch/kocevski/580679/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin424.fits ra=186.116 dec=24.6142 rad=12.0 tmin=349228801.0 tmax=349488001.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.43
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580679/ft1_filtered_4FGL_J1224.4+2436_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/580679/ft2_4FGL_J1224.4+2436_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/580679/ltcube_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.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/580679/ft2_4FGL_J1224.4+2436_daily_bin424.fits
.....................!
real 12.32
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580679/ft1_filtered_4FGL_J1224.4+2436_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/580679/ft2_4FGL_J1224.4+2436_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/580679/ltcube_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.fits outfile=/scratch/kocevski/580679/expmap_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.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/580679/ltcube_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.fits
.....................!
real 190.27
user 185.22
sys 4.67

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/580679/ft1_filtered_4FGL_J1224.4+2436_daily_bin424.fits scfile=/scratch/kocevski/580679/ft2_4FGL_J1224.4+2436_daily_bin424.fits outfile=/scratch/kocevski/580679/cmap_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.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 3.09
user 0.37
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580679/ft1_filtered_4FGL_J1224.4+2436_daily_bin424.fits scfile=/scratch/kocevski/580679/ft2_4FGL_J1224.4+2436_daily_bin424.fits outfile=/scratch/kocevski/580679/cmap_HighResolution_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.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.69
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2347       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.767       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2614       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .51772       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.847       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18157E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    33.871       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1209       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88068       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=   6398.257     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2913 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6836       -.16260E-06** at limit **
   2  Prefactor     .10000E-03    11.701       -.98994E-05** at limit **
   3  Prefactor     1.2341        1.3071       -.42679E-07   -.50135E-03
   4  Prefactor     25.769        27.903        .22569E-05   -.23921E-04
   5  norm          .10000E-03    .42782        .17050E-07** at limit **
   6  Prefactor     .10006E-03    1.9921        .12624E-05** at limit **
   7  Prefactor     .10000E-03    14.631        .45433E-05** at limit **
   8  Prefactor     .10000E-03    .90502       -.12069E-07** at limit **
   9  Prefactor     .10000E-03    1.2108       -.31717E-07** at limit **
  10  norm          3.2619        3.2113       -.53716E-06   -.32758E-03
  11  Prefactor     .10000E-03    2.0497        .33437E-08** at limit **
  12  Prefactor     4.1080        2.5214       -.28469E-07    .22809E-04
  13  Prefactor     6.1174        2.8345       -.25585E-06   -.18922E-03
  14  Prefactor     .10000E-03    1.4794        .15543E-07** at limit **
  15  norm          .51759        .25547       -.34026E-08   -.16388E-02
  16  norm          7.5432        4.4985       -.67020E-06   -.95210E-04
  17  Prefactor     .10000E-03    2.8765        .13390E-07** at limit **
  18  Prefactor     15.316        19.774        .90483E-05   -.15542E-04
  19  Prefactor     82.850        69.591        .27862E-05   -.12232E-05
  20  Prefactor     .10000E-03    5.5491        .63379E-07** at limit **
  21  norm          .10000E-03    1.8392       -.32241E-07** at limit **
  22  norm          .10000E-03    1.0328       -.19693E-07** at limit **
  23  norm          33.876        19.942        .25197E-05    .72836E-07
  24  Normalizat    1.1207        .17609       -.41211E-06   -.20883E-03
  25  Prefactor     .88075        .17979       -.21483E-06   -.16709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23407
  Prefactor  = 25.7694
  norm       = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.2619
  Prefactor  = 0.0001
  Prefactor  = 4.10799
  Prefactor  = 6.1174
  Prefactor  = 0.0001
  norm       = 0.517593
  norm       = 7.5432
  Prefactor  = 0.0001
  Prefactor  = 15.316
  Prefactor  = 82.8498
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 33.8761
  Normalizat = 1.12072
  Prefactor  = 0.880751
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.257     FROM HESSE     STATUS=OK           429 CALLS     3342 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2341        1.2802        .90873E-04   -1.5486    
   4  Prefactor     25.769        27.877        .78917E-04   -1.4692    
   5  norm          .10000E-03    .61077        .10096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10006E-03    10.543        .21049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .91411        .74250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2331        .85889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2619        3.2024        .12734E-03   -1.5347    
  11  Prefactor     .10000E-03    2.0519        .11183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1080        2.5198        .90270E-04   -1.5303    
  13  Prefactor     6.1174        2.8280        .84283E-04   -1.5213    
  14  Prefactor     .10000E-03    1.4810        .94996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .51759        .25332        .26735E-04   -1.5564    
  16  norm          7.5432        4.4977        .12604E-03   -1.5159    
  17  Prefactor     .10000E-03    2.8796        .13248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.316        19.753        .10239E-03   -1.4925    
  19  Prefactor     82.850        69.535        .44130E-04   -1.3885    
  20  Prefactor     .10000E-03    42.769        .35936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.8513        .10586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.0366        .79371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          33.876        19.942        .68855E-04   -1.4543    
  24  Normalizat    1.1207        .19853        .23434E-03   -.89089    
  25  Prefactor     .88075        .20423        .27682E-03   -.96817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55572e-09
Minuit parameter uncertainties:
  1  1.21963e-06
  2  3.1283e-05
  3  1.28023
  4  27.8908
  5  1.91519e-06
  6  0.00156899
  7  7.02356e-06
  8  1.47779e-06
  9  2.05822e-06
  10  3.20253
  11  6.26441e-07
  12  2.51983
  13  2.82801
  14  2.90914e-06
  15  0.253324
  16  4.49785
  17  4.08804e-06
  18  19.7615
  19  69.6035
  20  0.000190889
  21  3.8803e-06
  22  6.71864e-07
  23  19.9459
  24  0.19866
  25  0.204405
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  2.909e-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:  8.808e-01  2.044e-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.121e+00  1.987e-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: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580679/likelihoodResults_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.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) = 6398.26030107
delta logL = -0.00306541574355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6398.25723523
delta logL = 4.24767677032e-07

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 'Index     '    1.9075       1.0000          .0000       10.000    
     3 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88076       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=   6398.257     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10145E-03    33.559        .96239E-03** at limit **
   2  Index         1.8418        8.7981        .50000        .77134E-04
   3  Normalizat    1.1207        .19927E-01    .23434E-03    .46428E-04
   4  Prefactor     .88075        .21235E-01    .27682E-03    .47927E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6398.257     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      362 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10137E-03    33.559        .18034E-03** at limit **
   2  Index         1.8397        8.7981        .77758E-03    .77134E-04
   3  Normalizat    1.1207        .19927E-01    .47669E-05    .46428E-04
   4  Prefactor     .88074        .21235E-01    .34650E-05    .47927E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6398.257     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      412 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.334        .19248E-02** at limit **
   2  Index         1.5329        9.2294        .50000       -.26535E-07
   3  Normalizat    1.1207        .18265E-01    .93735E-05    .29351E-04
   4  Prefactor     .88075        .19465E-01    .11073E-04    .26284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.53293
  Normalizat = 1.12072
  Prefactor  = 0.880752
 **********
 **   18 **HESSE 
 **********

 FCN=   6398.257     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    138.49        .38496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5329        9.1044        .50000       -.76622    
   3  Normalizat    1.1207        .41790E-01    .18747E-05   -.89089    
   4  Prefactor     .88075        .44530E-01    .22146E-05   -.96817    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.14519e-11
Minuit parameter uncertainties:
  1  3.94847e-06
  2  601.6
  3  0.0417911
  4  0.0445316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580679': 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) = 6398.25723081
delta logL = 4.84536394652e-06

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.948e-06  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.533e+00  6.016e+02  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.808e-01  4.453e-02  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.121e+00  4.179e-02  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/580679/cmap_HighResolution_349228801_349488001_4FGL_J1224.4+2436_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-05 12:38:05.623911', job_id='580679', GAL2='0.88', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630870685.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='424' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:38:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 580679: <4FGL_J1224.4+2436_daily_bin424> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin424> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 12:25:18 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:25:20 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:20 2021
Terminated at Sun Sep  5 12:38:06 2021
Results reported at Sun Sep  5 12:38:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin424 186.116 24.6142 349228801 349488001 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 :                                   743.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            768 sec.

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

