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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin32
RA = 186.116, Dec = 24.6142
tmin = 247622401, tmax = 247881601
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='577298', job_status='RUN', time_executed='2021-09-05 12:18:36.927850', time_epoch_executed='1630869516.93' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577298

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577298/ft1_4FGL_J1224.4+2436_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577298/ft1_4FGL_J1224.4+2436_daily_bin32.fits outfile=/scratch/kocevski/577298/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin32.fits ra=186.116 dec=24.6142 rad=12.0 tmin=247622401.0 tmax=247881601.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 1.42
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.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/577298/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/577298/ft1_filtered_4FGL_J1224.4+2436_daily_bin32.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.51
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577298/ft1_filtered_4FGL_J1224.4+2436_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/577298/ltcube_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.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/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits
.....................!
real 12.64
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577298/ft1_filtered_4FGL_J1224.4+2436_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/577298/ltcube_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.fits outfile=/scratch/kocevski/577298/expmap_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.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/577298/ltcube_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.fits
.....................!
real 191.68
user 185.99
sys 5.31

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/577298/ft1_filtered_4FGL_J1224.4+2436_daily_bin32.fits scfile=/scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits outfile=/scratch/kocevski/577298/cmap_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.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.78
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577298/ft1_filtered_4FGL_J1224.4+2436_daily_bin32.fits scfile=/scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits outfile=/scratch/kocevski/577298/cmap_HighResolution_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.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.82
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/577298/ft1_filtered_4FGL_J1224.4+2436_daily_bin32.fits', '/scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits', expMap='/scratch/kocevski/577298/expmap_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.fits', expCube='/scratch/kocevski/577298/ltcube_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/577298/Model_4FGL_J1224.4+2436_daily_bin32.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/577298/ft1_filtered_4FGL_J1224.4+2436_daily_bin32.fits
Spacecraft file(s): /scratch/kocevski/577298/ft2_4FGL_J1224.4+2436_daily_bin32.fits
Exposure map: /scratch/kocevski/577298/expmap_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.fits
Exposure cube: /scratch/kocevski/577298/ltcube_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/577298/Model_4FGL_J1224.4+2436_daily_bin32.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8811.00566445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11852       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1399       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17236       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7135       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7725       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15928E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.616       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.401       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.739       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10528E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3536       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6430       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .55531       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=   8810.968     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2591 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36589        9.9120        .43654E-06   -.29110E-03
   2  Prefactor     5.1405        6.6272        .35305E-05    .36623E-03
   3  Prefactor     .17130        .82156        .88226E-06   -.22344E-02
   4  Prefactor     .10000E-03    13.852       -.44186E-06** at limit **
   5  norm          2.8721        1.2003        .98839E-07   -.35691E-03
   6  Prefactor     .10000E-03    2.4040       -.67229E-06** at limit **
   7  Prefactor     .10000E-03    10.734       -.20565E-06** at limit **
   8  Prefactor     3.7148        2.2918        .10289E-06    .15709E-03
   9  Prefactor     .10000E-03    1.1687       -.19231E-06** at limit **
  10  norm          4.7737        2.3475        .25974E-07    .19370E-03
  11  Prefactor     .10000E-03    2.7539       -.15004E-06** at limit **
  12  Prefactor     .10000E-03    1.0166       -.17444E-06** at limit **
  13  Prefactor     4.4777        2.0040        .81820E-07    .79563E-04
  14  Prefactor     10.616        4.6856       -.12083E-06   -.31791E-04
  15  norm          .10000E-03    .53875E-01   -.16355E-06** at limit **
  16  norm          .10000E-03    1.2385       -.67680E-07** at limit **
  17  Prefactor     24.395        10.320        .15701E-06    .10424E-03
  18  Prefactor     14.977        24.465        .53735E-06    .73998E-04
  19  Prefactor     14.878        62.277       -.44990E-06    .41423E-04
  20  Prefactor     .10000E-03    3.4610       -.42328E-06** at limit **
  21  norm          .10000E-03    3.7641        .53581E-05** at limit **
  22  norm          .10000E-03    1.9914       -.32723E-06** at limit **
  23  norm          4.3539        9.3554        .22019E-06    .14491E-04
  24  Normalizat    1.6427        .16933       -.32523E-05    .94267E-04
  25  Prefactor     .55535        .17098        .53312E-05   -.92977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.365887
  Prefactor  = 5.14052
  Prefactor  = 0.171297
  Prefactor  = 0.0001
  norm       = 2.87206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.71483
  Prefactor  = 0.0001
  norm       = 4.77373
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.47765
  Prefactor  = 10.6161
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 24.3946
  Prefactor  = 14.9771
  Prefactor  = 14.8779
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.35388
  Normalizat = 1.64265
  Prefactor  = 0.555349
 **********
 **   18 **HESSE 
 **********

 FCN=   8810.968     FROM HESSE     STATUS=OK           435 CALLS     3026 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36589        81.705        .53912E-02   -1.5587    
   2  Prefactor     5.1405        6.6733        .88665E-03   -1.5254    
   3  Prefactor     .17130        2.7960        .14893E-02   -1.5625    
   4  Prefactor     .10000E-03    13.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8721        1.1950        .63083E-04   -1.5369    
   6  Prefactor     .10000E-03    2.4788        .28417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7148        2.2845        .10618E-03   -1.5322    
   9  Prefactor     .10000E-03    1.1933        .19772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7737        2.2508        .93018E-04   -1.5271    
  11  Prefactor     .10000E-03    2.7688        .15211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8217        .17315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4777        1.9885        .83900E-04   -1.5285    
  14  Prefactor     10.616        4.6836        .61486E-03   -1.5056    
  15  norm          .10000E-03    .63978E-01    .42080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2451        .10196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.395        10.303        .81092E-04   -1.4720    
  18  Prefactor     14.977        24.440        .10347E-03   -1.4934    
  19  Prefactor     14.878        61.568        .10433E-03   -1.4936    
  20  Prefactor     .10000E-03    3.5069        .17050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.8801        .35571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0634        .25857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.3539        9.3394        .19304E-03   -1.5291    
  24  Normalizat    1.6427        .18735        .21651E-03   -.73845    
  25  Prefactor     .55535        .18896        .36381E-03   -1.0950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88916e-09
Minuit parameter uncertainties:
  1  10.9489
  2  6.67428
  3  1.3838
  4  2.43514e-05
  5  1.19499
  6  2.61542e-05
  7  1.66435e-06
  8  2.28455
  9  4.01902e-06
  10  2.25081
  11  1.81866e-06
  12  0.000147533
  13  1.98851
  14  4.68378
  15  3.37507e-07
  16  9.10594e-08
  17  10.3041
  18  24.4562
  19  60.6387
  20  7.5775e-06
  21  8.7955e-05
  22  3.40898e-06
  23  9.3425
  24  0.187428
  25  0.18918
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.062e+01  4.684e+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:  5.553e-01  1.892e-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.643e+00  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.90
Ra Dec: 186.116 24.614
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 4.46e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 3.74e-05 +/- 1.65e-05

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) = 8810.90337012
delta logL = 0.0646411378893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8810.8815241
delta logL = 0.086487159735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.949       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7907       1.0000          .0000       10.000    
     3 'Normalizat'    1.6493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55147       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8810.882     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.951        6.1131        .57943E-03    .33394E-04
   2  Index         1.7907        .32339        .56527E-02    .27208E-04
   3  Normalizat    1.6492        .18198        .21618E-03    .71837E-04
   4  Prefactor     .55152        .18840        .36499E-03    .90951E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9514
  Index      = 1.79067
  Normalizat = 1.64924
  Prefactor  = 0.551521
 **********
 **   18 **HESSE 
 **********

 FCN=   8810.882     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.951        6.0040        .23177E-04   -1.5016    
   2  Index         1.7907        .31758        .22611E-03   -.69693    
   3  Normalizat    1.6492        .18206        .86471E-05   -.73667    
   4  Prefactor     .55152        .18851        .14600E-04   -1.0967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.75438e-12
Minuit parameter uncertainties:
  1  6.00428
  2  0.317945
  3  0.182133
  4  0.188724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577298': 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) = 8810.88152399
delta logL = 0.0864872705661

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.195e+01  6.004e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.791e+00  3.179e-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:  5.515e-01  1.887e-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.649e+00  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.07
Ra Dec: 186.116 24.614
Photon Index (Free Index): 1.79 +/- 0.32
Photon Flux (Free Index): 3.87e-08 +/- 2.22e-08
Energy Flux (Free Index): 4.76e-05 +/- 3.56e-05

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/577298/cmap_HighResolution_247622401_247881601_4FGL_J1224.4+2436_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.46e-08', energy_flux2='4.76e-05', photon_flux_error='1.97e-08', dlogl='8.65e-02', energy_flux='3.74e-05', photon_flux2='3.87e-08', job_status='DONE', time_completed='2021-09-05 12:31:24.077017', photon_index_error2='0.32', photon_index2='1.79', ts='19.90', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='3.56e-05', EG='1.64', time_epoch_completed='1630870284.08', return_code='0', job_id='577298', GAL2='0.55', EG2='1.65', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.22e-08', ts2='20.07', photon_index='1.93' WHERE bin_id='32' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 577298: <4FGL_J1224.4+2436_daily_bin32> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin32 186.116 24.6142 247622401 247881601 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 :                                   762.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

