Sender: LSF System <lsf@bullet0247>
Subject: Job 268834: <4FGL_J1722.6+6104_weekly_bin593> in cluster <slac> Done

Job <4FGL_J1722.6+6104_weekly_bin593> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 26 12:45:24 2021
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 26 13:32:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 26 13:32:43 2021
Terminated at Mon Jul 26 14:43:20 2021
Results reported at Mon Jul 26 14:43:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_weekly_bin593 260.662 61.0734 597628801 598233601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1722.6+6104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3920.67 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             348.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3409 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   4237 sec.
    Turnaround time :                            7076 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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 162 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 = 17311
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1722.6+6104_weekly_bin593
RA = 260.662, Dec = 61.0734
tmin = 597628801, tmax = 598233601
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='268834', job_status='RUN', time_executed='2021-07-26 13:35:44.625185', time_epoch_executed='1627331744.63' WHERE source_name='4FGL J1722.6+6104' and cadence='weekly' and bin_id='593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268834

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268834/ft1_4FGL_J1722.6+6104_weekly_bin593.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268834/ft1_4FGL_J1722.6+6104_weekly_bin593.fits outfile=/scratch/kocevski/268834/ft1_filteredMKT_4FGL_J1722.6+6104_weekly_bin593.fits ra=260.662 dec=61.0734 rad=12.0 tmin=597628801.0 tmax=598233601.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.87
user 6.68
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.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/268834/ft1_filteredMKT_4FGL_J1722.6+6104_weekly_bin593.fits evtable="EVENTS" outfile="/scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits" evtable="EVENTS" scfile=/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits sctable="SC_DATA" outfile=/scratch/kocevski/268834/ltcube_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.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/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits
.....................!
real 27.90
user 27.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits evtable="EVENTS" scfile=/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits sctable="SC_DATA" expcube=/scratch/kocevski/268834/ltcube_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.fits outfile=/scratch/kocevski/268834/expmap_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.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/268834/ltcube_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.fits
.....................!
real 156.95
user 152.61
sys 4.00

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 J1722.6+6104 @ 260.662 61.0734

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits scfile=/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits outfile=/scratch/kocevski/268834/cmap_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.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=260.662 yref=61.0734 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits scfile=/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits outfile=/scratch/kocevski/268834/cmap_HighResolution_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.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=260.662 yref=61.0734 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits evtable="EVENTS" scfile=/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268834/Model_4FGL_J1722.6+6104_weekly_bin593.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/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits.....................!
real 168.65
user 166.51
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits', '/scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits', expMap='/scratch/kocevski/268834/expmap_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.fits', expCube='/scratch/kocevski/268834/ltcube_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/268834/Model_4FGL_J1722.6+6104_weekly_bin593.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1722.6+6104'

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.901e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/268834/ft1_filtered_4FGL_J1722.6+6104_weekly_bin593.fits
Spacecraft file(s): /scratch/kocevski/268834/ft2_4FGL_J1722.6+6104_weekly_bin593.fits
Exposure map: /scratch/kocevski/268834/expmap_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.fits
Exposure cube: /scratch/kocevski/268834/ltcube_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/268834/Model_4FGL_J1722.6+6104_weekly_bin593.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) = 25802.2634432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10713E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20746E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12490E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.914       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8490       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6739       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2339       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7365       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.276       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30333E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3310       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.2037       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.446       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7232       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .44447E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .28431       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8524       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4926       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.2861       1.0000         .10000E-03   10000.    
    27 'norm      '    6.7202       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    57.051       1.0000         .10000E-03   10000.    
    30 'Prefactor '    23.392       1.0000         .10000E-03   10000.    
    31 'norm      '    2.1963       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .11072E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    3.3846       1.0000         .10000E-03   10000.    
    37 'Normalizat'    .85372       1.0000         .10000E-01   10.000    
    38 'Prefactor '    1.1593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25802.26     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     6331 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9725        .11441E-05** at limit **
   2  Prefactor     .10135E-03    66.578       -.13754E-04** at limit **
   3  Prefactor     .10000E-03    1.1476        .85348E-06** at limit **
   4  norm          12.233        1.3198       -.35250E-06   -.18298E-02
   5  Prefactor     .10005E-03    43.156        .26552E-05** at limit **
   6  norm          27.913        1.4389        .28575E-06    .17503E-02
   7  Prefactor     20.606        1.1465       -.36923E-06   -.29595E-02
   8  Prefactor     .10000E-03    8.1069        .22651E-06** at limit **
   9  norm          4.3374        3.8323        .16070E-05    .15484E-02
  10  Prefactor     3.8482        3.5318       -.35716E-05   -.29567E-02
  11  Prefactor     5.6724        4.5707        .21260E-05    .59677E-02
  12  norm          5.2338        .72526       -.11300E-06   -.32305E-03
  13  Prefactor     2.7362        3.1196       -.19792E-06   -.14860E-03
  14  Prefactor     18.273        5.1351        .18102E-05    .92851E-02
  15  Prefactor     .10576E-03    79.739        .36576E-04** at limit **
  16  Prefactor     .10000E-03    4.3492        .93877E-06** at limit **
  17  Prefactor     3.3304        1.7192       -.37917E-07   -.71381E-04
  18  Prefactor     .10000E-03    19.081        .96985E-06** at limit **
  19  norm          3.2034        3.1557        .12264E-06   -.47780E-03
  20  Prefactor     22.445        3.4325        .28866E-06    .51661E-02
  21  Prefactor     3.7254        1.0278       -.91174E-08    .17583E-04
  22  Prefactor     .10078E-03    892.36       -.32323E-04** at limit **
  23  norm          .28395        1.0400        .12899E-06    .48157E-06
  24  Prefactor     4.8526        1.0121       -.95200E-07    .23914E-03
  25  Prefactor     2.4916        1.0880       -.81736E-07    .31037E-03
  26  Prefactor     2.2846        1.0779        .43611E-06    .99019E-04
  27  norm          6.7204        2.5837       -.92381E-06   -.81252E-04
  28  Prefactor     .10000E-03    6.7069        .30946E-05** at limit **
  29  Prefactor     57.006        6.8629       -.75900E-06    .19821E-02
  30  Prefactor     23.392        3.8164        .28484E-05   -.98239E-03
  31  norm          2.1954        3.6389        .68623E-05    .18889E-02
  32  Prefactor     .10000E-03    3.1610       -.45827E-06** at limit **
  33  Prefactor     .10000E-03    2.0530       -.11390E-05** at limit **
  34  Prefactor     .10000E-03    6.4146       -.26402E-05** at limit **
  35  Prefactor     .10000E-03    14.106        .89171E-06** at limit **
  36  norm          3.3842        1.8703       -.42864E-06    .72392E-04
  37  Normalizat    .85382        .13308       -.60340E-06   -.55148E-04
  38  Prefactor     1.1593        .10489       -.36450E-06   -.53685E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.00010135
  Prefactor  = 0.0001
  norm       = 12.233
  Prefactor  = 0.00010005
  norm       = 27.9128
  Prefactor  = 20.6062
  Prefactor  = 0.0001
  norm       = 4.33745
  Prefactor  = 3.84815
  Prefactor  = 5.67245
  norm       = 5.23376
  Prefactor  = 2.73624
  Prefactor  = 18.2728
  Prefactor  = 0.000105762
  Prefactor  = 0.0001
  Prefactor  = 3.33041
  Prefactor  = 0.000100001
  norm       = 3.20338
  Prefactor  = 22.4453
  Prefactor  = 3.72536
  Prefactor  = 0.000100778
  norm       = 0.28395
  Prefactor  = 4.85256
  Prefactor  = 2.49157
  Prefactor  = 2.28461
  norm       = 6.72037
  Prefactor  = 0.0001
  Prefactor  = 57.0056
  Prefactor  = 23.3919
  norm       = 2.19541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.3842
  Normalizat = 0.853822
  Prefactor  = 1.15931
 **********
 **   18 **HESSE 
 **********

 FCN=   25802.26     FROM HESSE     STATUS=OK          1002 CALLS     7333 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .91539        .54541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10135E-03    71.649        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.233        4.5863        .28634E-02   -1.5008    
   5  Prefactor     .10005E-03    42.821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.913        11.795        .18957E-02   -1.4651    
   7  Prefactor     20.606        5.1707        .22058E-02   -1.4800    
   8  Prefactor     .10000E-03    8.0946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3374        3.9850        .48353E-02   -1.5291    
  10  Prefactor     3.8482        4.0449        .51425E-02   -1.5316    
  11  Prefactor     5.6724        10.962        .42159E-02   -1.5232    
  12  norm          5.2338        .77321        .43925E-02   -1.5250    
  13  Prefactor     2.7362        3.1398        .61533E-02   -1.5377    
  14  Prefactor     18.273        11.822        .23422E-02   -1.4853    
  15  Prefactor     .10576E-03    1.7182        .66749E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3304        1.7200        .55444E-02   -1.5343    
  18  Prefactor     .10000E-03    19.063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.2034        3.2420        .56591E-02   -1.5350    
  20  Prefactor     22.445        4.2069        .21136E-02   -1.4760    
  21  Prefactor     3.7254        23.281        .52319E-02   -1.5322    
  22  Prefactor     .10078E-03    25.169        .20992       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .28395        1.0386        .10356E-01   -1.5601    
  24  Prefactor     4.8526        5.6630        .45654E-02   -1.5267    
  25  Prefactor     2.4916        5.2584        .64723E-02   -1.5392    
  26  Prefactor     2.2846        6.0671        .67879E-02   -1.5406    
  27  norm          6.7204        2.6515        .38696E-02   -1.5189    
  28  Prefactor     .10000E-03    6.6954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     57.006        79.589        .13278E-02   -1.4196    
  30  Prefactor     23.392        4.7416        .20705E-02   -1.4740    
  31  norm          2.1954        3.7835        .69415E-02   -1.5412    
  32  Prefactor     .10000E-03    3.1599        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    2.0439        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    6.4250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    14.105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          3.3842        1.8859        .54983E-02   -1.5340    
  37  Normalizat    .85382        .12341        .80849E-01   -.98102    
  38  Prefactor     1.1593        .90049E-01    .55463E-01   -.87593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46471e-07
Minuit parameter uncertainties:
  1  9.09443e-06
  2  0.0196965
  3  3.06603e-06
  4  4.58643
  5  0.0029314
  6  11.7955
  7  5.17079
  8  2.20351e-05
  9  3.98522
  10  4.04524
  11  10.966
  12  0.773216
  13  3.14002
  14  11.8232
  15  0.00629329
  16  1.57204e-05
  17  1.72006
  18  0.000244632
  19  3.24218
  20  4.20697
  21  18.6364
  22  0.00885483
  23  1.03863
  24  5.66367
  25  5.2594
  26  6.06878
  27  2.65153
  28  9.74095e-05
  29  79.7379
  30  4.74168
  31  3.78392
  32  2.51156e-06
  33  1.5021e-07
  34  0.000105188
  35  6.76281e-05
  36  1.88594
  37  0.123447
  38  0.0900604
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.058e-04  6.293e-03  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.159e+00  9.006e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  8.538e-01  1.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 260.662 61.073
Photon Flux Upper Limit: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268834/likelihoodResults_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.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) = 25802.2605369
delta logL = -4.80517846881e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25802.2328216
delta logL = 0.02766724088

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25802.23     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      429 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46763        2.8134        .64445E-01    .34502E-02
   2  Index         3.4614        1.3082        .50000       -.44108E-06
   3  Normalizat    .84564        .67855E-02    .81217E-01   -.41483E-03
   4  Prefactor     1.1624        .53571E-02    .55403E-01   -.71999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467626
  Index      = 3.46139
  Normalizat = 0.845639
  Prefactor  = 1.16239
 **********
 **   18 **HESSE 
 **********

 FCN=   25802.23     FROM HESSE     STATUS=OK            33 CALLS      462 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46763        18.955        .22102E-02   -1.5571    
   2  Index         3.4614        6.7100        .18351E-01   -.31280    
   3  Normalizat    .84564        .14156        .35957E-03   -.98398    
   4  Prefactor     1.1624        .10466        .24496E-03   -.87497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73632e-08
Minuit parameter uncertainties:
  1  5.95575
  2  5.37278
  3  0.141625
  4  0.104675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268834': 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) = 25802.2328216
delta logL = 0.0276672425534

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  4.676e-01  5.956e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  3.461e+00  5.373e+00  0.000e+00  1.000e+01 (-1.000e+00)
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.162e+00  1.047e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  8.456e-01  1.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 260.662 61.073

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/268834/cmap_HighResolution_597628801_598233601_4FGL_J1722.6+6104_weekly_bin593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-07-26 14:43:19.660093', job_id='268834', GAL2='1.16', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1627335799.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.77e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='593' AND source_name='4FGL J1722.6+6104' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 26 14:43:19 PDT 2021

