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


Performing analysis on: 4FGL_J1613.6+3411_monthly_bin133
RA = 243.421, Dec = 34.1982
tmin = 581731201, tmax = 584323201
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='576775', job_status='RUN', time_executed='2021-10-28 07:30:56.007540', time_epoch_executed='1635431456.01' WHERE source_name='4FGL J1613.6+3411' and cadence='monthly' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576775

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576775/ft1_4FGL_J1613.6+3411_monthly_bin133.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576775/ft1_4FGL_J1613.6+3411_monthly_bin133.fits outfile=/scratch/kocevski/576775/ft1_filteredMKT_4FGL_J1613.6+3411_monthly_bin133.fits ra=243.421 dec=34.1982 rad=12.0 tmin=581731201.0 tmax=584323201.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 31.28
user 30.64
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.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/576775/ft1_filteredMKT_4FGL_J1613.6+3411_monthly_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.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.85
user 0.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/576775/ltcube_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.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/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits
.....................!
real 116.86
user 116.15
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/576775/ltcube_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.fits outfile=/scratch/kocevski/576775/expmap_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.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/576775/ltcube_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.fits
.....................!
real 192.94
user 188.17
sys 4.20

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

Setting source of interest to:
4FGL J1613.6+3411 @ 243.421 34.1982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits scfile=/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits outfile=/scratch/kocevski/576775/cmap_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.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=243.421 yref=34.1982 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.77
user 0.60
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits scfile=/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits outfile=/scratch/kocevski/576775/cmap_HighResolution_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.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=243.421 yref=34.1982 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.78
user 0.62
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/576775/Model_4FGL_J1613.6+3411_monthly_bin133.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/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits.....................!
real 442.69
user 440.56
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits', '/scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits', expMap='/scratch/kocevski/576775/expmap_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.fits', expCube='/scratch/kocevski/576775/ltcube_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/576775/Model_4FGL_J1613.6+3411_monthly_bin133.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1613.6+3411'

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.261e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/576775/ft1_filtered_4FGL_J1613.6+3411_monthly_bin133.fits
Spacecraft file(s): /scratch/kocevski/576775/ft2_4FGL_J1613.6+3411_monthly_bin133.fits
Exposure map: /scratch/kocevski/576775/expmap_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.fits
Exposure cube: /scratch/kocevski/576775/ltcube_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/576775/Model_4FGL_J1613.6+3411_monthly_bin133.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) = 73592.8061701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.047       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2053       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3535       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .45958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9606       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62796       1.0000         .10000E-03   10000.    
    12 'norm      '    .13016       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.610       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1669       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58256E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0009       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .92069E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5652       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9747       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97215       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98766       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   73592.71     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2178 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.047        16.953         .0000       -.18655E-03
   2  norm          1.2049        .35489         .0000        .55516E-02
   3  Prefactor     .31201        .93091         .0000        .55680E-02
   4  Prefactor     11.948        6.4006         .0000        .65303E-04
   5  Prefactor     .10000E-03    1.0274         .0000    ** at limit **
   6  norm          1.3534        1.9489         .0000        .58576E-02
   7  Prefactor     2.6860        .76941         .0000        .47535E-02
   8  Prefactor     .45939        1.1585         .0000        .81844E-02
   9  Prefactor     5.4284        2.9085         .0000        .23024E-01
  10  Prefactor     1.9606        .81545         .0000        .49782E-02
  11  Prefactor     .62819        .76151         .0000        .16864E-01
  12  norm          .13017        .37748E-01     .0000        .21053E-01
  13  norm          1.7495        1.8233         .0000        .17636E-02
  14  Prefactor     16.608        5.3145         .0000        .57574E-02
  15  norm          3.1624        6.6703         .0000       -.34472E-03
  16  Prefactor     .57722E-01    .13199         .0000        .82235E-02
  17  Prefactor     2.0011        .41197         .0000        .35597E-02
  18  Prefactor     .10001E-03    .95917         .0000    ** at limit **
  19  Prefactor     2.5653        .76565         .0000        .40335E-02
  20  norm          2.9747        .46754         .0000        .22896E-03
  21  Normalizat    .97212        .55733E-01     .0000        .74333E-03
  22  Prefactor     .98767        .42167E-01     .0000        .67155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0472
  norm       = 1.20486
  Prefactor  = 0.312008
  Prefactor  = 11.9483
  Prefactor  = 0.0001
  norm       = 1.35344
  Prefactor  = 2.68598
  Prefactor  = 0.459395
  Prefactor  = 5.42838
  Prefactor  = 1.96063
  Prefactor  = 0.628187
  norm       = 0.130172
  norm       = 1.74948
  Prefactor  = 16.6084
  norm       = 3.16239
  Prefactor  = 0.0577225
  Prefactor  = 2.00107
  Prefactor  = 0.00010001
  Prefactor  = 2.56527
  norm       = 2.97465
  Normalizat = 0.972124
  Prefactor  = 0.987667
 **********
 **   18 **HESSE 
 **********

 FCN=   73592.71     FROM HESSE     STATUS=OK           374 CALLS     2552 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.047        16.957        .91773E-04   -1.4835    
   2  norm          1.2049        .35604        .74704E-04   -1.5488    
   3  Prefactor     .31201        3.9378        .37485E-02   -1.5596    
   4  Prefactor     11.948        6.4135        .11588E-03   -1.5017    
   5  Prefactor     .10000E-03    1.0322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3534        1.9176        .37587E-03   -1.5475    
   7  Prefactor     2.6860        .76587        .12177E-03   -1.5380    
   8  Prefactor     .45939        1.5271        .45014E-02   -1.5572    
   9  Prefactor     5.4284        2.9089        .86235E-03   -1.5242    
  10  Prefactor     1.9606        .81259        .15081E-03   -1.5428    
  11  Prefactor     .62819        .74569        .24097E-03   -1.5549    
  12  norm          .13017        .35859E-01    .23916E-03   -1.5636    
  13  norm          1.7495        1.8127        .31704E-03   -1.5443    
  14  Prefactor     16.608        5.2487        .98274E-04   -1.4893    
  15  norm          3.1624        6.6408        .22774E-03   -1.5352    
  16  Prefactor     .57722E-01    1.4981        .10394E-02   -1.5660    
  17  Prefactor     2.0011        .62406        .57305E-04   -1.5425    
  18  Prefactor     .10001E-03    1.2066        .77572E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5653        .76036        .12297E-03   -1.5388    
  20  norm          2.9747        .46734        .70803E-04   -1.5363    
  21  Normalizat    .97212        .64542E-01    .26572E-03   -.93970    
  22  Prefactor     .98767        .49575E-01    .21083E-03   -.93142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57482e-07
Minuit parameter uncertainties:
  1  16.9612
  2  0.35604
  3  2.2167
  4  6.41386
  5  2.48232e-06
  6  1.9177
  7  0.765874
  8  1.5272
  9  2.909
  10  0.812594
  11  0.7457
  12  0.0358595
  13  1.81275
  14  5.24884
  15  6.64231
  16  0.587635
  17  0.624066
  18  0.000220705
  19  0.760362
  20  0.467337
  21  0.0645475
  22  0.0495777
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.961e+00  8.126e-01  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.877e-01  4.958e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.721e-01  6.455e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.21
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.04e-08 +/- 8.45e-09
Energy Flux (Fixed Index): 6.37e-06 +/- 2.64e-06

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) = 73592.7079385
delta logL = 1.16415321827e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 73592.7079385
delta logL = 6.11180439591e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9606       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4375       1.0000          .0000       10.000    
     3 'Normalizat'    .97212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   73592.71     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9606        7.8585        .74062E-02    .48452E-02
   2  Index         2.4376        2.0588        .23762        .43542E-03
   3  Normalizat    .97212        .17054E-01    .45817E-01    .49205E-04
   4  Prefactor     .98767        .12045E-01    .46113E-01   -.85001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96057
  Index      = 2.43757
  Normalizat = 0.972121
  Prefactor  = 0.987668
 **********
 **   18 **HESSE 
 **********

 FCN=   73592.71     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9606        .87400        .15081E-03   -1.5428    
   2  Index         2.4376        .37942        .13421E-01   -.53808    
   3  Normalizat    .97212        .61987E-01    .26572E-03   -.93970    
   4  Prefactor     .98767        .48950E-01    .21083E-03   -.93142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39084e-08
Minuit parameter uncertainties:
  1  0.874005
  2  0.379911
  3  0.061992
  4  0.0489521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576775': 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) = 73592.7079385
delta logL = 2.65281414613e-08

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  1.961e+00  8.740e-01  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.438e+00  3.799e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.877e-01  4.895e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  9.721e-01  6.199e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.19
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.44 +/- 0.38
Photon Flux (Free Index): 2.04e-08 +/- 1.10e-08
Energy Flux (Free Index): 6.37e-06 +/- 2.74e-06

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/576775/cmap_HighResolution_581731201_584323201_4FGL_J1613.6+3411_monthly_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.04e-08', energy_flux2='6.37e-06', photon_flux_error='8.45e-09', dlogl='2.65e-08', energy_flux='6.37e-06', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-10-28 08:35:55.614034', photon_index_error2='0.38', photon_index2='2.44', ts='11.21', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.74e-06', EG='0.97', time_epoch_completed='1635435355.61', return_code='0', job_id='576775', GAL2='0.99', EG2='0.97', return_code2='0', energy_flux_error='2.64e-06', photon_flux_error2='1.10e-08', ts2='11.19', photon_index='2.44' WHERE bin_id='133' AND source_name='4FGL J1613.6+3411' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Oct 28 08:35:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 576775: <4FGL_J1613.6+3411_monthly_bin133> in cluster <slac> Done

Job <4FGL_J1613.6+3411_monthly_bin133> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Oct 28 07:30:31 2021
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 28 07:30:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 28 07:30:32 2021
Terminated at Thu Oct 28 08:35:56 2021
Results reported at Thu Oct 28 08:35:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_monthly_bin133 243.421 34.1982 581731201 584323201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1613.6+3411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3804.66 sec.
    Max Memory :                                 640 MB
    Average Memory :                             393.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2946 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3924 sec.
    Turnaround time :                            3925 sec.

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

