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


Performing analysis on: 4FGL_J1358.1+7642_monthly_bin109
RA = 209.528, Dec = 76.7064
tmin = 519523201, tmax = 522115201
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='515181', job_status='RUN', time_executed='2021-10-25 11:35:32.686572', time_epoch_executed='1635186932.69' WHERE source_name='4FGL J1358.1+7642' and cadence='monthly' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515181

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

Retrieving the FT1 file...

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

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

Retrieving 448 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515181/ft1_4FGL_J1358.1+7642_monthly_bin109.fits


Retrieving the FT1 file...

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

Retrieving 448 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515181/ft2_4FGL_J1358.1+7642_monthly_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515181/ft1_4FGL_J1358.1+7642_monthly_bin109.fits outfile=/scratch/kocevski/515181/ft1_filteredMKT_4FGL_J1358.1+7642_monthly_bin109.fits ra=209.528 dec=76.7064 rad=12.0 tmin=519523201.0 tmax=522115201.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 38.26
user 37.34
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/515181/ft2_4FGL_J1358.1+7642_monthly_bin109.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/515181/ft1_filteredMKT_4FGL_J1358.1+7642_monthly_bin109.fits evtable="EVENTS" outfile="/scratch/kocevski/515181/ft1_filtered_4FGL_J1358.1+7642_monthly_bin109.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.87
user 0.65
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515181/ft1_filtered_4FGL_J1358.1+7642_monthly_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/515181/ft2_4FGL_J1358.1+7642_monthly_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/515181/ltcube_519523201_522115201_4FGL_J1358.1+7642_monthly_bin109.fits outfile=/scratch/kocevski/515181/expmap_519523201_522115201_4FGL_J1358.1+7642_monthly_bin109.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/515181/ltcube_519523201_522115201_4FGL_J1358.1+7642_monthly_bin109.fits
.....................!
real 193.56
user 188.24
sys 4.96

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/515181/ft1_filtered_4FGL_J1358.1+7642_monthly_bin109.fits scfile=/scratch/kocevski/515181/ft2_4FGL_J1358.1+7642_monthly_bin109.fits outfile=/scratch/kocevski/515181/cmap_519523201_522115201_4FGL_J1358.1+7642_monthly_bin109.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.79
user 0.61
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515181/ft1_filtered_4FGL_J1358.1+7642_monthly_bin109.fits scfile=/scratch/kocevski/515181/ft2_4FGL_J1358.1+7642_monthly_bin109.fits outfile=/scratch/kocevski/515181/cmap_HighResolution_519523201_522115201_4FGL_J1358.1+7642_monthly_bin109.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.76
user 0.60
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0255       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4230       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2774       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2055       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3763       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1586       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2619       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40524       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4886       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0754       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.505       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.398       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.636       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9582       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .58752       1.0000         .10000E-03   10000.    
    24 'norm      '    8.8974       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.358       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.1222       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.1611       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98988       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0026       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=   72038.52     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     5017 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4360        .11477E-07** at limit **
   2  norm          .10000E-03    .23181        .47833E-07** at limit **
   3  Prefactor     1.6817        1.1681       -.22576E-06   -.23129E-02
   4  Prefactor     1.0253        .93909        .30301E-08   -.18473E-04
   5  Prefactor     2.4229        2.4313       -.54699E-07   -.94272E-04
   6  Prefactor     1.2771        7.9414       -.79406E-07   -.23470E-03
   7  norm          4.2054        1.3437       -.85208E-08   -.38831E-04
   8  norm          2.3763        .80725        .14369E-08   -.98386E-04
   9  Prefactor     31.936        14.802        .56844E-05    .49938E-04
  10  Prefactor     .10000E-03    4.7564       -.26149E-07** at limit **
  11  Prefactor     2.1583        3.1345        .82899E-06   -.62092E-03
  12  Prefactor     5.2617        6.6621       -.48114E-06    .20582E-04
  13  Prefactor     .40509        .91277       -.29095E-06   -.60872E-03
  14  Prefactor     1.4885        2.7717       -.85875E-06   -.14233E-03
  15  Prefactor     .10000E-03    1.0836       -.93115E-08** at limit **
  16  Prefactor     .10000E-03    .93240       -.33267E-07** at limit **
  17  Prefactor     2.0754        2.8449        .24965E-06   -.53047E-03
  18  Prefactor     18.505        9.2954        .54623E-06    .45976E-04
  19  Prefactor     6.0470        17.675        .16578E-04    .79517E-05
  20  Prefactor     14.397        7.6215       -.23579E-05    .82241E-04
  21  Prefactor     25.635        10.425       -.15401E-07   -.29869E-05
  22  Prefactor     1.9575        12.429       -.11262E-05   -.54039E-05
  23  Prefactor     .59054        1.8359       -.10497E-05    .19032E-02
  24  norm          8.8971        4.6654        .39184E-07    .39987E-05
  25  Prefactor     10.298        29.167       -.13127E-04    .13564E-05
  26  Prefactor     4.1222        1.1317       -.38831E-07   -.30121E-04
  27  Prefactor     6.1620        10.012        .10047E-05    .11338E-04
  28  Prefactor     .10000E-03    8.0680       -.69157E-07** at limit **
  29  Normalizat    .98992        .50234E-01   -.74963E-07    .53858E-03
  30  Prefactor     1.0025        .39112E-01   -.55508E-07    .35774E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.68171
  Prefactor  = 1.02533
  Prefactor  = 2.42293
  Prefactor  = 1.27705
  norm       = 4.20545
  norm       = 2.37633
  Prefactor  = 31.936
  Prefactor  = 0.0001
  Prefactor  = 2.15834
  Prefactor  = 5.26168
  Prefactor  = 0.40509
  Prefactor  = 1.48846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.07536
  Prefactor  = 18.5051
  Prefactor  = 6.04701
  Prefactor  = 14.3974
  Prefactor  = 25.6349
  Prefactor  = 1.95749
  Prefactor  = 0.590536
  norm       = 8.89709
  Prefactor  = 10.2985
  Prefactor  = 4.12223
  Prefactor  = 6.16197
  Prefactor  = 0.0001
  Normalizat = 0.989917
  Prefactor  = 1.00254
 **********
 **   18 **HESSE 
 **********

 FCN=   72038.52     FROM HESSE     STATUS=OK           610 CALLS     5627 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .47163        .24047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6817        1.9057        .16243E-02   -1.5449    
   4  Prefactor     1.0253        .69398        .24193E-02   -1.5505    
   5  Prefactor     2.4229        2.4099        .26293E-03   -1.5397    
   6  Prefactor     1.2771        9.0265        .19650E-02   -1.5482    
   7  norm          4.2054        1.3432        .16941E-03   -1.5298    
   8  norm          2.3763        .79933        .13119E-03   -1.5400    
   9  Prefactor     31.936        14.818        .70898E-04   -1.4577    
  10  Prefactor     .10000E-03    4.8066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1583        3.3447        .14019E-02   -1.5414    
  12  Prefactor     5.2617        6.6249        .17522E-03   -1.5249    
  13  Prefactor     .40509        .89190        .36837E-03   -1.5581    
  14  Prefactor     1.4885        2.7254        .35145E-03   -1.5464    
  15  Prefactor     .10000E-03    1.1175        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .95553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0754        2.9220        .14335E-02   -1.5420    
  18  Prefactor     18.505        9.2883        .93106E-04   -1.4847    
  19  Prefactor     6.0470        17.668        .16318E-03   -1.5216    
  20  Prefactor     14.397        7.6373        .10556E-03   -1.4949    
  21  Prefactor     25.635        10.425        .79118E-04   -1.4695    
  22  Prefactor     1.9575        12.454        .29647E-03   -1.5428    
  23  Prefactor     .59054        11.248        .61224E-02   -1.5554    
  24  norm          8.8971        4.6636        .13437E-03   -1.5111    
  25  Prefactor     10.298        29.168        .12449E-03   -1.5066    
  26  Prefactor     4.1222        1.1191        .12070E-03   -1.5302    
  27  Prefactor     6.1620        9.9126        .16174E-03   -1.5211    
  28  Prefactor     .10000E-03    8.0993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .98992        .56419E-01    .25604E-03   -.93369    
  30  Prefactor     1.0025        .44212E-01    .20670E-03   -.92645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61903e-08
Minuit parameter uncertainties:
  1  1.88845e-06
  2  7.19889e-06
  3  1.90581
  4  0.693989
  5  2.40995
  6  6.79155
  7  1.34317
  8  0.799332
  9  14.8196
  10  1.64264e-06
  11  3.34497
  12  6.62587
  13  0.891925
  14  2.72565
  15  1.17075e-06
  16  3.88305e-06
  17  2.92219
  18  9.28906
  19  17.6831
  20  7.63785
  21  10.4258
  22  9.87769
  23  5.15512
  24  4.66377
  25  29.2083
  26  1.11909
  27  9.9152
  28  8.74326e-07
  29  0.0564221
  30  0.0442136
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  2.075e+00  2.922e+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

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.003e+00  4.421e-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:  9.899e-01  5.642e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 209.528 76.706
Photon Flux Upper Limit: 1.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515181/likelihoodResults_519523201_522115201_4FGL_J1358.1+7642_monthly_bin109.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) = 72038.490042
delta logL = 0.0338090798323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 72038.4892876
delta logL = 0.0345634637924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1743       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0888       1.0000          .0000       10.000    
     3 'Normalizat'    .99121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0020       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.

 FCN=   72038.49     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      194 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1742        3.0642        .69810E-02    .23302E-02
   2  Index         2.0897        1.0039        .25302E-01    .76370E-04
   3  Normalizat    .99119        .47334E-01    .46057E-01    .15172E-03
   4  Prefactor     1.0020        .38494E-01    .44969E-01    .57365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.17422
  Index      = 2.08967
  Normalizat = 0.991188
  Prefactor  = 1.00205
 **********
 **   18 **HESSE 
 **********

 FCN=   72038.49     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1742        3.0737        .27924E-03   -1.5413    
   2  Index         2.0897        1.0147        .10121E-02   -.62127    
   3  Normalizat    .99119        .53219E-01    .25589E-03   -.93326    
   4  Prefactor     1.0020        .43288E-01    .20674E-03   -.92661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32761e-09
Minuit parameter uncertainties:
  1  3.07389
  2  1.02552
  3  0.0532222
  4  0.04329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515181': 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) = 72038.4892871
delta logL = 0.0345640103333

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  2.174e+00  3.074e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.090e+00  1.026e+00  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.002e+00  4.329e-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:  9.912e-01  5.322e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
Ra Dec: 209.528 76.706

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/515181/cmap_HighResolution_519523201_522115201_4FGL_J1358.1+7642_monthly_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-03', job_status='DONE', photon_flux_upper_limit='1.55e-08', time_completed='2021-10-25 14:22:29.053286', job_id='515181', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1635196949.05', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='3.46e-02', ts2='0.83', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='109' AND source_name='4FGL J1358.1+7642' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 14:22:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 515181: <4FGL_J1358.1+7642_monthly_bin109> in cluster <slac> Done

Job <4FGL_J1358.1+7642_monthly_bin109> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct 25 11:30:24 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 25 11:34:47 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:47 2021
Terminated at Mon Oct 25 14:22:29 2021
Results reported at Mon Oct 25 14:22:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_monthly_bin109 209.528 76.7064 519523201 522115201 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 :                                   9945.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             418.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10062 sec.
    Turnaround time :                            10325 sec.

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

