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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin79
RA = 186.116, Dec = 24.6142
tmin = 259804801, tmax = 260064001
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='577389', job_status='RUN', time_executed='2021-09-05 12:16:32.822917', time_epoch_executed='1630869392.82' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577389/ft1_4FGL_J1224.4+2436_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577389/ft2_4FGL_J1224.4+2436_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577389/ft1_4FGL_J1224.4+2436_daily_bin79.fits outfile=/scratch/kocevski/577389/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin79.fits ra=186.116 dec=24.6142 rad=12.0 tmin=259804801.0 tmax=260064001.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 2.68
user 2.48
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577389/ft1_filtered_4FGL_J1224.4+2436_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/577389/ft2_4FGL_J1224.4+2436_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/577389/ltcube_259804801_260064001_4FGL_J1224.4+2436_daily_bin79.fits outfile=/scratch/kocevski/577389/expmap_259804801_260064001_4FGL_J1224.4+2436_daily_bin79.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/577389/ltcube_259804801_260064001_4FGL_J1224.4+2436_daily_bin79.fits
.....................!
real 191.09
user 185.56
sys 5.16

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/577389/ft1_filtered_4FGL_J1224.4+2436_daily_bin79.fits scfile=/scratch/kocevski/577389/ft2_4FGL_J1224.4+2436_daily_bin79.fits outfile=/scratch/kocevski/577389/cmap_259804801_260064001_4FGL_J1224.4+2436_daily_bin79.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.68
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20147E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.4754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .55641       1.0000         .10000E-03   10000.    
    10 'norm      '    2.6107       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8441       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .34887       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.344       1.0000         .10000E-03   10000.    
    21 'norm      '    6.7944       1.0000         .10000E-03   10000.    
    22 'norm      '    7.6923       1.0000         .10000E-03   10000.    
    23 'norm      '    18.247       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90872       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3489       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=   8319.051     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2610 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10294E-03    7.0849        .36032E-07** at limit **
   2  Prefactor     .62415E-01    7.3491       -.18529E-06    .26092E-03
   3  Prefactor     2.1474        1.6852       -.10480E-07   -.75807E-03
   4  Prefactor     .10000E-03    68.133        .12991E-07** at limit **
   5  norm          3.4751        1.2152       -.39242E-08   -.88601E-03
   6  Prefactor     .10000E-03    3.8823        .15348E-07** at limit **
   7  Prefactor     .10000E-03    13.249        .45145E-08** at limit **
   8  Prefactor     1.1237        2.5668       -.29098E-07   -.99301E-05
   9  Prefactor     .55722        2.3919       -.12072E-06   -.26398E-04
  10  norm          2.6105        2.2772       -.36989E-09   -.13462E-03
  11  Prefactor     7.2761        6.0279       -.34428E-07    .30291E-03
  12  Prefactor     2.7617        2.2482       -.13774E-07    .49347E-06
  13  Prefactor     3.8435        2.0181       -.31203E-08   -.12974E-03
  14  Prefactor     .10000E-03    2.3332       -.25533E-07** at limit **
  15  norm          .34883        .17686       -.29599E-08    .20453E-03
  16  norm          .10000E-03    1.5069        .68612E-08** at limit **
  17  Prefactor     7.7226        6.8072       -.10903E-06    .13578E-02
  18  Prefactor     .10000E-03    7.5995        .13467E-07** at limit **
  19  Prefactor     .10000E-03    83.796        .23409E-06** at limit **
  20  Prefactor     11.340        8.0246        .51596E-08   -.64199E-03
  21  norm          6.7908        2.1379       -.37347E-06   -.97816E-03
  22  norm          7.6913        3.9694       -.74942E-08   -.34779E-03
  23  norm          18.246        15.404       -.11342E-06    .62374E-03
  24  Normalizat    .90893        .16837        .26552E-06   -.29470E-03
  25  Prefactor     1.3489        .18165        .89323E-08   -.22187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102943
  Prefactor  = 0.0624152
  Prefactor  = 2.14737
  Prefactor  = 0.000100001
  norm       = 3.47509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12365
  Prefactor  = 0.557224
  norm       = 2.6105
  Prefactor  = 7.27609
  Prefactor  = 2.76166
  Prefactor  = 3.84349
  Prefactor  = 0.0001
  norm       = 0.348832
  norm       = 0.0001
  Prefactor  = 7.72263
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 11.3403
  norm       = 6.79081
  norm       = 7.6913
  norm       = 18.2455
  Normalizat = 0.90893
  Prefactor  = 1.34885
 **********
 **   18 **HESSE 
 **********

 FCN=   8319.051     FROM HESSE     STATUS=OK           449 CALLS     3059 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10294E-03    13.803        .79293E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .62415E-01    13.723        .67086E-01   -1.5658    
   3  Prefactor     2.1474        1.6789        .99192E-04   -1.5415    
   4  Prefactor     .10000E-03    69.828        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4751        1.2161        .56892E-04   -1.5335    
   6  Prefactor     .10000E-03    4.0392        .34945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1237        2.3158        .17276E-03   -1.5496    
   9  Prefactor     .55722        3.7551        .21978E-02   -1.5559    
  10  norm          2.6105        2.2749        .11886E-03   -1.5385    
  11  Prefactor     7.2761        6.0331        .14869E-03   -1.5168    
  12  Prefactor     2.7617        2.2372        .11406E-03   -1.5376    
  13  Prefactor     3.8435        2.0155        .88637E-04   -1.5316    
  14  Prefactor     .10000E-03    4.9816        .26992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .34883        .17509        .26123E-04   -1.5590    
  16  norm          .10000E-03    1.5182        .10925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7226        6.7895        .14429E-03   -1.5152    
  18  Prefactor     .10000E-03    7.6140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    84.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.340        8.0388        .11895E-03   -1.5034    
  21  norm          6.7908        5.6411        .76965E-03   -1.5187    
  22  norm          7.6913        3.9711        .12458E-03   -1.5153    
  23  norm          18.246        15.386        .93763E-04   -1.4853    
  24  Normalizat    .90893        .20002        .28062E-03   -.96147    
  25  Prefactor     1.3489        .21431        .26346E-03   -.81866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56159e-08
Minuit parameter uncertainties:
  1  0.0127492
  2  1.84993
  3  1.67896
  4  0.000402561
  5  1.2161
  6  2.39571e-05
  7  2.81982e-05
  8  2.31601
  9  2.89305
  10  2.275
  11  6.03362
  12  2.23731
  13  2.01552
  14  3.98036e-05
  15  0.175091
  16  9.04274e-06
  17  6.79017
  18  3.43042e-05
  19  0.00117268
  20  8.03958
  21  5.64156
  22  3.97119
  23  15.3893
  24  0.200185
  25  0.214448
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  3.980e-05  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.349e+00  2.144e-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:  9.089e-01  2.002e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577389/likelihoodResults_259804801_260064001_4FGL_J1224.4+2436_daily_bin79.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) = 8319.05154117
delta logL = -0.000954134507992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8319.05058791
delta logL = -8.7424996309e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9216       1.0000          .0000       10.000    
     3 'Normalizat'    .90911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8319.051     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .78965E-01    .50048E-01** at limit **
   2  Index         1.9187        5.8274        .50000        .41734E-05
   3  Normalizat    .90893        .74479E-03    .45018E-01    .60241E-04
   4  Prefactor     1.3489        .83556E-03    .59577E-01    .48685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91869
  Normalizat = 0.908932
  Prefactor  = 1.34885
 **********
 **   18 **HESSE 
 **********

 FCN=   8319.051     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      262 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.946        .27052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9187        5.9585        .50000       -.66399    
   3  Normalizat    .90893        .67464E-02    .28062E-03   -.96147    
   4  Prefactor     1.3489        .75681E-02    .26346E-03   -.81866    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.90841e-09
Minuit parameter uncertainties:
  1  5.71176e-05
  2  77.8983
  3  0.0067464
  4  0.00756808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577389': 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) = 8319.05058702
delta logL = 7.36872607376e-09

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  5.712e-05  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.919e+00  7.790e+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:  1.349e+00  7.568e-03  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:  9.089e-01  6.746e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/577389/cmap_HighResolution_259804801_260064001_4FGL_J1224.4+2436_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-03', job_status='DONE', photon_flux_upper_limit='4.05e-08', time_completed='2021-09-05 12:30:40.181383', job_id='577389', GAL2='1.35', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630870240.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='7.37e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='79' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 577389: <4FGL_J1224.4+2436_daily_bin79> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin79> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:50 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:52 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:52 2021
Terminated at Sun Sep  5 12:30:40 2021
Results reported at Sun Sep  5 12:30:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin79 186.116 24.6142 259804801 260064001 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 :                                   840.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             307.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

