Sender: LSF System <lsf@bullet0289>
Subject: Job 580268: <4FGL_J1740.6+5346_weekly_bin442> in cluster <slac> Done

Job <4FGL_J1740.6+5346_weekly_bin442> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Jul 27 07:40:32 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 27 07:41:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 27 07:41:26 2021
Terminated at Tue Jul 27 08:33:04 2021
Results reported at Tue Jul 27 08:33:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.6+5346_weekly_bin442 265.159 53.7701 506304001 506908801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.6+5346 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2902.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             326.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3097 sec.
    Turnaround time :                            3152 sec.

The output (if any) follows:

aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 151 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 = 17213
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.6+5346_weekly_bin442
RA = 265.159, Dec = 53.7701
tmin = 506304001, tmax = 506908801
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='580268', job_status='RUN', time_executed='2021-07-27 07:44:16.264940', time_epoch_executed='1627397056.26' WHERE source_name='4FGL J1740.6+5346' and cadence='weekly' and bin_id='442'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580268

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580268/ft1_4FGL_J1740.6+5346_weekly_bin442.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580268/ft1_4FGL_J1740.6+5346_weekly_bin442.fits outfile=/scratch/kocevski/580268/ft1_filteredMKT_4FGL_J1740.6+5346_weekly_bin442.fits ra=265.159 dec=53.7701 rad=12.0 tmin=506304001.0 tmax=506908801.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 7.98
user 7.03
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.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/580268/ft1_filteredMKT_4FGL_J1740.6+5346_weekly_bin442.fits evtable="EVENTS" outfile="/scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.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.56
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits" evtable="EVENTS" scfile=/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits sctable="SC_DATA" outfile=/scratch/kocevski/580268/ltcube_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.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/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits
.....................!
real 30.63
user 30.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits sctable="SC_DATA" expcube=/scratch/kocevski/580268/ltcube_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.fits outfile=/scratch/kocevski/580268/expmap_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.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/580268/ltcube_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.fits
.....................!
real 192.35
user 186.73
sys 5.22

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

Setting source of interest to:
4FGL J1740.6+5346 @ 265.159 53.7701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits scfile=/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits outfile=/scratch/kocevski/580268/cmap_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.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=265.159 yref=53.7701 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.64
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits scfile=/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits outfile=/scratch/kocevski/580268/cmap_HighResolution_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.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=265.159 yref=53.7701 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.65
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits evtable="EVENTS" scfile=/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/580268/Model_4FGL_J1740.6+5346_weekly_bin442.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/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits.....................!
real 168.81
user 167.11
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits', '/scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits', expMap='/scratch/kocevski/580268/expmap_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.fits', expCube='/scratch/kocevski/580268/ltcube_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580268/Model_4FGL_J1740.6+5346_weekly_bin442.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.6+5346'

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  8.657e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/580268/ft1_filtered_4FGL_J1740.6+5346_weekly_bin442.fits
Spacecraft file(s): /scratch/kocevski/580268/ft2_4FGL_J1740.6+5346_weekly_bin442.fits
Exposure map: /scratch/kocevski/580268/expmap_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.fits
Exposure cube: /scratch/kocevski/580268/ltcube_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580268/Model_4FGL_J1740.6+5346_weekly_bin442.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) = 22017.1760349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12966E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .65745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6950       1.0000         .10000E-03   10000.    
     9 'norm      '    .51938       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3069       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7532       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2685       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11319E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0590       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3258       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.588       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3358       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.2969       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    6.7471       1.0000         .10000E-03   10000.    
    30 'norm      '    12.626       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .97687       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22017.12     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     4010 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.903        9.8144       -.19657E-07   -.57486E-05
   2  Prefactor     1.5577        .42821       -.86053E-08   -.67748E-03
   3  Prefactor     7.8885        3.9580        .12952E-06    .73533E-04
   4  Prefactor     1.2276        1.5195       -.28834E-07   -.24881E-04
   5  Prefactor     7.1527        5.6658       -.66270E-07    .78887E-05
   6  Prefactor     .10000E-03    4.6021       -.30163E-06** at limit **
   7  norm          .65728        .51019       -.10683E-07   -.22540E-04
   8  Prefactor     4.6960        3.8810       -.11222E-06   -.23325E-04
   9  norm          .51924        .46457        .31349E-08    .73389E-04
  10  Prefactor     .10000E-03    1.6170       -.10054E-07** at limit **
  11  Prefactor     6.3046        4.8464       -.79874E-07    .45858E-04
  12  norm          .10000E-03    .29511        .46827E-07** at limit **
  13  Prefactor     .10000E-03    .62319        .85579E-08** at limit **
  14  Prefactor     .10000E-03    25.575        .13056E-05** at limit **
  15  norm          5.7515        2.9702        .12016E-06   -.64422E-04
  16  Prefactor     18.520        18.632       -.80541E-05   -.21202E-04
  17  Prefactor     3.2679        2.5479        .67699E-08    .40626E-04
  18  Prefactor     .10000E-03    30.614       -.16182E-05** at limit **
  19  Prefactor     2.7556        107.23       -.53709E-05    .15181E-05
  20  Prefactor     4.0638        11.596        .43217E-05    .30620E-04
  21  Prefactor     8.3261        5.5824        .59234E-07   -.45022E-04
  22  Prefactor     .10000E-03    3.7883       -.30204E-08** at limit **
  23  norm          10.587        4.6548       -.71755E-07   -.39269E-05
  24  Prefactor     .10000E-03    1.7904       -.43743E-08** at limit **
  25  Prefactor     5.3389        9.9854       -.26486E-06    .92338E-05
  26  Prefactor     .10000E-03    3.9513       -.26458E-07** at limit **
  27  norm          5.2980        3.8156       -.48291E-06    .13866E-05
  28  Prefactor     .10000E-03    7.9356       -.62563E-07** at limit **
  29  norm          6.7465        5.5243       -.15616E-06    .21776E-05
  30  norm          12.626        6.1280       -.49653E-07    .40976E-05
  31  Prefactor     .10000E-03    4.7055       -.41939E-07** at limit **
  32  Normalizat    .97687        .12553        .23028E-06    .73254E-04
  33  Prefactor     1.0299        .86666E-01    .22985E-06    .57365E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.903
  Prefactor  = 1.55769
  Prefactor  = 7.88855
  Prefactor  = 1.22761
  Prefactor  = 7.15272
  Prefactor  = 0.0001
  norm       = 0.657281
  Prefactor  = 4.69605
  norm       = 0.519242
  Prefactor  = 0.0001
  Prefactor  = 6.30461
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75148
  Prefactor  = 18.5195
  Prefactor  = 3.26787
  Prefactor  = 0.0001
  Prefactor  = 2.7556
  Prefactor  = 4.06376
  Prefactor  = 8.3261
  Prefactor  = 0.0001
  norm       = 10.5873
  Prefactor  = 0.0001
  Prefactor  = 5.33885
  Prefactor  = 0.0001
  norm       = 5.29796
  Prefactor  = 0.0001
  norm       = 6.74654
  norm       = 12.6262
  Prefactor  = 0.0001
  Normalizat = 0.976866
  Prefactor  = 1.02993
 **********
 **   18 **HESSE 
 **********

 FCN=   22017.12     FROM HESSE     STATUS=OK           717 CALLS     4727 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.903        9.8087        .58055E-03   -1.5018    
   2  Prefactor     1.5577        3.3797        .17054E-02   -1.5458    
   3  Prefactor     7.8885        3.9702        .14279E-03   -1.5146    
   4  Prefactor     1.2276        1.4838        .18885E-03   -1.5486    
   5  Prefactor     7.1527        5.6556        .14999E-03   -1.5173    
   6  Prefactor     .10000E-03    21.327        .60151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .65728        .45024        .85658E-03   -1.5546    
   8  Prefactor     4.6960        3.7921        .18572E-03   -1.5275    
   9  norm          .51924        .38259        .90299E-03   -1.5564    
  10  Prefactor     .10000E-03    5.2098        .34865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3046        4.7706        .15983E-03   -1.5206    
  12  norm          .10000E-03    .65857        .15490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .63109        .11433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7515        2.9703        .83726E-03   -1.5228    
  16  Prefactor     18.520        18.638        .93099E-04   -1.4847    
  17  Prefactor     3.2679        2.5415        .19727E-03   -1.5346    
  18  Prefactor     .10000E-03    30.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7556        107.27        .24025E-03   -1.5376    
  20  Prefactor     4.0638        11.584        .20013E-03   -1.5305    
  21  Prefactor     8.3261        5.5866        .69469E-03   -1.5131    
  22  Prefactor     .10000E-03    3.7939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.587        4.6514        .12313E-03   -1.5057    
  24  Prefactor     .10000E-03    8.5690        .38173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.3389        9.9656        .17398E-03   -1.5246    
  26  Prefactor     .10000E-03    3.9578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.2980        3.8095        .17463E-03   -1.5248    
  28  Prefactor     .10000E-03    7.9643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          6.7465        5.5185        .15447E-03   -1.5188    
  30  norm          12.626        6.1276        .11273E-03   -1.4997    
  31  Prefactor     .10000E-03    4.7549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .97687        .14583        .31381E-03   -.93810    
  33  Prefactor     1.0299        .10266        .22702E-03   -.91739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7214e-09
Minuit parameter uncertainties:
  1  9.81006
  2  3.38014
  3  3.97038
  4  1.48383
  5  5.65605
  6  0.000200991
  7  0.45024
  8  3.79228
  9  0.382596
  10  9.31575e-06
  11  4.7709
  12  3.98217e-06
  13  3.99792e-07
  14  3.37448e-06
  15  2.97034
  16  18.6439
  17  2.54157
  18  1.20993e-07
  19  34.4508
  20  11.5904
  21  5.58696
  22  4.79912e-07
  23  4.65157
  24  3.19226e-05
  25  9.96865
  26  8.77072e-07
  27  3.80963
  28  5.27231e-08
  29  5.51895
  30  6.12795
  31  1.31363e-06
  32  0.145887
  33  0.102679
Done.

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

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.210e-07  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.165e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.030e+00  1.027e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.769e-01  1.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 265.159 53.770
Photon Flux Upper Limit: 3.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580268/likelihoodResults_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.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) = 22017.1233352
delta logL = -0.000155055990035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22016.6400745
delta logL = 0.483105667379

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   22016.64     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      315 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2921        20.795        .96780E-02    .46315E-02
   2  Index         3.6798        1.9964        .11456        .70560E-03
   3  Normalizat    .94396        .24240E-01    .72012E-01    .42958E-04
   4  Prefactor     1.0416        .17958E-01    .40408E-01   -.26691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.29211
  Index      = 3.67978
  Normalizat = 0.94396
  Prefactor  = 1.04164
 **********
 **   18 **HESSE 
 **********

 FCN=   22016.64     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      348 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2921        68.134        .16900E-03   -1.5481    
   2  Index         3.6798        6.8041        .79031E-02   -.26721    
   3  Normalizat    .94396        .10211        .31863E-03   -.94932    
   4  Prefactor     1.0416        .75137E-01    .22585E-03   -.91354    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10305e-08
Minuit parameter uncertainties:
  1  18.7874
  2  5.46971
  3  0.10213
  4  0.0751448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580268': 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) = 22016.6400653
delta logL = 0.483114850103

Extracting fit parameters...

4FGL J1740.6+5346
   Spectrum: PowerLaw
372    Prefactor:  1.292e+00  1.879e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  3.680e+00  5.470e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  1.972e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.042e+00  7.514e-02  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  9.440e-01  1.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 265.159 53.770
Photon Index (Free Index): 3.68 +/- 5.47
Photon Flux (Free Index): 2.81e-08 +/- 2.90e-08
Energy Flux (Free Index): 4.48e-06 +/- 7.91e-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/580268/cmap_HighResolution_506304001_506908801_4FGL_J1740.6+5346_weekly_bin442.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-03', comment='SUCCESS', energy_flux2='4.48e-06', dlogl='4.83e-01', photon_flux2='2.81e-08', job_status='DONE', time_completed='2021-07-27 08:33:03.378186', photon_index_error2='5.47', photon_index2='3.68', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='3.60e-08', energy_flux_error2='7.91e-06', EG='0.98', time_epoch_completed='1627399983.38', return_code='0', job_id='580268', GAL2='1.04', EG2='0.94', return_code2='102', photon_flux_error2='2.90e-08', ts2='1.07', photon_index='2.17' WHERE bin_id='442' AND source_name='4FGL J1740.6+5346' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 27 08:33:03 PDT 2021

