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


Performing analysis on: 4FGL_J1722.6+6104_daily_bin729
RA = 260.662, Dec = 61.0734
tmin = 428284801, tmax = 428544001
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='623582', job_status='RUN', time_executed='2021-09-17 06:05:38.305449', time_epoch_executed='1631883938.31' WHERE source_name='4FGL J1722.6+6104' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623582

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623582/ft1_4FGL_J1722.6+6104_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623582/ft1_4FGL_J1722.6+6104_daily_bin729.fits outfile=/scratch/kocevski/623582/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin729.fits ra=260.662 dec=61.0734 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.12
user 5.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.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/623582/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin729.fits evtable="EVENTS" outfile="/scratch/kocevski/623582/ft1_filtered_4FGL_J1722.6+6104_daily_bin729.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623582/ft1_filtered_4FGL_J1722.6+6104_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/623582/ltcube_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.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/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits
.....................!
real 12.17
user 11.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623582/ft1_filtered_4FGL_J1722.6+6104_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/623582/ltcube_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.fits outfile=/scratch/kocevski/623582/expmap_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.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/623582/ltcube_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.fits
.....................!
real 191.30
user 185.73
sys 4.89

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/623582/ft1_filtered_4FGL_J1722.6+6104_daily_bin729.fits scfile=/scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits outfile=/scratch/kocevski/623582/cmap_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623582/ft1_filtered_4FGL_J1722.6+6104_daily_bin729.fits scfile=/scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits outfile=/scratch/kocevski/623582/cmap_HighResolution_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/623582/ft1_filtered_4FGL_J1722.6+6104_daily_bin729.fits', '/scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits', expMap='/scratch/kocevski/623582/expmap_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.fits', expCube='/scratch/kocevski/623582/ltcube_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/623582/Model_4FGL_J1722.6+6104_daily_bin729.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/623582/ft1_filtered_4FGL_J1722.6+6104_daily_bin729.fits
Spacecraft file(s): /scratch/kocevski/623582/ft2_4FGL_J1722.6+6104_daily_bin729.fits
Exposure map: /scratch/kocevski/623582/expmap_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.fits
Exposure cube: /scratch/kocevski/623582/ltcube_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/623582/Model_4FGL_J1722.6+6104_daily_bin729.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) = 4111.30563304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3998       1.0000         .10000E-03   10000.    
    12 'norm      '    .63808       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1361       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.991       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1239       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.524       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1133       1.0000         .10000E-03   10000.    
    21 'Prefactor '    63.001       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.4041       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.464       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.5067       1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.953       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .16914E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    7.4705       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .16535E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    17.873       1.0000         .10000E-03   10000.    
    35 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    .69872       1.0000         .10000E-03   10000.    
    37 'Normalizat'    1.4200       1.0000         .10000E-01   10.000    
    38 'Prefactor '    .66188       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4111.274     FROM MIGRAD    STATUS=CONVERGED   1126 CALLS     5881 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5964        .39730E-07** at limit **
   2  Prefactor     .10000E-03    232.18        .37006E-04** at limit **
   3  Prefactor     .10000E-03    19.796        .27751E-05** at limit **
   4  norm          .10000E-03    21.840       -.24832E-05** at limit **
   5  Prefactor     .10000E-03    59.136        .17599E-04** at limit **
   6  norm          .10000E-03    20.804        .26850E-05** at limit **
   7  Prefactor     .10000E-03    11.313       -.25988E-05** at limit **
   8  Prefactor     .10000E-03    38.618       -.11572E-04** at limit **
   9  norm          2.2162        19.725       -.22354E-05   -.16424E-03
  10  Prefactor     .10000E-03    123.45        .13059E-04** at limit **
  11  Prefactor     1.3502        226.45        .74519E-05   -.27944E-04
  12  norm          .63796        .80253       -.37752E-07   -.35926E-03
  13  Prefactor     .10000E-03    4.4401        .91473E-07** at limit **
  14  Prefactor     9.1354        17.116       -.86308E-07   -.22245E-04
  15  Prefactor     .10000E-03    6.6116        .40177E-07** at limit **
  16  Prefactor     18.992        19.943       -.47480E-06    .11485E-04
  17  Prefactor     7.1240        7.0505       -.30313E-06   -.61226E-04
  18  Prefactor     .10000E-03    71.816       -.26212E-04** at limit **
  19  norm          17.523        12.309       -.98901E-07   -.14161E-04
  20  Prefactor     8.1124        8.4972       -.10748E-05   -.94288E-04
  21  Prefactor     63.016        80.629        .11539E-04   -.10257E-06
  22  Prefactor     .10000E-03    41.661        .11477E-04** at limit **
  23  norm          9.4040        4.4419       -.14773E-06   -.16912E-03
  24  Prefactor     18.463        24.544       -.17141E-06    .11146E-05
  25  Prefactor     .10000E-03    7.4979        .60781E-07** at limit **
  26  Prefactor     .10000E-03    11.209        .23937E-05** at limit **
  27  norm          8.5059        6.2581        .25377E-06   -.34711E-03
  28  Prefactor     21.953        21.653        .75295E-07    .16690E-04
  29  Prefactor     .10000E-03    122.16        .38497E-05** at limit **
  30  Prefactor     .10001E-03    7.1862        .14548E-05** at limit **
  31  norm          7.4705        7.2748        .54947E-06    .79605E-03
  32  Prefactor     .10000E-03    17.074       -.59821E-05** at limit **
  33  Prefactor     .10827E-03    26.989       -.54460E-05** at limit **
  34  Prefactor     17.884        27.932        .12038E-06   -.26178E-04
  35  Prefactor     .10000E-03    64.439       -.24279E-05** at limit **
  36  norm          .69543        4.8367       -.91032E-06   -.38405E-03
  37  Normalizat    1.4201        .28443        .44330E-06    .15139E-03
  38  Prefactor     .66190        .19655       -.18771E-06    .14881E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21619
  Prefactor  = 0.000100001
  Prefactor  = 1.35018
  norm       = 0.637965
  Prefactor  = 0.0001
  Prefactor  = 9.13539
  Prefactor  = 0.0001
  Prefactor  = 18.9919
  Prefactor  = 7.12401
  Prefactor  = 0.0001
  norm       = 17.5234
  Prefactor  = 8.11245
  Prefactor  = 63.0158
  Prefactor  = 0.0001
  norm       = 9.40403
  Prefactor  = 18.4627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.50587
  Prefactor  = 21.9529
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 7.47048
  Prefactor  = 0.0001
  Prefactor  = 0.000108269
  Prefactor  = 17.8841
  Prefactor  = 0.0001
  norm       = 0.695435
  Normalizat = 1.42009
  Prefactor  = 0.661904
 **********
 **   18 **HESSE 
 **********

 FCN=   4111.274     FROM HESSE     STATUS=OK           898 CALLS     6779 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5980        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    231.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    21.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2162        19.804        .27617E-03   -1.5410    
  10  Prefactor     .10000E-03    127.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3502        226.73        .36678E-03   -1.5476    
  12  norm          .63796        .74622        .59387E-03   -1.5548    
  13  Prefactor     .10000E-03    4.4497        .13191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1354        16.953        .13260E-03   -1.5103    
  15  Prefactor     .10000E-03    6.6430        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.992        19.901        .91906E-04   -1.4836    
  17  Prefactor     7.1240        7.0490        .15029E-03   -1.5174    
  18  Prefactor     .10000E-03    71.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.523        12.305        .95676E-04   -1.4871    
  20  Prefactor     8.1124        8.4968        .14076E-03   -1.5138    
  21  Prefactor     63.016        80.524        .50556E-04   -1.4119    
  22  Prefactor     .10000E-03    41.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.4040        4.4398        .85954E-04   -1.5095    
  24  Prefactor     18.463        24.542        .93210E-04   -1.4848    
  25  Prefactor     .10000E-03    7.5136        .17147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.5059        6.1234        .12444E-03   -1.5125    
  28  Prefactor     21.953        21.648        .85487E-04   -1.4771    
  29  Prefactor     .10000E-03    122.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    15.625        .31085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          7.4705        7.3163        .73367E-03   -1.5161    
  32  Prefactor     .10000E-03    17.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10827E-03    280.99        .62445E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     17.884        26.455        .94737E-04   -1.4862    
  35  Prefactor     .10000E-03    64.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          .69543        7.6161        .22198E-02   -1.5541    
  37  Normalizat    1.4201        .33538        .28037E-03   -.80049    
  38  Prefactor     .66190        .23232        .28353E-03   -1.0504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83192e-08
Minuit parameter uncertainties:
  1  4.44409e-07
  2  2.02257e-05
  3  1.69623e-06
  4  4.11168e-06
  5  2.38773e-06
  6  4.72288e-06
  7  1.07033e-05
  8  2.07677e-05
  9  13.2553
  10  0.000589778
  11  35.1273
  12  0.746233
  13  2.25475e-06
  14  16.9619
  15  4.96122e-07
  16  19.908
  17  7.04981
  18  1.37557e-05
  19  12.3072
  20  8.49811
  21  80.6637
  22  2.17917e-06
  23  4.44
  24  24.5549
  25  5.196e-06
  26  5.40095e-06
  27  6.12383
  28  21.6553
  29  1.04265e-05
  30  0.000788092
  31  7.31719
  32  1.00128e-06
  33  0.0968614
  34  26.4726
  35  3.95536e-05
  36  4.60325
  37  0.335898
  38  0.232656
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  4.961e-07  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:  6.619e-01  2.327e-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:  1.420e+00  3.359e-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: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623582/likelihoodResults_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.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) = 4111.27431988
delta logL = -0.000715242726073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4111.27360462
delta logL = 1.27774910652e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4111.274     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      258 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.404        .16278E-01** at limit **
   2  Index         2.3700        5.1010        .50000        .67280E-07
   3  Normalizat    1.4201        .12807E-01    .28037E-03    .51994E-03
   4  Prefactor     .66190        .92489E-02    .28354E-03    .47206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37001
  Normalizat = 1.42009
  Prefactor  = 0.661904
 **********
 **   18 **HESSE 
 **********

 FCN=   4111.274     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    259.42        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3700        6.1885        .50000       -.55389    
   3  Normalizat    1.4201        .41408E-01    .56074E-04   -.80049    
   4  Prefactor     .66190        .29905E-01    .56707E-04   -1.0504    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61739e-10
Minuit parameter uncertainties:
  1  7.6156e-05
  2  919.228
  3  0.0414089
  4  0.0299053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623582': 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) = 4111.27360342
delta logL = 1.21707944345e-06

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  7.616e-05  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  2.370e+00  9.192e+02  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:  6.619e-01  2.991e-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:  1.420e+00  4.141e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/623582/cmap_HighResolution_428284801_428544001_4FGL_J1722.6+6104_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-17 06:21:53.489259', job_id='623582', GAL2='0.66', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1631884913.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='729' AND source_name='4FGL J1722.6+6104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 06:21:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 623582: <4FGL_J1722.6+6104_daily_bin729> in cluster <slac> Done

Job <4FGL_J1722.6+6104_daily_bin729> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 06:05:24 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 06:05:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 06:05:25 2021
Terminated at Fri Sep 17 06:21:54 2021
Results reported at Fri Sep 17 06:21:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_daily_bin729 260.662 61.0734 428284801 428544001 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 :                                   971.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

