/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.4+2436_daily_bin409
RA = 186.116, Dec = 24.6142
tmin = 345340801, tmax = 345600001
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='579329', job_status='RUN', time_executed='2021-09-05 12:22:46.087657', time_epoch_executed='1630869766.09' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579329/ft1_4FGL_J1224.4+2436_daily_bin409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579329/ft2_4FGL_J1224.4+2436_daily_bin409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579329/ft1_4FGL_J1224.4+2436_daily_bin409.fits outfile=/scratch/kocevski/579329/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin409.fits ra=186.116 dec=24.6142 rad=12.0 tmin=345340801.0 tmax=345600001.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.45
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579329/ft1_filtered_4FGL_J1224.4+2436_daily_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/579329/ft2_4FGL_J1224.4+2436_daily_bin409.fits sctable="SC_DATA" expcube=/scratch/kocevski/579329/ltcube_345340801_345600001_4FGL_J1224.4+2436_daily_bin409.fits outfile=/scratch/kocevski/579329/expmap_345340801_345600001_4FGL_J1224.4+2436_daily_bin409.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/579329/ltcube_345340801_345600001_4FGL_J1224.4+2436_daily_bin409.fits
.....................!
real 190.13
user 184.85
sys 4.66

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/579329/ft1_filtered_4FGL_J1224.4+2436_daily_bin409.fits scfile=/scratch/kocevski/579329/ft2_4FGL_J1224.4+2436_daily_bin409.fits outfile=/scratch/kocevski/579329/cmap_345340801_345600001_4FGL_J1224.4+2436_daily_bin409.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579329/ft1_filtered_4FGL_J1224.4+2436_daily_bin409.fits scfile=/scratch/kocevski/579329/ft2_4FGL_J1224.4+2436_daily_bin409.fits outfile=/scratch/kocevski/579329/cmap_HighResolution_345340801_345600001_4FGL_J1224.4+2436_daily_bin409.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=186.116 yref=24.6142 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2322       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .20991E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .37286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26651       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6030       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5342       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45418E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6037       1.0000         .10000E-03   10000.    
    15 'norm      '    .20681       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .26439E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3630       1.0000         .10000E-03   10000.    
    21 'norm      '    .97114       1.0000         .10000E-03   10000.    
    22 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .17114E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4471       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .62839       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=   6248.094     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2998 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.749        18.429       -.11226E-04   -.14140E-04
   2  Prefactor     .10000E-03    11.342        .71228E-06** at limit **
   3  Prefactor     1.2321        1.2043        .43040E-06    .53521E-03
   4  Prefactor     .10000E-03    6.4263        .25372E-05** at limit **
   5  norm          .37300        .66326        .98323E-08   -.25684E-03
   6  Prefactor     .10000E-03    1.2753        .13142E-08** at limit **
   7  Prefactor     54.078        29.150        .18803E-04   -.64581E-05
   8  Prefactor     .26673        2.0702       -.13224E-05   -.21508E-03
   9  Prefactor     .10000E-03    2.4881        .20885E-06** at limit **
  10  norm          3.6008        2.6439       -.21667E-06   -.21729E-03
  11  Prefactor     .10000E-03    1.6674       -.57724E-07** at limit **
  12  Prefactor     1.5349        1.5637        .26104E-07   -.18982E-05
  13  Prefactor     .44349E-01    .93757       -.19354E-07   -.10391E-03
  14  Prefactor     4.6065        5.0314        .78422E-06   -.99799E-04
  15  norm          .20680        .20994       -.34137E-07   -.93513E-03
  16  norm          9.6908        5.5916        .59160E-06   -.91966E-04
  17  Prefactor     25.613        11.958       -.20090E-05    .11145E-04
  18  Prefactor     .10000E-03    8.4069        .43425E-07** at limit **
  19  Prefactor     .10000E-03    24.082       -.30575E-05** at limit **
  20  Prefactor     5.3749        5.9906        .11763E-06   -.17350E-03
  21  norm          .97528        3.1620       -.11369E-05   -.11096E-02
  22  norm          .10000E-03    1.1116       -.45789E-08** at limit **
  23  norm          .10000E-03    6.5899       -.28831E-05** at limit **
  24  Normalizat    1.4470        .17736        .19122E-06    .23377E-03
  25  Prefactor     .62838        .18157        .41160E-06    .10260E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.7488
  Prefactor  = 0.0001
  Prefactor  = 1.23213
  Prefactor  = 0.0001
  norm       = 0.373003
  Prefactor  = 0.0001
  Prefactor  = 54.0777
  Prefactor  = 0.266733
  Prefactor  = 0.0001
  norm       = 3.60078
  Prefactor  = 0.0001
  Prefactor  = 1.53494
  Prefactor  = 0.0443492
  Prefactor  = 4.6065
  norm       = 0.206805
  norm       = 9.69079
  Prefactor  = 25.6127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.37491
  norm       = 0.975279
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.44696
  Prefactor  = 0.628379
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.094     FROM HESSE     STATUS=OK           437 CALLS     3435 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.749        18.475        .70058E-04   -1.4563    
   2  Prefactor     .10000E-03    11.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2321        1.2066        .82760E-04   -1.5486    
   4  Prefactor     .10000E-03    6.4241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .37300        .66241        .42961E-04   -1.5586    
   6  Prefactor     .10000E-03    1.2855        .87129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.078        29.033        .54571E-04   -1.4236    
   8  Prefactor     .26673        4.3660        .21174E-02   -1.5605    
   9  Prefactor     .10000E-03    2.5322        .24184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6008        2.6532        .10043E-03   -1.5328    
  11  Prefactor     .10000E-03    1.6685        .99681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5349        1.5745        .92227E-04   -1.5460    
  13  Prefactor     .44349E-01    16.880        .14245E-02   -1.5666    
  14  Prefactor     4.6065        5.0158        .17409E-03   -1.5279    
  15  norm          .20680        .19925        .34309E-03   -1.5617    
  16  norm          9.6908        5.5767        .12879E-03   -1.5085    
  17  Prefactor     25.613        12.003        .79164E-04   -1.4695    
  18  Prefactor     .10000E-03    8.4118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.089        .19961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3749        5.9801        .17354E-03   -1.5244    
  21  norm          .97528        3.1130        .24585E-03   -1.5510    
  22  norm          .10000E-03    1.9598        .16206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.5926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4470        .20367        .21464E-03   -.79280    
  25  Prefactor     .62838        .20863        .32984E-03   -1.0640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02296e-08
Minuit parameter uncertainties:
  1  18.4784
  2  2.34302e-05
  3  1.20665
  4  4.89604e-05
  5  0.66242
  6  5.73359e-06
  7  29.0405
  8  2.15807
  9  2.63939e-05
  10  2.65331
  11  1.00791e-05
  12  1.57456
  13  1.729
  14  5.01625
  15  0.199249
  16  5.57695
  17  12.004
  18  5.12438e-07
  19  9.29578e-06
  20  5.98074
  21  3.11351
  22  5.2005e-06
  23  3.30408e-07
  24  0.203784
  25  0.208885
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  4.606e+00  5.016e+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:  6.284e-01  2.089e-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.447e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.94e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/579329/likelihoodResults_345340801_345600001_4FGL_J1224.4+2436_daily_bin409.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): 0
logL (Free Index) = 6248.0767722
delta logL = 0.0172611813414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6248.06897618
delta logL = 0.0250572022587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9051       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1290       1.0000          .0000       10.000    
     3 'Normalizat'    1.4402       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63229       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=   6248.069     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      289 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9048        6.2164        .15434E-03    .24102E-03
   2  Index         2.1286        1.0800        .98497E-02    .30641E-04
   3  Normalizat    1.4401        .20007        .21503E-03   -.13309E-03
   4  Prefactor     .63232        .20870        .32887E-03   -.13274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.90477
  Index      = 2.12857
  Normalizat = 1.44014
  Prefactor  = 0.632317
 **********
 **   18 **HESSE 
 **********

 FCN=   6248.069     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9048        5.5516        .61736E-05   -1.5313    
   2  Index         2.1286        .96517        .39399E-03   -.61173    
   3  Normalizat    1.4401        .19898        .43006E-04   -.79475    
   4  Prefactor     .63232        .20827        .13155E-04   -1.0624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70945e-11
Minuit parameter uncertainties:
  1  5.55235
  2  0.97434
  3  0.199085
  4  0.208526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579329': 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) = 6248.06897585
delta logL = 0.0250575334449

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.905e+00  5.552e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.129e+00  9.743e-01  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:  6.323e-01  2.085e-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.440e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 186.116 24.614
Photon Index (Free Index): 2.13 +/- 0.97
Photon Flux (Free Index): 2.53e-08 +/- 3.93e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/579329/cmap_HighResolution_345340801_345600001_4FGL_J1224.4+2436_daily_bin409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', comment='SUCCESS', photon_flux='1.94e-08', energy_flux2='1.31e-05', photon_flux_error='2.11e-08', dlogl='2.51e-02', energy_flux='1.62e-05', photon_flux2='2.53e-08', job_status='DONE', time_completed='2021-09-05 12:36:01.006706', photon_index_error2='0.97', photon_index2='2.13', ts='1.79', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='7.44e-08', energy_flux_error2='1.73e-05', EG='1.45', time_epoch_completed='1630870561.01', return_code='0', job_id='579329', GAL2='0.63', EG2='1.44', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='3.93e-08', ts2='1.84', photon_index='1.93' WHERE bin_id='409' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:36:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 579329: <4FGL_J1224.4+2436_daily_bin409> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin409> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 12:20:56 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:20:57 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:20:57 2021
Terminated at Sun Sep  5 12:36:02 2021
Results reported at Sun Sep  5 12:36:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin409 186.116 24.6142 345340801 345600001 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 :                                   751.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            906 sec.

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

