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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin921
RA = 150.294, Dec = 29.188
tmin = 478051201, tmax = 478310401
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='659549', job_status='RUN', time_executed='2021-09-01 10:04:45.408446', time_epoch_executed='1630515885.41' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659549/ft1_4FGL_J1001.1+2911_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659549/ft1_4FGL_J1001.1+2911_daily_bin921.fits outfile=/scratch/kocevski/659549/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin921.fits ra=150.294 dec=29.188 rad=12.0 tmin=478051201.0 tmax=478310401.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.54
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.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/659549/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin921.fits evtable="EVENTS" outfile="/scratch/kocevski/659549/ft1_filtered_4FGL_J1001.1+2911_daily_bin921.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659549/ft1_filtered_4FGL_J1001.1+2911_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/659549/ltcube_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.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/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits
.....................!
real 11.69
user 11.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659549/ft1_filtered_4FGL_J1001.1+2911_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/659549/ltcube_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.fits outfile=/scratch/kocevski/659549/expmap_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.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/659549/ltcube_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.fits
.....................!
real 190.16
user 185.32
sys 4.32

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/659549/ft1_filtered_4FGL_J1001.1+2911_daily_bin921.fits scfile=/scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits outfile=/scratch/kocevski/659549/cmap_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.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 1.01
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659549/ft1_filtered_4FGL_J1001.1+2911_daily_bin921.fits scfile=/scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits outfile=/scratch/kocevski/659549/cmap_HighResolution_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.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.76
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659549/ft1_filtered_4FGL_J1001.1+2911_daily_bin921.fits', '/scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits', expMap='/scratch/kocevski/659549/expmap_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.fits', expCube='/scratch/kocevski/659549/ltcube_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659549/Model_4FGL_J1001.1+2911_daily_bin921.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/659549/ft1_filtered_4FGL_J1001.1+2911_daily_bin921.fits
Spacecraft file(s): /scratch/kocevski/659549/ft2_4FGL_J1001.1+2911_daily_bin921.fits
Exposure map: /scratch/kocevski/659549/expmap_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.fits
Exposure cube: /scratch/kocevski/659549/ltcube_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659549/Model_4FGL_J1001.1+2911_daily_bin921.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) = 5512.94938656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17366       1.0000         .10000E-03   10000.    
     2 'norm      '    .37282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    106.10       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3522       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9058       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4141       1.0000         .10000E-03   10000.    
    12 'norm      '    25.099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.963       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.860       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46172E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.859       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16579E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4524       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25105E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82314       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0353       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=   5512.813     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2727 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18092        4.0723        .21560E-05   -.79782E-03
   2  norm          .37322        1.3891        .14773E-05    .71010E-03
   3  Prefactor     106.10        67.895        .22803E-06   -.24348E-04
   4  Prefactor     6.3527        4.5393       -.19766E-06   -.26089E-03
   5  Prefactor     .10000E-03    16.689       -.25336E-06** at limit **
   6  Prefactor     .10000E-03    42.457        .24940E-06** at limit **
   7  Prefactor     .10000E-03    18.921        .10580E-06** at limit **
   8  Prefactor     6.9130        22.812        .62514E-06    .33726E-04
   9  Prefactor     2.7222        4.3159        .30448E-06    .31770E-04
  10  Prefactor     .10000E-03    18.054        .39114E-06** at limit **
  11  Prefactor     5.4136        2.9749        .36675E-07   -.11186E-03
  12  norm          25.101        11.320        .75958E-07   -.77667E-04
  13  Prefactor     11.960        5.3928        .73732E-08   -.46070E-04
  14  Prefactor     .10000E-03    19.875        .30825E-06** at limit **
  15  Prefactor     .10000E-03    4.4328       -.40442E-07** at limit **
  16  norm          14.861        11.979        .64518E-06    .17066E-03
  17  Prefactor     .10001E-03    113.58       -.26777E-05** at limit **
  18  Prefactor     34.839        32.075        .10041E-06   -.45518E-04
  19  Prefactor     .10000E-03    4.7359       -.22001E-05** at limit **
  20  Prefactor     7.4625        10.718        .71435E-06   -.13686E-03
  21  Prefactor     .10004E-03    1.6543        .67039E-06** at limit **
  22  Prefactor     .10000E-03    12.988        .11410E-06** at limit **
  23  Normalizat    .82355        .18396       -.64654E-06   -.31165E-03
  24  Prefactor     1.0347        .19285       -.61333E-06   -.27728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.180915
  norm       = 0.373224
  Prefactor  = 106.101
  Prefactor  = 6.35273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91298
  Prefactor  = 2.72223
  Prefactor  = 0.0001
  Prefactor  = 5.41361
  norm       = 25.1014
  Prefactor  = 11.9598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8607
  Prefactor  = 0.000100012
  Prefactor  = 34.8386
  Prefactor  = 0.000100001
  Prefactor  = 7.46252
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Normalizat = 0.823554
  Prefactor  = 1.03469
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.813     FROM HESSE     STATUS=OK           397 CALLS     3124 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18092        7.4653        .23140E-02   -1.5623    
   2  norm          .37322        1.4189        .16551E-03   -1.5586    
   3  Prefactor     106.10        68.006        .39041E-04   -1.3644    
   4  Prefactor     6.3527        4.5258        .12425E-03   -1.5204    
   5  Prefactor     .10000E-03    16.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.9130        22.815        .15267E-03   -1.5182    
   9  Prefactor     2.7222        4.3009        .18734E-03   -1.5378    
  10  Prefactor     .10000E-03    18.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4136        2.9771        .89927E-04   -1.5243    
  12  norm          25.101        11.319        .79958E-04   -1.4706    
  13  Prefactor     11.960        5.3908        .10755E-03   -1.5016    
  14  Prefactor     .10000E-03    19.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5669        .30387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.861        12.016        .51951E-03   -1.4937    
  17  Prefactor     .10001E-03    114.74        .21196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.839        31.993        .67874E-04   -1.4527    
  19  Prefactor     .10000E-03    4.8715        .15817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4625        10.202        .14691E-03   -1.5162    
  21  Prefactor     .10004E-03    12.118        .16204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82355        .21182        .25416E-03   -.99201    
  24  Prefactor     1.0347        .22202        .25083E-03   -.91582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58047e-09
Minuit parameter uncertainties:
  1  2.32396
  2  1.41901
  3  68.0563
  4  4.526
  5  0.00011319
  6  0.000139826
  7  3.48273e-05
  8  22.844
  9  4.30142
  10  5.81511e-05
  11  2.97718
  12  11.3196
  13  5.39102
  14  0.000127964
  15  3.11038e-06
  16  12.018
  17  0.00237461
  18  32.0088
  19  0.000125342
  20  10.2042
  21  0.00146892
  22  3.79553e-05
  23  0.212034
  24  0.222215
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  5.414e+00  2.977e+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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.035e+00  2.222e-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:  8.236e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.44
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 7.23e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 1.58e-05

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) = 5512.31176206
delta logL = 0.501399067391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5512.30286963
delta logL = 0.510291501909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8060       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7616       1.0000          .0000       10.000    
     3 'Normalizat'    .77859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0643       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=   5512.303     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8057        28.722        .51725E-02    .79784E-03
   2  Index         2.7620        2.9901        .11019        .21041E-03
   3  Normalizat    .77848        .82568E-01    .43330E-01   -.10499E-03
   4  Prefactor     1.0644        .77463E-01    .56023E-01   -.89043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.80567
  Index      = 2.76201
  Normalizat = 0.778481
  Prefactor  = 1.06438
 **********
 **   18 **HESSE 
 **********

 FCN=   5512.303     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8057        2.9993        .63643E-04   -1.5318    
   2  Index         2.7620        .53764        .43251E-02   -.46408    
   3  Normalizat    .77848        .20462        .26036E-03   -1.0087    
   4  Prefactor     1.0644        .21993        .24771E-03   -.90613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04533e-10
Minuit parameter uncertainties:
  1  2.9994
  2  0.53894
  3  0.204826
  4  0.220112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659549': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5512.30286911
delta logL = 0.510292013977

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.806e+00  2.999e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.762e+00  5.389e-01  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.064e+00  2.201e-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.785e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.52
Ra Dec: 150.294 29.188
Photon Index (Free Index): 2.76 +/- 0.54
Photon Flux (Free Index): 1.12e-07 +/- 6.06e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.23e-05

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/659549/cmap_HighResolution_478051201_478310401_4FGL_J1001.1+2911_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.23e-08', energy_flux2='2.57e-05', photon_flux_error='3.97e-08', dlogl='5.10e-01', energy_flux='2.88e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-01 10:14:14.281837', photon_index_error2='0.54', photon_index2='2.76', ts='8.44', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='0.82', time_epoch_completed='1630516454.28', return_code='0', job_id='659549', GAL2='1.06', EG2='0.78', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='6.06e-08', ts2='9.52', photon_index='2.27' WHERE bin_id='921' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 659549: <4FGL_J1001.1+2911_daily_bin921> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin921> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:43 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:00:44 2021
Terminated at Wed Sep  1 10:14:15 2021
Results reported at Wed Sep  1 10:14:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin921 150.294 29.188 478051201 478310401 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

