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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin250
RA = 189.885, Dec = 4.7284
tmin = 304128001, tmax = 304387201
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='867721', job_status='RUN', time_executed='2021-09-06 03:08:16.009271', time_epoch_executed='1630922896.01' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/867721

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/867721/ft1_4FGL_J1239.5+0443_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/867721/ft1_4FGL_J1239.5+0443_daily_bin250.fits outfile=/scratch/kocevski/867721/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin250.fits ra=189.885 dec=4.7284 rad=12.0 tmin=304128001.0 tmax=304387201.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.71
user 3.23
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.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/867721/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin250.fits evtable="EVENTS" outfile="/scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.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.55
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/867721/ltcube_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.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/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits
.....................!
real 14.34
user 13.82
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/867721/ltcube_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.fits outfile=/scratch/kocevski/867721/expmap_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.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/867721/ltcube_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.fits
.....................!
real 193.80
user 186.63
sys 5.19

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 172 point sources and 0 extended sources

Setting source of interest to:
4FGL J1239.5+0443 @ 189.885 4.7284

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits scfile=/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits outfile=/scratch/kocevski/867721/cmap_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.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=189.885 yref=4.7284 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.77
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits scfile=/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits outfile=/scratch/kocevski/867721/cmap_HighResolution_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.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=189.885 yref=4.7284 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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/867721/Model_4FGL_J1239.5+0443_daily_bin250.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/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits.....................!
real 53.86
user 52.28
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits', '/scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits', expMap='/scratch/kocevski/867721/expmap_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.fits', expCube='/scratch/kocevski/867721/ltcube_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/867721/Model_4FGL_J1239.5+0443_daily_bin250.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1239.5+0443'

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  4.221e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/867721/ft1_filtered_4FGL_J1239.5+0443_daily_bin250.fits
Spacecraft file(s): /scratch/kocevski/867721/ft2_4FGL_J1239.5+0443_daily_bin250.fits
Exposure map: /scratch/kocevski/867721/expmap_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.fits
Exposure cube: /scratch/kocevski/867721/ltcube_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/867721/Model_4FGL_J1239.5+0443_daily_bin250.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) = 6013.42931725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2446       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    99.206       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.020       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.6353       1.0000         .10000E-03   10000.    
    10 'norm      '    .11725E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.490       1.0000         .10000E-03   10000.    
    14 'norm      '    4.2869       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3811       1.0000         .10000E-03   10000.    
    18 'norm      '    7.5887       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12231E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.960       1.0000         .10000E-03   10000.    
    21 'Prefactor '    91.659       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    59.012       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .29707       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5103       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .62744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6013.427     FROM MIGRAD    STATUS=CONVERGED    817 CALLS     4921 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.090        180.54       -.78169E-05   -.29837E-04
   2  Prefactor     6.2454        7.1890       -.17994E-06   -.46846E-04
   3  Prefactor     .10000E-03    8.7258        .78401E-06** at limit **
   4  Prefactor     99.200        79.096       -.38228E-06   -.54201E-06
   5  Prefactor     32.643        54.077       -.20199E-05   -.36986E-04
   6  Prefactor     .10000E-03    7.1918        .13064E-06** at limit **
   7  Prefactor     54.017        41.886       -.32643E-07   -.14234E-04
   8  Prefactor     .10000E-03    4.6352        .13534E-06** at limit **
   9  norm          1.6354        1.7271       -.22405E-07   -.43439E-04
  10  norm          .10000E-03    3.1199        .10013E-06** at limit **
  11  Prefactor     .10000E-03    9.0326       -.33491E-08** at limit **
  12  norm          .10000E-03    22.172        .12448E-07** at limit **
  13  Prefactor     72.489        90.806        .16217E-06   -.12104E-05
  14  norm          4.2869        .91625       -.84220E-07   -.16173E-03
  15  Prefactor     .10000E-03    2.9438        .10650E-06** at limit **
  16  Prefactor     .10000E-03    7.4718        .16174E-06** at limit **
  17  Prefactor     9.3789        11.507        .24211E-05    .30248E-03
  18  norm          7.5887        2.2943       -.31568E-07    .28032E-04
  19  Prefactor     .10000E-03    12.614        .16818E-05** at limit **
  20  Prefactor     12.767        48.185       -.11220E-05    .59048E-06
  21  Prefactor     91.659        69.866       -.98833E-06   -.19222E-04
  22  Prefactor     .10000E-03    30.090        .44934E-06** at limit **
  23  norm          59.009        37.103       -.22304E-06   -.19908E-04
  24  Prefactor     .10000E-03    5.6752        .40449E-06** at limit **
  25  norm          .29693        .28162        .64279E-07    .62348E-03
  26  Prefactor     .10000E-03    9.8804        .54264E-06** at limit **
  27  Prefactor     .10000E-03    64.185        .62441E-06** at limit **
  28  Prefactor     .10000E-03    6.8230        .15211E-06** at limit **
  29  Prefactor     .10000E-03    3.2178        .10118E-06** at limit **
  30  Normalizat    1.5106        .26605        .57487E-05   -.20428E-03
  31  Prefactor     .62727        .20259       -.66625E-05    .13732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0898
  Prefactor  = 6.24536
  Prefactor  = 0.0001
  Prefactor  = 99.2004
  Prefactor  = 32.6431
  Prefactor  = 0.0001
  Prefactor  = 54.0172
  Prefactor  = 0.0001
  norm       = 1.63543
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 72.4889
  norm       = 4.28692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.37893
  norm       = 7.58865
  Prefactor  = 0.0001
  Prefactor  = 12.7665
  Prefactor  = 91.6589
  Prefactor  = 0.0001
  norm       = 59.0085
  Prefactor  = 0.0001
  norm       = 0.296935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.51062
  Prefactor  = 0.627266
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.427     FROM HESSE     STATUS=OK           616 CALLS     5537 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.090        184.52        .42243E-03   -1.4768    
   2  Prefactor     6.2454        7.1871        .16064E-03   -1.5208    
   3  Prefactor     .10000E-03    8.8440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     99.200        79.101        .20181E-03   -1.3713    
   5  Prefactor     32.643        53.992        .70146E-04   -1.4565    
   6  Prefactor     .10000E-03    7.1966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.017        40.521        .54573E-04   -1.4237    
   8  Prefactor     .10000E-03    4.6446        .16302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6354        1.7295        .10176E-03   -1.5452    
  10  norm          .10000E-03    5.6268        .24813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.0346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    22.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     72.489        90.771        .47153E-04   -1.4003    
  14  norm          4.2869        .89777        .30978E-04   -1.5294    
  15  Prefactor     .10000E-03    2.9490        .12994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.3789        11.789        .65423E-03   -1.5095    
  18  norm          7.5887        2.2941        .61237E-04   -1.5157    
  19  Prefactor     .10000E-03    12.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.767        48.093        .11127E-03   -1.4993    
  21  Prefactor     91.659        68.855        .41974E-04   -1.3790    
  22  Prefactor     .10000E-03    30.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          59.009        37.070        .52226E-04   -1.4170    
  24  Prefactor     .10000E-03    5.7029        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .29693        .27317        .34609E-04   -1.5599    
  26  Prefactor     .10000E-03    10.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    64.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.8277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.2212        .13586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.5106        .27484        .26121E-03   -.77480    
  31  Prefactor     .62727        .20909        .30916E-03   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78606e-10
Minuit parameter uncertainties:
  1  128.227
  2  7.18813
  3  6.47039e-05
  4  79.1854
  5  54.0731
  6  4.51061e-06
  7  40.5417
  8  4.0547e-06
  9  1.7296
  10  6.80184e-06
  11  4.22634e-07
  12  6.40156e-06
  13  90.9456
  14  0.897774
  15  2.41619e-06
  16  4.20689e-06
  17  11.7917
  18  2.29417
  19  7.01601e-05
  20  48.2395
  21  68.9154
  22  3.45814e-05
  23  37.0844
  24  1.10761e-05
  25  0.273171
  26  2.08109e-05
  27  5.37513e-05
  28  6.78152e-06
  29  3.77638e-06
  30  0.27511
  31  0.209349
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  7.589e+00  2.294e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  6.273e-01  2.093e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.511e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.19
Ra Dec: 189.885 4.728
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 5.86e-08
Energy Flux (Fixed Index): 6.80e-05 +/- 2.06e-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) = 6012.5757669
delta logL = 0.850868991779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6012.52415009
delta logL = 0.902485793796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7422       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7815       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6012.524     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7422        2.2039        .38632E-02   -.44148E-02
   2  alpha         1.7815        .28157        .20333       -.32393E-04
   3  Normalizat    1.5761        .22139        .58187E-01   -.16123E-04
   4  Prefactor     .59747        .17633        .71500E-01    .38463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.74222
  alpha      = 1.78154
  Normalizat = 1.57605
  Prefactor  = 0.597467
 **********
 **   18 **HESSE 
 **********

 FCN=   6012.524     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7422        2.4845        .62406E-04   -1.5189    
   2  alpha         1.7815        .32864        .86749E-02   -.29149    
   3  Normalizat    1.5761        .26077        .25729E-03   -.75663    
   4  Prefactor     .59747        .20647        .31650E-03   -1.0769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78403e-09
Minuit parameter uncertainties:
  1  2.48453
  2  0.329681
  3  0.26099
  4  0.206735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/867721': 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) = 6012.52415008
delta logL = 0.902485803783

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  6.742e+00  2.485e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.782e+00  3.297e-01  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.234e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  5.025e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
557    Prefactor:  5.975e-01  2.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
558        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
559        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
556   Normalization:  1.576e+00  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.14
Ra Dec: 189.885 4.728
Photon Index (Free Index): 1.78 +/- 0.33
Photon Flux (Free Index): 1.30e-07 +/- 6.00e-08
Energy Flux (Free Index): 8.31e-05 +/- 3.24e-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/867721/cmap_HighResolution_304128001_304387201_4FGL_J1239.5+0443_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='8.31e-05', photon_flux_error='5.86e-08', dlogl='9.02e-01', energy_flux='6.80e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-06 03:21:54.995622', photon_index_error2='0.33', photon_index2='1.78', ts='44.19', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='3.24e-05', EG='1.51', time_epoch_completed='1630923715.0', return_code='0', job_id='867721', GAL2='0.60', EG2='1.58', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='6.00e-08', ts2='46.14', photon_index='2.23' WHERE bin_id='250' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:21:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 867721: <4FGL_J1239.5+0443_daily_bin250> in cluster <slac> Done

Job <4FGL_J1239.5+0443_daily_bin250> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 03:05:53 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 03:05:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 03:05:55 2021
Terminated at Mon Sep  6 03:21:55 2021
Results reported at Mon Sep  6 03:21:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin250 189.885 4.7284 304128001 304387201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1239.5+0443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   818.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

