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


Performing analysis on: 4FGL_J1239.5+0443_daily_bin75
RA = 189.885, Dec = 4.7284
tmin = 258768001, tmax = 259027201
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='864475', job_status='RUN', time_executed='2021-09-06 02:58:49.268704', time_epoch_executed='1630922329.27' WHERE source_name='4FGL J1239.5+0443' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/864475

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/864475/ft1_4FGL_J1239.5+0443_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/864475/ft1_4FGL_J1239.5+0443_daily_bin75.fits outfile=/scratch/kocevski/864475/ft1_filteredMKT_4FGL_J1239.5+0443_daily_bin75.fits ra=189.885 dec=4.7284 rad=12.0 tmin=258768001.0 tmax=259027201.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.15
user 0.95
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/864475/ft1_filtered_4FGL_J1239.5+0443_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/864475/ltcube_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.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/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits
.....................!
real 14.10
user 13.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/864475/ft1_filtered_4FGL_J1239.5+0443_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/864475/ltcube_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.fits outfile=/scratch/kocevski/864475/expmap_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.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/864475/ltcube_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.fits
.....................!
real 159.59
user 154.74
sys 4.18

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/864475/ft1_filtered_4FGL_J1239.5+0443_daily_bin75.fits scfile=/scratch/kocevski/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits outfile=/scratch/kocevski/864475/cmap_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.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.95
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/864475/ft1_filtered_4FGL_J1239.5+0443_daily_bin75.fits scfile=/scratch/kocevski/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits outfile=/scratch/kocevski/864475/cmap_HighResolution_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.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.59
user 0.32
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/864475/ft1_filtered_4FGL_J1239.5+0443_daily_bin75.fits', '/scratch/kocevski/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits', expMap='/scratch/kocevski/864475/expmap_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.fits', expCube='/scratch/kocevski/864475/ltcube_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/864475/Model_4FGL_J1239.5+0443_daily_bin75.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/864475/ft1_filtered_4FGL_J1239.5+0443_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/864475/ft2_4FGL_J1239.5+0443_daily_bin75.fits
Exposure map: /scratch/kocevski/864475/expmap_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.fits
Exposure cube: /scratch/kocevski/864475/ltcube_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/864475/Model_4FGL_J1239.5+0443_daily_bin75.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) = 4727.1789659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10874E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2985       1.0000         .10000E-03   10000.    
    10 'norm      '    7.1505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5593       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2088       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.815       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .76499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36922E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .53474E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0561       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4381       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82194       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4727.163     FROM MIGRAD    STATUS=CONVERGED   1451 CALLS     4764 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    266.03        .18142E-02** at limit **
   2  Prefactor     10.524        12.193        .12350E-03   -.23935E-05
   3  Prefactor     .10000E-03    10.937        .18142E-02** at limit **
   4  Prefactor     .10000E-03    69.843        .18142E-02** at limit **
   5  Prefactor     .10000E-03    45.922        .18142E-02** at limit **
   6  Prefactor     13.506        28.412        .10900E-03   -.24719E-04
   7  Prefactor     .10000E-03    22.464        .18142E-02** at limit **
   8  Prefactor     .10000E-03    5.7001        .16017E-02** at limit **
   9  norm          4.2990        2.9594        .94525E-04   -.27542E-04
  10  norm          7.1519        5.0303        .11839E-03   -.14702E-03
  11  Prefactor     .10000E-03    22.228        .18142E-02** at limit **
  12  norm          .10000E-03    39.239        .18142E-02** at limit **
  13  Prefactor     .10002E-03    196.46        .18142E-02** at limit **
  14  norm          3.5595        .91865        .30629E-04   -.63100E-03
  15  Prefactor     5.2097        8.5084        .88065E-03   -.12176E-03
  16  Prefactor     32.811        32.912        .69950E-04   -.73137E-05
  17  Prefactor     .10000E-03    16.050        .18142E-02** at limit **
  18  norm          .76620        1.2050        .10418E-02    .10186E-02
  19  Prefactor     .10000E-03    19.820        .36285E-03** at limit **
  20  Prefactor     .10000E-03    13.420        .18142E-02** at limit **
  21  Prefactor     .10813E-03    87.680        .15384    ** at limit **
  22  Prefactor     .10000E-03    22.555        .18142E-02** at limit **
  23  norm          .10000E-03    10.727        .18142E-02** at limit **
  24  Prefactor     .13521        14.472        .63765E-01   -.12063E-03
  25  norm          1.0557        .38052        .22097E-04   -.50315E-02
  26  Prefactor     .10000E-03    4.9869        .14987E-02** at limit **
  27  Prefactor     .10000E-03    51.269        .18142E-02** at limit **
  28  Prefactor     .10000E-03    17.760        .18142E-02** at limit **
  29  Prefactor     .10000E-03    7.1354        .17900E-02** at limit **
  30  Normalizat    1.4377        .30765        .27117E-03   -.40544E-03
  31  Prefactor     .82198        .23662        .27961E-03   -.16438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.5239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.29901
  norm       = 7.15194
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100016
  norm       = 3.55951
  Prefactor  = 5.20972
  Prefactor  = 32.8115
  Prefactor  = 0.0001
  norm       = 0.766196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000108131
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.135208
  norm       = 1.05571
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43772
  Prefactor  = 0.821983
 **********
 **   18 **HESSE 
 **********

 FCN=   4727.163     FROM HESSE     STATUS=OK           612 CALLS     5376 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    266.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.524        12.193        .49399E-05   -1.5059    
   3  Prefactor     .10000E-03    10.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    69.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.506        28.413        .43599E-05   -1.4973    
   7  Prefactor     .10000E-03    22.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7003        .32034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2990        2.9593        .37810E-05   -1.5293    
  10  norm          7.1519        5.0298        .47355E-05   -1.5173    
  11  Prefactor     .10000E-03    22.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    39.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    196.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5595        .91856        .12251E-05   -1.5331    
  15  Prefactor     5.2097        8.5067        .35226E-04   -1.5251    
  16  Prefactor     32.811        32.911        .27980E-05   -1.4562    
  17  Prefactor     .10000E-03    16.060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .76620        1.2043        .41671E-04   -1.5533    
  19  Prefactor     .10000E-03    19.821        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10813E-03    89.213        .15218       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.727        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .13521        12.638        .69992E-01   -1.5634    
  25  norm          1.0557        .38066        .44193E-05   -1.5502    
  26  Prefactor     .10000E-03    4.9870        .29974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    51.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.1365        .35800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4377        .30778        .54233E-04   -.79544    
  31  Prefactor     .82198        .23687        .11185E-04   -.98923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48186e-09
Minuit parameter uncertainties:
  1  0.000546037
  2  12.1958
  3  3.07006e-05
  4  6.40103e-05
  5  0.000171707
  6  28.4409
  7  3.72739e-05
  8  5.32224e-06
  9  2.95943
  10  5.03014
  11  3.01073e-05
  12  0.000174759
  13  0.00351234
  14  0.918568
  15  8.50869
  16  32.929
  17  2.44465e-05
  18  1.20431
  19  3.6297e-05
  20  3.30324e-05
  21  0.0539462
  22  4.15216e-06
  23  3.50818e-05
  24  2.61396
  25  0.380661
  26  2.25473e-06
  27  0.000344875
  28  1.39398e-05
  29  3.32333e-06
  30  0.30818
  31  0.237165
Done.

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

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  7.662e-01  1.204e+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:  8.220e-01  2.372e-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.438e+00  3.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 189.885 4.728
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/864475/likelihoodResults_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.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) = 4727.1534753
delta logL = 0.00948962338589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4727.15210191
delta logL = 0.0108630129635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69863       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9821       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81947       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=   4727.152     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      218 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .70067        4.2891        .21213E-01    .49773E-03
   2  alpha         1.9810        3.4866        .42327       -.22541E-04
   3  Normalizat    1.4432        .24469        .61223E-01   -.68271E-05
   4  Prefactor     .81936        .19999        .63307E-01    .36542E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.700669
  alpha      = 1.98105
  Normalizat = 1.44318
  Prefactor  = 0.819355
 **********
 **   18 **HESSE 
 **********

 FCN=   4727.152     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .70067        1.2578        .10379E-02   -1.5541    
   2  alpha         1.9810        1.5085        .32258E-01   -.20910    
   3  Normalizat    1.4432        .29112        .27077E-03   -.79388    
   4  Prefactor     .81936        .23453        .28001E-03   -.99019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25781e-09
Minuit parameter uncertainties:
  1  1.25789
  2  1.62565
  3  0.291461
  4  0.234813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/864475': 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) = 4727.1520992
delta logL = 0.0108657202782

Extracting fit parameters...

4FGL J1239.5+0443
   Spectrum: LogParabola
294         norm:  7.007e-01  1.258e+00  1.000e-04  1.000e+04 ( 1.000e-11)
295        alpha:  1.981e+00  1.626e+00  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:  8.194e-01  2.348e-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.443e+00  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
Ra Dec: 189.885 4.728

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/864475/cmap_HighResolution_258768001_259027201_4FGL_J1239.5+0443_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-05', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-06 03:10:16.000267', job_id='864475', GAL2='0.82', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630923016.0', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.09e-02', ts2='0.63', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='75' AND source_name='4FGL J1239.5+0443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 03:10:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 864475: <4FGL_J1239.5+0443_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1239.5+0443_daily_bin75 189.885 4.7284 258768001 259027201 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 :                                   680.61 sec.
    Max Memory :                                 1027 MB
    Average Memory :                             304.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            862 sec.

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

