/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 4 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1722.7+1014_daily_bin392
RA = 260.686, Dec = 10.2346
tmin = 340934401, tmax = 341193601
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='636711', job_status='RUN', time_executed='2021-09-17 06:55:48.709224', time_epoch_executed='1631886948.71' WHERE source_name='4FGL J1722.7+1014' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636711/ft1_4FGL_J1722.7+1014_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636711/ft1_4FGL_J1722.7+1014_daily_bin392.fits outfile=/scratch/kocevski/636711/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin392.fits ra=260.686 dec=10.2346 rad=12.0 tmin=340934401.0 tmax=341193601.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.37
user 3.13
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.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/636711/ft1_filteredMKT_4FGL_J1722.7+1014_daily_bin392.fits evtable="EVENTS" outfile="/scratch/kocevski/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.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/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/636711/ltcube_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.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/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits
.....................!
real 11.93
user 11.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/636711/ltcube_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.fits outfile=/scratch/kocevski/636711/expmap_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.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/636711/ltcube_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.fits
.....................!
real 189.61
user 184.95
sys 4.30

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 179 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1722.7+1014 @ 260.686 10.2346

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits scfile=/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits outfile=/scratch/kocevski/636711/cmap_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.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.686 yref=10.2346 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/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits scfile=/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits outfile=/scratch/kocevski/636711/cmap_HighResolution_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.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.686 yref=10.2346 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636711/Model_4FGL_J1722.7+1014_daily_bin392.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits.....................!
real 89.31
user 87.88
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits', '/scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits', expMap='/scratch/kocevski/636711/expmap_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.fits', expCube='/scratch/kocevski/636711/ltcube_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636711/Model_4FGL_J1722.7+1014_daily_bin392.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1722.7+1014'

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  5.801e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.209e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/636711/ft1_filtered_4FGL_J1722.7+1014_daily_bin392.fits
Spacecraft file(s): /scratch/kocevski/636711/ft2_4FGL_J1722.7+1014_daily_bin392.fits
Exposure map: /scratch/kocevski/636711/expmap_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.fits
Exposure cube: /scratch/kocevski/636711/ltcube_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636711/Model_4FGL_J1722.7+1014_daily_bin392.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) = 10569.2188488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3188       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2078       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.460       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2062       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .71415       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1622       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6120E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10569.18     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1528 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1861       -.25617E-07** at limit **
   2  Prefactor     4.3177        6.3026       -.61910E-06    .98931E-03
   3  Prefactor     .10000E-03    43.945       -.13891E-06** at limit **
   4  Prefactor     1.2095        9.1171       -.30962E-05    .33754E-03
   5  Prefactor     .10000E-03    19.062       -.38752E-07** at limit **
   6  Prefactor     .10000E-03    160.66       -.61349E-06** at limit **
   7  norm          .38798        1.3571       -.84917E-06   -.12441E-02
   8  Prefactor     13.454        16.953       -.55536E-07    .22999E-03
   9  norm          .10000E-03    4.8561        .38745E-08** at limit **
  10  Prefactor     .10000E-03    76.519        .28764E-06** at limit **
  11  Prefactor     4.2076        2.9479       -.48470E-07   -.89915E-04
  12  norm          .10000E-03    5.9147       -.22523E-08** at limit **
  13  norm          .71406        2.0356       -.64296E-06   -.84252E-03
  14  norm          .10000E-03    6.0401       -.18816E-07** at limit **
  15  norm          .10000E-03    25.344        .80453E-07** at limit **
  16  norm          .10000E-03    .19059       -.22513E-08** at limit **
  17  Normalizat    1.1622        .27455        .13153E-05    .67725E-04
  18  Prefactor     .98660        .73120E-01   -.28742E-07    .26857E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.31773
  Prefactor  = 0.0001
  Prefactor  = 1.20954
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.387985
  Prefactor  = 13.4543
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.20757
  norm       = 0.0001
  norm       = 0.71406
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.16225
  Prefactor  = 0.986601
 **********
 **   18 **HESSE 
 **********

 FCN=   10569.18     FROM HESSE     STATUS=OK           240 CALLS     1768 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2146        .17913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3177        6.2480        .19384E-03   -1.5292    
   3  Prefactor     .10000E-03    44.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2095        10.848        .41207E-03   -1.5488    
   5  Prefactor     .10000E-03    19.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    160.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38798        1.6818        .26391E-03   -1.5583    
   8  Prefactor     13.454        16.882        .10918E-03   -1.4974    
   9  norm          .10000E-03    4.8615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    76.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2076        2.9412        .13741E-03   -1.5298    
  12  norm          .10000E-03    5.9616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .71406        2.2060        .26415E-03   -1.5539    
  14  norm          .10000E-03    6.0890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    25.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .19377        .43803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1622        .30954        .47793E-03   -.87778    
  18  Prefactor     .98660        .82987E-01    .14198E-03   -.93177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84257e-09
Minuit parameter uncertainties:
  1  9.02856e-06
  2  6.24896
  3  0.000221533
  4  7.24601
  5  1.94843e-05
  6  0.00123208
  7  1.61541
  8  16.8879
  9  1.96799e-06
  10  0.000413608
  11  2.94126
  12  4.04067e-06
  13  2.20627
  14  2.35069e-06
  15  6.98585e-05
  16  5.47646e-07
  17  0.310025
  18  0.0829977
Done.

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

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  1.345e+01  1.689e+01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  2.209e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
609    Prefactor:  9.866e-01  8.300e-02  0.000e+00  1.000e+01 ( 1.000e+00)
610        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
611        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.162e+00  3.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 260.686 10.235
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636711/likelihoodResults_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.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): 0
logL (Free Index) = 10567.4997663
delta logL = 1.67570686089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10567.4710382
delta logL = 1.70443493529

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10567.47     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      338 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79101E-01    .45723        .34211E-02    .10198E-01
   2  Index         5.0003        1.5099        .95292E-01    .49057E-03
   3  Normalizat    1.0020        .66001E-01    .11482        .36341E-03
   4  Prefactor     1.0149        .18288E-01    .31696E-01    .14019E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0791015
  Index      = 5.00027
  Normalizat = 1.00197
  Prefactor  = 1.01495
 **********
 **   18 **HESSE 
 **********

 FCN=   10567.47     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      369 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79101E-01    1.1505        .15476E-04   -1.5652    
   2  Index         5.0003        2.8390        .35097E-02    .54686E-04
   3  Normalizat    1.0020        .26157        .50908E-03   -.92964    
   4  Prefactor     1.0149        .71355E-01    .14007E-03   -.92233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.81488e-10
Minuit parameter uncertainties:
  1  0.602971
  2  3.01914
  3  0.261902
  4  0.0713615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636711': 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) = 10567.4710379
delta logL = 1.70443524025

Extracting fit parameters...

4FGL J1722.7+1014
   Spectrum: PowerLaw
259    Prefactor:  7.910e-02  6.030e-01  1.000e-04  1.000e+04 ( 1.000e-13)
260        Index:  5.000e+00  3.019e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
609    Prefactor:  1.015e+00  7.136e-02  0.000e+00  1.000e+01 ( 1.000e+00)
610        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
611        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.002e+00  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 260.686 10.235
Photon Index (Free Index): 5.00 +/- 3.02
Photon Flux (Free Index): 1.72e-07 +/- 9.50e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.48e-05

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/636711/cmap_HighResolution_340934401_341193601_4FGL_J1722.7+1014_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='2.28e-05', dlogl='1.70e+00', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-17 07:08:32.297435', photon_index_error2='3.02', photon_index2='5.00', ts='0.80', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.48e-05', EG='1.16', time_epoch_completed='1631887712.3', return_code='0', job_id='636711', GAL2='1.01', EG2='1.00', return_code2='102', photon_flux_error2='9.50e-08', ts2='4.55', photon_index='2.21' WHERE bin_id='392' AND source_name='4FGL J1722.7+1014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 07:08:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 636711: <4FGL_J1722.7+1014_daily_bin392> in cluster <slac> Done

Job <4FGL_J1722.7+1014_daily_bin392> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 06:55:35 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 06:55:36 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:55:36 2021
Terminated at Fri Sep 17 07:08:33 2021
Results reported at Fri Sep 17 07:08:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1722.7+1014_daily_bin392 260.686 10.2346 340934401 341193601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1722.7+1014 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   760.00 sec.
    Max Memory :                                 1159 MB
    Average Memory :                             364.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

