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


Performing analysis on: 4FGL_J1358.1+7642_daily_bin2
RA = 209.528, Dec = 76.7064
tmin = 239846401, tmax = 240105601
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='66613', job_status='RUN', time_executed='2021-09-08 18:01:26.244417', time_epoch_executed='1631149286.24' WHERE source_name='4FGL J1358.1+7642' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66613

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66613/ft1_4FGL_J1358.1+7642_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66613/ft1_4FGL_J1358.1+7642_daily_bin2.fits outfile=/scratch/kocevski/66613/ft1_filteredMKT_4FGL_J1358.1+7642_daily_bin2.fits ra=209.528 dec=76.7064 rad=12.0 tmin=239846401.0 tmax=240105601.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.54
user 1.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.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/66613/ft1_filteredMKT_4FGL_J1358.1+7642_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/66613/ltcube_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.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/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits
.....................!
real 12.60
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/66613/ltcube_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.fits outfile=/scratch/kocevski/66613/expmap_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.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/66613/ltcube_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.fits
.....................!
real 191.61
user 186.10
sys 5.10

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

Setting source of interest to:
4FGL J1358.1+7642 @ 209.528 76.7064

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits scfile=/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits outfile=/scratch/kocevski/66613/cmap_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.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=209.528 yref=76.7064 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits scfile=/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits outfile=/scratch/kocevski/66613/cmap_HighResolution_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.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=209.528 yref=76.7064 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/66613/Model_4FGL_J1358.1+7642_daily_bin2.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/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits.....................!
real 72.91
user 71.49
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits', '/scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits', expMap='/scratch/kocevski/66613/expmap_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.fits', expCube='/scratch/kocevski/66613/ltcube_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/66613/Model_4FGL_J1358.1+7642_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1358.1+7642'

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  5.684e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/66613/ft1_filtered_4FGL_J1358.1+7642_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/66613/ft2_4FGL_J1358.1+7642_daily_bin2.fits
Exposure map: /scratch/kocevski/66613/expmap_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.fits
Exposure cube: /scratch/kocevski/66613/ltcube_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/66613/Model_4FGL_J1358.1+7642_daily_bin2.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) = 6524.02003188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2901       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0800       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.504       1.0000         .10000E-03   10000.    
    18 'Prefactor '    151.61       1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.462       1.0000         .10000E-03   10000.    
    24 'norm      '    10.326       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77107       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0208       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6524.005     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3822 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1622        .45012E-08** at limit **
   2  norm          .10000E-03    1.0639       -.13191E-08** at limit **
   3  Prefactor     .10000E-03    2.0355       -.66608E-08** at limit **
   4  Prefactor     .10000E-03    2.6984        .13154E-07** at limit **
   5  Prefactor     .10000E-03    3.4220       -.76345E-07** at limit **
   6  Prefactor     .10000E-03    35.697       -.34803E-05** at limit **
   7  norm          .10000E-03    6.9323        .28951E-06** at limit **
   8  norm          6.8294        4.1178       -.46223E-07   -.86897E-04
   9  Prefactor     .10000E-03    21.558        .43380E-06** at limit **
  10  Prefactor     .10000E-03    22.527       -.65747E-07** at limit **
  11  Prefactor     8.2897        10.809        .77481E-07   -.45794E-05
  12  Prefactor     .10000E-03    11.515        .36374E-07** at limit **
  13  Prefactor     1.0858        8.0492        .38658E-05   -.10091E-03
  14  Prefactor     .10000E-03    7.0913       -.25359E-06** at limit **
  15  Prefactor     .10000E-03    17.020       -.15435E-05** at limit **
  16  Prefactor     .10000E-03    3.5231       -.10197E-07** at limit **
  17  Prefactor     34.506        19.373       -.27862E-08   -.96520E-05
  18  Prefactor     151.63        78.483       -.34711E-06    .93031E-05
  19  Prefactor     61.925        61.205        .11954E-06    .13067E-05
  20  Prefactor     33.071        34.368        .11508E-06   -.46209E-05
  21  Prefactor     .10000E-03    17.221       -.58822E-06** at limit **
  22  Prefactor     .10000E-03    20.982        .72071E-06** at limit **
  23  Prefactor     28.453        31.769       -.11454E-06   -.16175E-04
  24  norm          10.326        13.455        .47104E-06   -.35685E-04
  25  Prefactor     .10000E-03    151.78       -.22750E-05** at limit **
  26  Prefactor     .10000E-03    1.4656        .90278E-07** at limit **
  27  Prefactor     .10000E-03    44.980        .41672E-05** at limit **
  28  Prefactor     .10000E-03    42.324        .26785E-06** at limit **
  29  Normalizat    .77099        .16154       -.75604E-06   -.50127E-04
  30  Prefactor     1.0209        .12265        .20318E-06   -.10696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 6.82942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.28972
  Prefactor  = 0.0001
  Prefactor  = 1.08584
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 34.5057
  Prefactor  = 151.631
  Prefactor  = 61.9254
  Prefactor  = 33.071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4528
  norm       = 10.3256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.770987
  Prefactor  = 1.0209
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.005     FROM HESSE     STATUS=OK           574 CALLS     4396 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1805        .17922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0685        .81349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.0382        .11254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7209        .12957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4297        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.1372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8294        4.1221        .12122E-03   -1.5185    
   9  Prefactor     .10000E-03    21.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2897        10.808        .13924E-03   -1.5132    
  12  Prefactor     .10000E-03    11.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0858        8.4544        .43728E-03   -1.5500    
  14  Prefactor     .10000E-03    7.1116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5402        .14803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.506        19.394        .68222E-04   -1.4532    
  18  Prefactor     151.63        78.760        .16368E-03   -1.3239    
  19  Prefactor     61.925        61.211        .25496E-03   -1.4132    
  20  Prefactor     33.071        34.447        .69680E-04   -1.4557    
  21  Prefactor     .10000E-03    17.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.453        31.899        .75096E-04   -1.4641    
  24  norm          10.326        13.449        .62344E-03   -1.5065    
  25  Prefactor     .10000E-03    152.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    1.4988        .95383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    46.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    42.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77099        .18151        .28233E-03   -1.0115    
  30  Prefactor     1.0209        .13831        .19563E-03   -.92036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33053e-10
Minuit parameter uncertainties:
  1  1.91165e-06
  2  6.58228e-07
  3  7.66519e-07
  4  7.40267e-07
  5  3.74697e-06
  6  0.000319803
  7  1.06218e-05
  8  4.12223
  9  2.58806e-05
  10  2.02655e-06
  11  10.811
  12  2.15814e-07
  13  6.06064
  14  1.68036e-05
  15  0.00026319
  16  3.38071e-07
  17  19.398
  18  78.8149
  19  61.2734
  20  34.4679
  21  3.72144e-05
  22  5.3822e-05
  23  31.9182
  24  13.4528
  25  0.000438321
  26  2.30773e-06
  27  0.00027427
  28  2.90397e-05
  29  0.181654
  30  0.13836
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  3.451e+01  1.940e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.373e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.021e+00  1.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  7.710e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.96
Ra Dec: 209.528 76.706
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.63e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.08e-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) = 6523.42974814
delta logL = 0.575698145504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6523.38482009
delta logL = 0.620626201235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.008       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8413       1.0000          .0000       10.000    
     3 'Normalizat'    .79386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+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=   6523.385     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      271 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.007        25.820        .29881E-03    .20516E-03
   2  Index         1.8413        .44847        .74647E-02    .84105E-04
   3  Normalizat    .79386        .17142        .27861E-03    .34521E-04
   4  Prefactor     1.0110        .13497        .19641E-03   -.63510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.0073
  Index      = 1.84131
  Normalizat = 0.793865
  Prefactor  = 1.011
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.385     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.007        25.826        .59762E-04   -1.4365    
   2  Index         1.8413        .44848        .29859E-03   -.68379    
   3  Normalizat    .79386        .17148        .11144E-04   -1.0030    
   4  Prefactor     1.0110        .13504        .39281E-04   -.92364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74653e-10
Minuit parameter uncertainties:
  1  25.8321
  2  0.449487
  3  0.171596
  4  0.13508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66613': 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) = 6523.38482009
delta logL = 0.620626201669

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  4.501e+01  2.583e+01  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  1.841e+00  4.495e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  9.780e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.011e+00  1.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  7.939e-01  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.19
Ra Dec: 209.528 76.706
Photon Index (Free Index): 1.84 +/- 0.45
Photon Flux (Free Index): 3.55e-08 +/- 2.73e-08
Energy Flux (Free Index): 3.76e-05 +/- 3.68e-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/66613/cmap_HighResolution_239846401_240105601_4FGL_J1358.1+7642_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.63e-08', energy_flux2='3.76e-05', photon_flux_error='3.16e-08', dlogl='6.21e-01', energy_flux='1.91e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-08 18:15:54.882613', photon_index_error2='0.45', photon_index2='1.84', ts='6.96', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.68e-05', EG='0.77', time_epoch_completed='1631150154.88', return_code='0', job_id='66613', GAL2='1.01', EG2='0.79', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.73e-08', ts2='8.19', photon_index='2.37' WHERE bin_id='2' AND source_name='4FGL J1358.1+7642' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 66613: <4FGL_J1358.1+7642_daily_bin2> in cluster <slac> Done

Job <4FGL_J1358.1+7642_daily_bin2> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 18:01:13 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 18:01:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 18:01:15 2021
Terminated at Wed Sep  8 18:15:57 2021
Results reported at Wed Sep  8 18:15:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_daily_bin2 209.528 76.7064 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1358.1+7642 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   864.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            884 sec.

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

