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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin145
RA = 150.294, Dec = 29.188
tmin = 276912001, tmax = 277171201
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='654671', job_status='RUN', time_executed='2021-09-01 09:49:54.803218', time_epoch_executed='1630514994.8' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654671/ft1_4FGL_J1001.1+2911_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654671/ft1_4FGL_J1001.1+2911_daily_bin145.fits outfile=/scratch/kocevski/654671/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin145.fits ra=150.294 dec=29.188 rad=12.0 tmin=276912001.0 tmax=277171201.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.49
user 3.29
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.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/654671/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin145.fits evtable="EVENTS" outfile="/scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/654671/ltcube_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.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/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits
.....................!
real 11.94
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/654671/ltcube_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.fits outfile=/scratch/kocevski/654671/expmap_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.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/654671/ltcube_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.fits
.....................!
real 190.26
user 186.12
sys 3.81

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

Setting source of interest to:
4FGL J1001.1+2911 @ 150.294 29.188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits scfile=/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits outfile=/scratch/kocevski/654671/cmap_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.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=150.294 yref=29.188 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits scfile=/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits outfile=/scratch/kocevski/654671/cmap_HighResolution_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.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=150.294 yref=29.188 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/654671/Model_4FGL_J1001.1+2911_daily_bin145.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/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits.....................!
real 49.44
user 47.26
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits', '/scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits', expMap='/scratch/kocevski/654671/expmap_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.fits', expCube='/scratch/kocevski/654671/ltcube_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/654671/Model_4FGL_J1001.1+2911_daily_bin145.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1001.1+2911'

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/654671/ft1_filtered_4FGL_J1001.1+2911_daily_bin145.fits
Spacecraft file(s): /scratch/kocevski/654671/ft2_4FGL_J1001.1+2911_daily_bin145.fits
Exposure map: /scratch/kocevski/654671/expmap_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.fits
Exposure cube: /scratch/kocevski/654671/ltcube_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/654671/Model_4FGL_J1001.1+2911_daily_bin145.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) = 5504.69775136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2422       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1205       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.092       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5471       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.352       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.2699       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.002       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10958E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.3327       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2643       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76506       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5504.665     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2337 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2421        3.7907       -.41792E-07   -.35583E-04
   2  norm          1.1199        1.5416       -.35561E-06   -.10604E-02
   3  Prefactor     .10000E-03    38.861        .33352E-05** at limit **
   4  Prefactor     .10000E-03    .96691       -.52106E-07** at limit **
   5  Prefactor     23.802        20.624       -.90777E-06    .51925E-05
   6  Prefactor     .10000E-03    20.137        .97841E-06** at limit **
   7  Prefactor     17.065        29.387       -.34563E-04   -.48823E-06
   8  Prefactor     8.5448        30.867       -.56676E-05   -.98275E-05
   9  Prefactor     18.352        7.6790       -.22976E-06   -.66110E-06
  10  Prefactor     .10000E-03    4.0182        .13470E-07** at limit **
  11  Prefactor     .10000E-03    .55170        .36430E-07** at limit **
  12  norm          7.2686        9.3208       -.71315E-06   -.10604E-03
  13  Prefactor     .10000E-03    1.7973       -.93479E-08** at limit **
  14  Prefactor     36.000        30.819       -.21366E-05    .41220E-05
  15  Prefactor     .10000E-03    1.7770       -.31350E-07** at limit **
  16  norm          8.3329        7.4877       -.55344E-07   -.14103E-05
  17  Prefactor     .10000E-03    15.336        .32160E-05** at limit **
  18  Prefactor     .10000E-03    16.109       -.18058E-05** at limit **
  19  Prefactor     4.2636        4.0444       -.10208E-06   -.10303E-03
  20  Prefactor     .10000E-03    4.3226        .20809E-06** at limit **
  21  Prefactor     .10000E-03    1.1027       -.24189E-06** at limit **
  22  Prefactor     .10000E-03    18.920       -.33523E-05** at limit **
  23  Normalizat    .76499        .16207        .34970E-05   -.17294E-04
  24  Prefactor     1.1813        .18309       -.41812E-06    .17441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.24212
  norm       = 1.11995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8022
  Prefactor  = 0.0001
  Prefactor  = 17.0654
  Prefactor  = 8.54484
  Prefactor  = 18.3522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.26863
  Prefactor  = 0.0001
  Prefactor  = 35.9997
  Prefactor  = 0.0001
  norm       = 8.33293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.764991
  Prefactor  = 1.18131
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.665     FROM HESSE     STATUS=OK           399 CALLS     2736 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2421        3.7876        .11922E-03   -1.5250    
   2  norm          1.1199        1.3801        .10485E-02   -1.5496    
   3  Prefactor     .10000E-03    38.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .97445        .71224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.802        20.626        .82103E-04   -1.4732    
   6  Prefactor     .10000E-03    20.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.065        29.382        .96879E-04   -1.4882    
   8  Prefactor     8.5448        30.867        .13711E-03   -1.5123    
   9  Prefactor     18.352        7.6797        .93492E-04   -1.4851    
  10  Prefactor     .10000E-03    4.0327        .14522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .55640        .53799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2686        9.3121        .14876E-03   -1.5169    
  13  Prefactor     .10000E-03    1.8274        .96996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.000        30.820        .66792E-04   -1.4507    
  15  Prefactor     .10000E-03    3.7131        .19120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.3329        7.4855        .13888E-03   -1.5131    
  17  Prefactor     .10000E-03    15.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2636        4.0379        .14032E-03   -1.5295    
  20  Prefactor     .10000E-03    4.4618        .30110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.3903        .15013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76499        .18883        .24240E-03   -1.0138    
  24  Prefactor     1.1813        .21590        .23161E-03   -.86909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59991e-10
Minuit parameter uncertainties:
  1  3.78778
  2  1.38011
  3  5.30138e-05
  4  2.44034e-06
  5  20.6324
  6  7.78453e-06
  7  29.4068
  8  30.9244
  9  7.68012
  10  2.05111e-06
  11  1.38934e-06
  12  9.31392
  13  5.05405e-06
  14  30.8334
  15  3.73015e-05
  16  7.48633
  17  1.41533e-05
  18  1.01514e-05
  19  4.03811
  20  1.75011e-05
  21  0.000110795
  22  3.15107e-05
  23  0.18899
  24  0.21606
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.389e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.181e+00  2.161e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  7.650e-01  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 3.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654671/likelihoodResults_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.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) = 5504.6654263
delta logL = -5.444357339e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5504.66537257
delta logL = -7.16969225323e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5504.665     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      218 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9840        .90712E-02** at limit **
   2  Index         1.8408        5.1171        .50000       -.17128E-06
   3  Normalizat    .76499        .85512E-02    .43154E-01   -.28266E-03
   4  Prefactor     1.1813        .99874E-02    .52386E-01   -.40349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.84075
  Normalizat = 0.764994
  Prefactor  = 1.1813
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.665     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.108        .58054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8408        8.9022        .50000       -.68394    
   3  Normalizat    .76499        .38873E-01    .24240E-03   -1.0138    
   4  Prefactor     1.1813        .45405E-01    .23161E-03   -.86909    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.74322e-09
Minuit parameter uncertainties:
  1  5.54942e-05
  2  403.746
  3  0.0388749
  4  0.0454064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654671': 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) = 5504.66535963
delta logL = 1.22281553558e-05

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.549e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.841e+00  4.037e+02  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.181e+00  4.541e-02  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  7.650e-01  3.887e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 150.294 29.188

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/654671/cmap_HighResolution_276912001_277171201_4FGL_J1001.1+2911_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.83e-08', time_completed='2021-09-01 10:00:03.210309', job_id='654671', GAL2='1.18', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630515603.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.22e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='145' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:00:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 654671: <4FGL_J1001.1+2911_daily_bin145> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin145> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:51 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:45:52 2021
Terminated at Wed Sep  1 10:00:04 2021
Results reported at Wed Sep  1 10:00:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin145 150.294 29.188 276912001 277171201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1001.1+2911 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   607.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

