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


Performing analysis on: 4FGL_J1358.1+7642_monthly_bin137
RA = 209.528, Dec = 76.7064
tmin = 592099201, tmax = 594691201
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='515220', job_status='RUN', time_executed='2021-10-25 11:35:36.318279', time_epoch_executed='1635186936.32' WHERE source_name='4FGL J1358.1+7642' and cadence='monthly' and bin_id='137'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515220

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515220/ft1_4FGL_J1358.1+7642_monthly_bin137.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515220/ft2_4FGL_J1358.1+7642_monthly_bin137.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515220/ft1_4FGL_J1358.1+7642_monthly_bin137.fits outfile=/scratch/kocevski/515220/ft1_filteredMKT_4FGL_J1358.1+7642_monthly_bin137.fits ra=209.528 dec=76.7064 rad=12.0 tmin=592099201.0 tmax=594691201.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 34.20
user 33.38
sys 0.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/515220/ft2_4FGL_J1358.1+7642_monthly_bin137.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/515220/ft1_filteredMKT_4FGL_J1358.1+7642_monthly_bin137.fits evtable="EVENTS" outfile="/scratch/kocevski/515220/ft1_filtered_4FGL_J1358.1+7642_monthly_bin137.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.84
user 0.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515220/ft1_filtered_4FGL_J1358.1+7642_monthly_bin137.fits" evtable="EVENTS" scfile=/scratch/kocevski/515220/ft2_4FGL_J1358.1+7642_monthly_bin137.fits sctable="SC_DATA" outfile=/scratch/kocevski/515220/ltcube_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.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/515220/ft2_4FGL_J1358.1+7642_monthly_bin137.fits
.....................!
real 109.50
user 108.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515220/ft1_filtered_4FGL_J1358.1+7642_monthly_bin137.fits evtable="EVENTS" scfile=/scratch/kocevski/515220/ft2_4FGL_J1358.1+7642_monthly_bin137.fits sctable="SC_DATA" expcube=/scratch/kocevski/515220/ltcube_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.fits outfile=/scratch/kocevski/515220/expmap_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.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/515220/ltcube_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.fits
.....................!
real 192.92
user 186.97
sys 5.57

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/515220/ft1_filtered_4FGL_J1358.1+7642_monthly_bin137.fits scfile=/scratch/kocevski/515220/ft2_4FGL_J1358.1+7642_monthly_bin137.fits outfile=/scratch/kocevski/515220/cmap_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.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.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515220/ft1_filtered_4FGL_J1358.1+7642_monthly_bin137.fits scfile=/scratch/kocevski/515220/ft2_4FGL_J1358.1+7642_monthly_bin137.fits outfile=/scratch/kocevski/515220/cmap_HighResolution_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.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.80
user 0.60
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.0751       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.572       1.0000         .10000E-03   10000.    
     7 'norm      '    17.648       1.0000         .10000E-03   10000.    
     8 'norm      '    .82045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13660E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9845       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1749       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6802       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34669       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6856       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.153       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11122E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.3874       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .95836       1.0000         .10000E-03   10000.    
    27 'Prefactor '    65.355       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0613       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .97287       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   88258.61     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3421 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .46412         .0000    ** at limit **
   2  norm          6.0750        1.2705         .0000        .28163E-02
   3  Prefactor     .10000E-03    .57981         .0000    ** at limit **
   4  Prefactor     .10000E-03    .21378         .0000    ** at limit **
   5  Prefactor     2.1831        2.9509         .0000        .10042    
   6  Prefactor     31.571        13.618         .0000       -.17468E-03
   7  norm          17.647        1.9005         .0000        .25795E-03
   8  norm          .81955        .71910         .0000        .11922E-01
   9  Prefactor     .10000E-03    13.912         .0000    ** at limit **
  10  Prefactor     .10001E-03    3.5979         .0000    ** at limit **
  11  Prefactor     1.9850        2.9435         .0000        .62882E-01
  12  Prefactor     6.5673        4.4906         .0000       -.18660E-03
  13  Prefactor     .10000E-03    .29942         .0000    ** at limit **
  14  Prefactor     4.1741        3.4919         .0000        .23092E-01
  15  Prefactor     1.6808        2.0317         .0000        .16167    
  16  Prefactor     3.3543        2.1908         .0000        .86521E-01
  17  Prefactor     .34716        3.1743         .0000        .12326    
  18  Prefactor     2.6855        4.6056         .0000        .16692E-01
  19  Prefactor     .10002E-03    5.3064         .0000    ** at limit **
  20  Prefactor     .10000E-03    2.2010         .0000    ** at limit **
  21  Prefactor     12.155        8.3337         .0000        .32167E-03
  22  Prefactor     .10000E-03    3.0312         .0000    ** at limit **
  23  Prefactor     .10001E-03    3.3201         .0000    ** at limit **
  24  norm          3.3878        2.9542         .0000        .25875E-02
  25  Prefactor     .10006E-03    4.7421         .0000    ** at limit **
  26  Prefactor     .95801        .80996         .0000        .11232E-01
  27  Prefactor     65.358        11.103         .0000        .24248E-02
  28  Prefactor     .10001E-03    4.1180         .0000    ** at limit **
  29  Normalizat    1.0613        .46802E-01     .0000       -.19749E-03
  30  Prefactor     .97286        .35806E-01     .0000       -.33311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.07503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.18313
  Prefactor  = 31.5711
  norm       = 17.6472
  norm       = 0.819547
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 1.98504
  Prefactor  = 6.56734
  Prefactor  = 0.0001
  Prefactor  = 4.17414
  Prefactor  = 1.68082
  Prefactor  = 3.35428
  Prefactor  = 0.347163
  Prefactor  = 2.68552
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 12.1549
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  norm       = 3.3878
  Prefactor  = 0.000100055
  Prefactor  = 0.95801
  Prefactor  = 65.358
  Prefactor  = 0.000100012
  Normalizat = 1.06133
  Prefactor  = 0.972865
 **********
 **   18 **HESSE 
 **********

 FCN=   88258.61     FROM HESSE     STATUS=OK           606 CALLS     4027 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1237        .38706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.0750        1.2486        .14204E-03   -1.5215    
   3  Prefactor     .10000E-03    .58272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .21752        .13413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1831        2.7350        .13938E-02   -1.5412    
   6  Prefactor     31.571        13.619        .71310E-04   -1.4584    
   7  norm          17.647        1.9044        .95340E-04   -1.4868    
   8  norm          .81955        .63876        .20239E-02   -1.5527    
   9  Prefactor     .10000E-03    14.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    3.6206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9850        2.9282        .14709E-02   -1.5426    
  12  Prefactor     6.5673        4.4876        .15659E-03   -1.5195    
  13  Prefactor     .10000E-03    .83295        .28943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1741        3.4852        .98625E-03   -1.5299    
  15  Prefactor     1.6808        1.8705        .16249E-02   -1.5449    
  16  Prefactor     3.3543        2.1939        .11048E-02   -1.5342    
  17  Prefactor     .34716        3.2586        .21256E-02   -1.5590    
  18  Prefactor     2.6855        4.5894        .12432E-02   -1.5380    
  19  Prefactor     .10002E-03    5.3203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.155        8.3330        .11491E-03   -1.5011    
  22  Prefactor     .10000E-03    2.9700        .17558       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    3.4738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.3878        2.9452        .21983E-03   -1.5340    
  25  Prefactor     .10006E-03    4.7438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .95801        .75451        .20685E-03   -1.5512    
  27  Prefactor     65.358        10.592        .49643E-04   -1.4089    
  28  Prefactor     .10001E-03    4.1241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0613        .53243E-01    .25749E-03   -.91003    
  30  Prefactor     .97286        .40776E-01    .21472E-03   -.93640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78824e-07
Minuit parameter uncertainties:
  1  3.27257e-05
  2  1.24857
  3  1.16286e-06
  4  2.4326e-07
  5  2.73516
  6  13.6204
  7  1.90437
  8  0.638768
  9  0.000150687
  10  0.000393518
  11  2.92842
  12  4.48785
  13  7.13088e-07
  14  3.48534
  15  1.87055
  16  2.19394
  17  2.12707
  18  4.59
  19  0.000622098
  20  3.92442e-05
  21  8.33381
  22  0.000115054
  23  0.000407358
  24  2.94528
  25  0.00102595
  26  0.754513
  27  10.5919
  28  0.000453684
  29  0.0532458
  30  0.0407774
Done.

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

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  3.472e-01  2.127e+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:  9.729e-01  4.078e-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.061e+00  5.325e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 209.528 76.706
Photon Flux Upper Limit: 1.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.64e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515220/likelihoodResults_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.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) = 88258.611663
delta logL = 1.73956505023e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 88258.611587
delta logL = 7.77443638071e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34717       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4005       1.0000          .0000       10.000    
     3 'Normalizat'    1.0613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97287       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=   88258.61     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      261 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34637        4.0690        .21260E-02    .25137E-03
   2  Index         2.4005        2.3413        .46652E-01    .11837E-04
   3  Normalizat    1.0613        .49703E-01    .25750E-03   -.10172E-03
   4  Prefactor     .97287        .40006E-01    .21471E-03   -.10590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.346371
  Index      = 2.40054
  Normalizat = 1.0613
  Prefactor  = 0.972875
 **********
 **   18 **HESSE 
 **********

 FCN=   88258.61     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34637        3.2451        .85040E-04   -1.5590    
   2  Index         2.4005        2.1267        .18661E-02   -.54672    
   3  Normalizat    1.0613        .49741E-01    .10300E-04   -.91004    
   4  Prefactor     .97287        .40028E-01    .85886E-05   -.93639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71854e-11
Minuit parameter uncertainties:
  1  2.12023
  2  2.22617
  3  0.0497436
  4  0.0400291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515220': 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) = 88258.6115869
delta logL = 7.78157263994e-05

Extracting fit parameters...

4FGL J1358.1+7642
   Spectrum: PowerLaw
386    Prefactor:  3.464e-01  2.120e+00  1.000e-04  1.000e+04 ( 1.000e-13)
387        Index:  2.401e+00  2.226e+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:  9.729e-01  4.003e-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.061e+00  4.974e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/515220/cmap_HighResolution_592099201_594691201_4FGL_J1358.1+7642_monthly_bin137.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-04', job_status='DONE', photon_flux_upper_limit='1.12e-08', time_completed='2021-10-25 14:22:05.980860', job_id='515220', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1635196925.98', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='7.78e-05', ts2='0.03', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='137' AND source_name='4FGL J1358.1+7642' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Oct 25 14:22:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 515220: <4FGL_J1358.1+7642_monthly_bin137> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1358.1+7642_monthly_bin137 209.528 76.7064 592099201 594691201 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 :                                   9932.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             448.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10002 sec.
    Turnaround time :                            10298 sec.

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

