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


Performing analysis on: 4FGL_J1722.6+6104_daily_bin1205
RA = 260.662, Dec = 61.0734
tmin = 551664001, tmax = 551923201
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='628768', job_status='RUN', time_executed='2021-09-17 06:28:40.640397', time_epoch_executed='1631885320.64' WHERE source_name='4FGL J1722.6+6104' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628768/ft1_4FGL_J1722.6+6104_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628768/ft2_4FGL_J1722.6+6104_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628768/ft1_4FGL_J1722.6+6104_daily_bin1205.fits outfile=/scratch/kocevski/628768/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin1205.fits ra=260.662 dec=61.0734 rad=12.0 tmin=551664001.0 tmax=551923201.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 3.81
user 3.56
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628768/ft1_filtered_4FGL_J1722.6+6104_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/628768/ft2_4FGL_J1722.6+6104_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/628768/ltcube_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.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/628768/ft2_4FGL_J1722.6+6104_daily_bin1205.fits
.....................!
real 11.67
user 11.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628768/ft1_filtered_4FGL_J1722.6+6104_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/628768/ft2_4FGL_J1722.6+6104_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/628768/ltcube_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.fits outfile=/scratch/kocevski/628768/expmap_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.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/628768/ltcube_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.fits
.....................!
real 189.73
user 185.38
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/628768/ft1_filtered_4FGL_J1722.6+6104_daily_bin1205.fits scfile=/scratch/kocevski/628768/ft2_4FGL_J1722.6+6104_daily_bin1205.fits outfile=/scratch/kocevski/628768/cmap_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628768/ft1_filtered_4FGL_J1722.6+6104_daily_bin1205.fits scfile=/scratch/kocevski/628768/ft2_4FGL_J1722.6+6104_daily_bin1205.fits outfile=/scratch/kocevski/628768/cmap_HighResolution_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'norm      '    10000.       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    581.27       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .57423E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16205E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12477E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20508E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .32922E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    .17371E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    37 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    38 'Prefactor '    .23613E-10   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=   18.41267     FROM MIGRAD    STATUS=CONVERGED   1006 CALLS     7327 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm         10000.0        9264.7        .21352E-03** at limit **
   2  Prefactor    10000.0        5124.4        .19178E-02** at limit **
   3  Prefactor    10000.0        5050.4        .19236E-02** at limit **
   4  norm         10000.0        7798.6        .18920E-02** at limit **
   5  Prefactor    10000.0        7210.0        .19332E-02** at limit **
   6  norm          .10000E-03    651.50        .12283E-03** at limit **
   7  Prefactor    10000.0        9943.2        .25315E-03** at limit **
   8  Prefactor     581.79        6078.7        .21898E-03    .96379E-05
   9  norm          .10000E-03    450.44        .12231E-03** at limit **
  10  Prefactor     .10000E-03    279.68       -.80737E-04** at limit **
  11  Prefactor     .10000E-03    941.41       -.82964E-04** at limit **
  12  norm          .10007E-03    246.54       -.66041E-05** at limit **
  13  Prefactor     .10000E-03    567.05        .14861E-03** at limit **
  14  Prefactor     .10001E-03    2193.8       -.86240E-03** at limit **
  15  Prefactor     .10000E-03    237.58       -.10318E-03** at limit **
  16  Prefactor     .10000E-03    362.34        .33239E-04** at limit **
  17  Prefactor     .10000E-03    47.344        .26060E-07** at limit **
  18  Prefactor     .10000E-03    2143.9       -.83861E-03** at limit **
  19  norm          .10000E-03    76.070        .32074E-04** at limit **
  20  Prefactor     .10000E-03    72.727       -.20736E-04** at limit **
  21  Prefactor     .10000E-03    1200.5       -.29079E-03** at limit **
  22  Prefactor     .10000E-03    6415.3       -.10758E-02** at limit **
  23  norm          .10000E-03    113.91        .33616E-04** at limit **
  24  Prefactor     .10000E-03    609.60        .13943E-03** at limit **
  25  Prefactor     .10000E-03    308.78       -.43296E-04** at limit **
  26  Prefactor     .10000E-03    357.76        .27024E-04** at limit **
  27  norm          .10000E-03    157.88        .82980E-04** at limit **
  28  Prefactor     .10000E-03    901.94       -.50839E-04** at limit **
  29  Prefactor     .10000E-03    7408.9       -.19713E-03** at limit **
  30  Prefactor     .10000E-03    173.92        .25436E-04** at limit **
  31  norm          .10000E-03    209.05       -.74870E-04** at limit **
  32  Prefactor     .10000E-03    858.87       -.16324E-04** at limit **
  33  Prefactor     .10000E-03    709.89        .90981E-04** at limit **
  34  Prefactor     .10000E-03    546.18        .15068E-03** at limit **
  35  Prefactor     .10000E-03    6712.7       -.12207E-02** at limit **
  36  norm          .10000E-03    102.86       -.56612E-04** at limit **
  37  Normalizat    .10000E-01    .76574       -.56555E-06** at limit **
  38  Prefactor     .72720E-13    .51594       -.20948E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 581.785
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100068
  Prefactor  = 0.000100001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 7.27196e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   18.41267     FROM HESSE     STATUS=OK           856 CALLS     8183 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm         10000.0        9265.0        .21447E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        5124.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        5050.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        7797.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        7211.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    651.49        .10961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        9943.3        .21390E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     581.79        6046.1        .85476E-04   -1.0836    
   9  norm          .10000E-03    450.41        .90825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    279.67        .71359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    941.40        .13244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10007E-03    246.34        .66364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    566.87        .10210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    2194.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    237.57        .65723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    362.34        .81338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.343        .29245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2143.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    76.069        .37088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    72.726        .36262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1200.5        .15026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6415.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    113.90        .45411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    609.59        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    308.78        .75017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    357.75        .80815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    157.86        .53502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    901.93        .12955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7408.9        .21350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    173.92        .56172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    209.05        .61621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    858.86        .12632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    709.94        .11454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    546.15        .10018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .10000E-03    6712.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          .10000E-03    102.86        .43147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Normalizat    .10000E-01    .76554        .11913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Prefactor     .72720E-13    .51590        .97316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19893e-10
Minuit parameter uncertainties:
  1  0.0074634
  2  0.0526015
  3  0.062439
  4  0.0263036
  5  0.0856229
  6  1.284e-06
  7  0.00918978
  8  3684.74
  9  0.00016345
  10  1.71723e-06
  11  8.31905e-05
  12  0.00824865
  13  0.00131109
  14  0.0117736
  15  4.82724e-05
  16  1.42006e-05
  17  4.29722e-08
  18  0.000137987
  19  9.7087e-08
  20  4.09706e-07
  21  8.93502e-06
  22  7.09038e-05
  23  0.000130455
  24  1.00757e-06
  25  2.46366e-05
  26  8.28028e-07
  27  0.000103985
  28  5.80593e-05
  29  0.000166351
  30  7.20332e-05
  31  2.84715e-06
  32  1.17775e-06
  33  3.78779e-05
  34  5.66762e-05
  35  9.05245e-05
  36  1.14907e-05
  37  1.5292e-06
  38  3.90456e-07
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  4.827e-05  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:  7.272e-14  3.905e-07  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.000e-02  1.529e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 260.662 61.073
Photon Flux Upper Limit: 9.01e-06 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628768/likelihoodResults_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.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) = 18.4126917704
delta logL = -2.03473836642e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18.4126719414
delta logL = -5.18342275768e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15858E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5578       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .15905E-08   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=   18.41267     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      251 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12004E-03    840.35        .46290E-02** at limit **
   2  Index         3.4246        5.9356        .50000        .23384E-05
   3  Normalizat    .10000E-01    .10275E-01    .11913E-02** at limit **
   4  Prefactor     .84743E-11    .68648E-02    .97315E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000120044
  Index      = 3.42463
  Normalizat = 0.01
  Prefactor  = 8.47433e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   18.41267     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12004E-03    7363.0        .49127E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4246        6.6891        .50000       -.32053    
   3  Normalizat    .10000E-01    .73532E-01    .23826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84743E-11    .49165E-01    .19463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.65932e-08
Minuit parameter uncertainties:
  1  0.678758
  2  4836.74
  3  1.87284e-06
  4  1.29201e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628768': 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) = 18.4126716628
delta logL = -2.39792711909e-07

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.200e-04  6.788e-01  1.000e-04  1.000e+04 ( 1.000e-12)
353        Index:  3.425e+00  4.837e+03  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:  8.474e-12  1.292e-06  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.000e-02  1.873e-06  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/628768/cmap_HighResolution_551664001_551923201_4FGL_J1722.6+6104_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-01', job_status='DONE', photon_flux_upper_limit='9.01e-06', time_completed='2021-09-17 06:35:05.577029', job_id='628768', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631885705.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.84' WHERE bin_id='1205' AND source_name='4FGL J1722.6+6104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 06:35:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 628768: <4FGL_J1722.6+6104_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1722.6+6104_daily_bin1205> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 06:25:23 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 06:25: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:25:25 2021
Terminated at Fri Sep 17 06:35:06 2021
Results reported at Fri Sep 17 06:35:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.6+6104_daily_bin1205 260.662 61.0734 551664001 551923201 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 :                                   345.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             228.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   580 sec.
    Turnaround time :                            583 sec.

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

