/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 63 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 = 27232
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1358.1+7642_monthly_bin118
RA = 209.528, Dec = 76.7064
tmin = 542851201, tmax = 545443201
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='515193', job_status='RUN', time_executed='2021-10-25 11:36:16.853465', time_epoch_executed='1635186976.85' WHERE source_name='4FGL J1358.1+7642' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515193

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515193/ft1_4FGL_J1358.1+7642_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515193/ft2_4FGL_J1358.1+7642_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515193/ft1_4FGL_J1358.1+7642_monthly_bin118.fits outfile=/scratch/kocevski/515193/ft1_filteredMKT_4FGL_J1358.1+7642_monthly_bin118.fits ra=209.528 dec=76.7064 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.38
user 17.87
sys 0.45

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515193/ft1_filtered_4FGL_J1358.1+7642_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/515193/ft2_4FGL_J1358.1+7642_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/515193/ltcube_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.fits outfile=/scratch/kocevski/515193/expmap_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.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/515193/ltcube_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.fits
.....................!
real 191.61
user 186.93
sys 4.37

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/515193/ft1_filtered_4FGL_J1358.1+7642_monthly_bin118.fits scfile=/scratch/kocevski/515193/ft2_4FGL_J1358.1+7642_monthly_bin118.fits outfile=/scratch/kocevski/515193/cmap_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.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.60
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515193/ft1_filtered_4FGL_J1358.1+7642_monthly_bin118.fits scfile=/scratch/kocevski/515193/ft2_4FGL_J1358.1+7642_monthly_bin118.fits outfile=/scratch/kocevski/515193/cmap_HighResolution_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.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.63
user 0.44
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/515193/ft1_filtered_4FGL_J1358.1+7642_monthly_bin118.fits', '/scratch/kocevski/515193/ft2_4FGL_J1358.1+7642_monthly_bin118.fits', expMap='/scratch/kocevski/515193/expmap_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.fits', expCube='/scratch/kocevski/515193/ltcube_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/515193/Model_4FGL_J1358.1+7642_monthly_bin118.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/515193/ft1_filtered_4FGL_J1358.1+7642_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/515193/ft2_4FGL_J1358.1+7642_monthly_bin118.fits
Exposure map: /scratch/kocevski/515193/expmap_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.fits
Exposure cube: /scratch/kocevski/515193/ltcube_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/515193/Model_4FGL_J1358.1+7642_monthly_bin118.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) = 269.16382104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.087       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6884       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4167       1.0000         .10000E-03   10000.    
     8 'norm      '    19.964       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52887E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23713E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16722E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1961       1.0000         .10000E-03   10000.    
    24 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15771E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.727       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .39183E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1741       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=   267.4493     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     4443 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.093        134.36        .90972E-05    .22173E-03
   2  norm          2.6481        197.91       -.37159E-04    .26317E-04
   3  Prefactor     .10000E-03    68.768       -.58567E-04** at limit **
   4  Prefactor     .10000E-03    54.362        .25302E-04** at limit **
   5  Prefactor     .10000E-03    28.747       -.16679E-06** at limit **
   6  Prefactor     .10000E-03    267.84        .72449E-04** at limit **
   7  norm          5.2514        526.19       -.42902E-03    .37645E-04
   8  norm          19.974        21.405       -.17838E-05    .17949E-03
   9  Prefactor     .13901E-03    7059.8       -.74857E-01** at limit **
  10  Prefactor     .10000E-03    878.19       -.18611E-03** at limit **
  11  Prefactor     .10000E-03    42.629       -.15684E-04** at limit **
  12  Prefactor     .10000E-03    715.23       -.16474E-03** at limit **
  13  Prefactor     .10000E-03    664.92       -.10705E-03** at limit **
  14  Prefactor     .10000E-03    357.14        .14046E-03** at limit **
  15  Prefactor    10000.0        7581.0        .25373E-03** at limit **
  16  Prefactor     .10000E-03    41.020        .98807E-05** at limit **
  17  Prefactor     .10000E-03    138.22       -.62702E-04** at limit **
  18  Prefactor    10000.0        9957.3        .64039E-03** at limit **
  19  Prefactor     .10000E-03    326.12        .13008E-03** at limit **
  20  Prefactor     .10000E-03    89.431        .29781E-04** at limit **
  21  Prefactor     .10000E-03    163.15       -.84033E-04** at limit **
  22  Prefactor     .10000E-03    218.70       -.11819E-04** at limit **
  23  Prefactor     4.1253        399.78       -.14781E-03    .28326E-04
  24  norm          .10000E-03    100.73        .32039E-04** at limit **
  25  Prefactor     .10002E-03    1948.6       -.34444E-03** at limit **
  26  Prefactor     15.724        16.185       -.23980E-05    .71408E-04
  27  Prefactor     .10000E-03    91.423        .33043E-04** at limit **
  28  Prefactor     .10002E-03    951.69       -.28663E-04** at limit **
  29  Normalizat    .10000E-01    .17930        .37983E-05** at limit **
  30  Prefactor     1.1744        .38718        .43543E-04    .12548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.0928
  norm       = 2.64806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.25135
  norm       = 19.9743
  Prefactor  = 0.000139012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.12533
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 15.7237
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Normalizat = 0.01
  Prefactor  = 1.17438
 **********
 **   18 **HESSE 
 **********

 FCN=   267.4493     FROM HESSE     STATUS=OK           560 CALLS     5003 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.093        128.67        .43550E-04   -1.3860    
   2  norm          2.6481        180.84        .24849E-03   -1.5382    
   3  Prefactor     .10000E-03    68.763        .13261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.364        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.747        .85748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    267.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2514        543.97        .17266E-03   -1.5250    
   8  norm          19.974        21.423        .75960E-04   -1.4814    
   9  Prefactor     .13901E-03    7053.1        .53572E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    878.70        .19124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.630        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    715.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    664.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    357.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        7580.9        .21295E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.020        .10245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    138.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        9957.2        .20590E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    326.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    89.433        .15140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    163.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    218.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.1253        404.73        .19674E-03   -1.5302    
  24  norm          .10000E-03    100.75        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    1948.8        .20431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.724        16.204        .64287E-04   -1.4915    
  27  Prefactor     .10000E-03    91.430        .15307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    951.98        .21273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .17966        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.1744        .38840        .16521E-03   -.87124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71689e-09
Minuit parameter uncertainties:
  1  129.094
  2  43.9044
  3  9.18425e-05
  4  0.00015129
  5  3.28802e-06
  6  0.000129192
  7  107.916
  8  21.4317
  9  4.79322
  10  0.000159858
  11  7.39385e-05
  12  3.17477e-05
  13  0.000296439
  14  6.13912e-05
  15  0.00525852
  16  7.04175e-06
  17  0.000151055
  18  0.0108034
  19  1.83613e-05
  20  0.00012429
  21  9.58527e-05
  22  0.000143768
  23  82.3003
  24  0.000200744
  25  0.0118288
  26  16.2088
  27  1.98743e-05
  28  0.00945648
  29  4.99335e-06
  30  0.38935
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  1.511e-04  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.174e+00  3.893e-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:  1.000e-02  4.993e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.528 76.706
Photon Flux Upper Limit: 8.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515193/likelihoodResults_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 267.449326755
delta logL = -3.42888326372e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 267.449293205
delta logL = -7.38933636057e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20750E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6422       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1744       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=   267.4493     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      266 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10438E-03    88.501        .16011E-01** at limit **
   2  Index         2.5461        5.9968        .50000        .31146E-05
   3  Normalizat    .10000E-01    .29342E-03    .21400E-02** at limit **
   4  Prefactor     1.1744        .13406E-01    .16520E-03   -.27354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104384
  Index      = 2.54606
  Normalizat = 0.01
  Prefactor  = 1.17437
 **********
 **   18 **HESSE 
 **********

 FCN=   267.4493     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10438E-03    789.61        .16718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5461        5.9945        .50000       -.51299    
   3  Normalizat    .10000E-01    .27125E-02    .42800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1744        .40761E-01    .33041E-04   -.87124    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47721e-10
Minuit parameter uncertainties:
  1  0.119279
  2  777.463
  3  2.5374e-07
  4  0.040762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515193': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 267.449292582
delta logL = -1.1630879726e-07

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  1.044e-04  1.193e-01  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.546e+00  7.775e+02  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.174e+00  4.076e-02  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:  1.000e-02  2.537e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.528 76.706

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/515193/cmap_HighResolution_542851201_545443201_4FGL_J1358.1+7642_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-02', job_status='DONE', photon_flux_upper_limit='8.07e-07', time_completed='2021-10-25 11:44:48.995561', job_id='515193', GAL2='1.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1635187489.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='-1.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='118' AND source_name='4FGL J1358.1+7642' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 11:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 515193: <4FGL_J1358.1+7642_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1358.1+7642_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct 25 11:30:25 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 11:34:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 25 11:34:52 2021
Terminated at Mon Oct 25 11:44:49 2021
Results reported at Mon Oct 25 11:44:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_monthly_bin118 209.528 76.7064 542851201 545443201 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 :                                   493.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             253.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            864 sec.

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

