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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin637
RA = 150.294, Dec = 29.188
tmin = 404438401, tmax = 404697601
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='657676', job_status='RUN', time_executed='2021-09-01 09:55:49.481215', time_epoch_executed='1630515349.48' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='637'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657676

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657676/ft1_4FGL_J1001.1+2911_daily_bin637.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657676/ft2_4FGL_J1001.1+2911_daily_bin637.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657676/ft1_4FGL_J1001.1+2911_daily_bin637.fits outfile=/scratch/kocevski/657676/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin637.fits ra=150.294 dec=29.188 rad=12.0 tmin=404438401.0 tmax=404697601.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 12.95
user 12.35
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657676/ft1_filtered_4FGL_J1001.1+2911_daily_bin637.fits" evtable="EVENTS" scfile=/scratch/kocevski/657676/ft2_4FGL_J1001.1+2911_daily_bin637.fits sctable="SC_DATA" outfile=/scratch/kocevski/657676/ltcube_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.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/657676/ft2_4FGL_J1001.1+2911_daily_bin637.fits
.....................!
real 11.19
user 10.82
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657676/ft1_filtered_4FGL_J1001.1+2911_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/657676/ft2_4FGL_J1001.1+2911_daily_bin637.fits sctable="SC_DATA" expcube=/scratch/kocevski/657676/ltcube_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.fits outfile=/scratch/kocevski/657676/expmap_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.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/657676/ltcube_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.fits
.....................!
real 191.56
user 185.71
sys 4.11

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/657676/ft1_filtered_4FGL_J1001.1+2911_daily_bin637.fits scfile=/scratch/kocevski/657676/ft2_4FGL_J1001.1+2911_daily_bin637.fits outfile=/scratch/kocevski/657676/cmap_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.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/657676/ft1_filtered_4FGL_J1001.1+2911_daily_bin637.fits scfile=/scratch/kocevski/657676/ft2_4FGL_J1001.1+2911_daily_bin637.fits outfile=/scratch/kocevski/657676/cmap_HighResolution_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.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/657676/ft1_filtered_4FGL_J1001.1+2911_daily_bin637.fits evtable="EVENTS" scfile=/scratch/kocevski/657676/ft2_4FGL_J1001.1+2911_daily_bin637.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657676/Model_4FGL_J1001.1+2911_daily_bin637.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/657676/ft1_filtered_4FGL_J1001.1+2911_daily_bin637.fits.....................!
real 37.84
user 34.91
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3386       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1850       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    87.060       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.584       1.0000         .10000E-03   10000.    
     7 'Prefactor '    267.30       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0215       1.0000         .10000E-03   10000.    
    12 'norm      '    8.1792       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .66875       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53142E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8360       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77584       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0540       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=   3362.938     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2804 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3385        13.543       -.42142E-05   -.92965E-04
   2  norm          2.1850        2.5971        .95292E-07   -.53757E-04
   3  Prefactor     .10000E-03    103.17        .77887E-05** at limit **
   4  Prefactor     2.3296        5.7078       -.12279E-05   -.12676E-03
   5  Prefactor     87.077        66.071        .18231E-05   -.60147E-05
   6  Prefactor     19.596        65.340        .36084E-05   -.75045E-05
   7  Prefactor     267.33        177.57        .26928E-05    .46895E-05
   8  Prefactor     .10000E-03    20.215        .29444E-06** at limit **
   9  Prefactor     .15723        7.9569       -.85825E-06   -.15349E-04
  10  Prefactor     11.682        19.363       -.10903E-05   -.98099E-05
  11  Prefactor     4.0221        4.1138       -.33241E-06   -.54873E-04
  12  norm          8.1803        7.8479       -.81791E-07   -.40240E-04
  13  Prefactor     .66758        11.642       -.36551E-05   -.54066E-04
  14  Prefactor     .10000E-03    61.997        .62769E-05** at limit **
  15  Prefactor     .10000E-03    4.3107       -.12315E-05** at limit **
  16  norm          .10000E-03    51.772       -.31875E-05** at limit **
  17  Prefactor     23.339        79.758       -.15050E-05   -.88035E-05
  18  Prefactor     .10000E-03    32.352        .10006E-05** at limit **
  19  Prefactor     .82259E-01    141.69        .16355E-04   -.51197E-05
  20  Prefactor     .10000E-03    3.6870        .70834E-06** at limit **
  21  Prefactor     1.1916        1.8734        .21071E-06   -.42365E-04
  22  Prefactor     3.8338        37.836       -.68891E-06   -.77077E-05
  23  Normalizat    .77584        .26197        .49925E-05   -.21241E-03
  24  Prefactor     1.0540        .25476       -.67202E-05   -.58629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33848
  norm       = 2.185
  Prefactor  = 0.0001
  Prefactor  = 2.3296
  Prefactor  = 87.0771
  Prefactor  = 19.5957
  Prefactor  = 267.328
  Prefactor  = 0.0001
  Prefactor  = 0.157225
  Prefactor  = 11.682
  Prefactor  = 4.02213
  norm       = 8.18026
  Prefactor  = 0.667581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 23.339
  Prefactor  = 0.0001
  Prefactor  = 0.0822593
  Prefactor  = 0.0001
  Prefactor  = 1.19164
  Prefactor  = 3.83385
  Normalizat = 0.775844
  Prefactor  = 1.05398
 **********
 **   18 **HESSE 
 **********

 FCN=   3362.938     FROM HESSE     STATUS=OK           413 CALLS     3217 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3385        13.810        .37898E-03   -1.5477    
   2  norm          2.1850        2.5823        .98432E-04   -1.5412    
   3  Prefactor     .10000E-03    103.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3296        5.6912        .20365E-03   -1.5403    
   5  Prefactor     87.077        67.142        .43058E-04   -1.3839    
   6  Prefactor     19.596        65.425        .90506E-04   -1.4822    
   7  Prefactor     267.33        178.05        .12400E-03   -1.2423    
   8  Prefactor     .10000E-03    20.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15723        162.54        .28274E-02   -1.5629    
  10  Prefactor     11.682        19.292        .11721E-03   -1.5024    
  11  Prefactor     4.0221        4.1032        .11192E-03   -1.5307    
  12  norm          8.1803        7.8492        .14018E-03   -1.5136    
  13  Prefactor     .66758        11.950        .36112E-02   -1.5545    
  14  Prefactor     .10000E-03    62.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3100        .11723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    52.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.339        79.837        .82916E-04   -1.4741    
  18  Prefactor     .10000E-03    32.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .82259E-01    9.7862        .52147E-01   -1.5651    
  20  Prefactor     .10000E-03    3.7299        .10878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1916        1.8435        .94464E-04   -1.5490    
  22  Prefactor     3.8338        37.886        .20606E-03   -1.5316    
  23  Normalizat    .77584        .29687        .25877E-03   -1.0097    
  24  Prefactor     1.0540        .28319        .23480E-03   -.90951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64202e-08
Minuit parameter uncertainties:
  1  8.60094
  2  2.58239
  3  5.70738e-05
  4  5.69248
  5  67.2009
  6  65.6656
  7  178.409
  8  2.94396e-05
  9  10.135
  10  19.3025
  11  4.10346
  12  7.85022
  13  5.64986
  14  0.000248617
  15  7.83783e-06
  16  0.00050747
  17  80.206
  18  2.66676e-05
  19  1.79365
  20  2.03846e-05
  21  1.84358
  22  24.1236
  23  0.297491
  24  0.283591
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  4.022e+00  4.103e+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.054e+00  2.836e-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.758e-01  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 5.47e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 2.18e-05

TS (Fixed Index): 1.54
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657676/likelihoodResults_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.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) = 3361.98474506
delta logL = 0.952983321646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3361.95535763
delta logL = 0.982370751844

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0507       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5989       1.0000          .0000       10.000    
     3 'Normalizat'    .69046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1176       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=   3361.955     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0469        14.231        .86396E-02    .19219E-02
   2  Index         3.6013        3.2990        .96026E-01    .23509E-03
   3  Normalizat    .69054        .73704E-01    .61598E-01    .25774E-04
   4  Prefactor     1.1172        .76468E-01    .36954E-01   -.96066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.04693
  Index      = 3.60129
  Normalizat = 0.690542
  Prefactor  = 1.11717
 **********
 **   18 **HESSE 
 **********

 FCN=   3361.955     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0469        4.8830        .38760E-04   -1.5503    
   2  Index         3.6013        2.2790        .38889E-02   -.28352    
   3  Normalizat    .69054        .27270        .27249E-03   -1.0427    
   4  Prefactor     1.1172        .28373        .22874E-03   -.88920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42665e-10
Minuit parameter uncertainties:
  1  4.5224
  2  2.3747
  3  0.273235
  4  0.284115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657676': 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) = 3361.9553519
delta logL = 0.982376484768

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.047e+00  4.522e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.601e+00  2.375e+00  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.117e+00  2.841e-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:  6.905e-01  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.66
Ra Dec: 150.294 29.188
Photon Index (Free Index): 3.60 +/- 2.37
Photon Flux (Free Index): 1.39e-07 +/- 9.93e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.77e-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/657676/cmap_HighResolution_404438401_404697601_4FGL_J1001.1+2911_daily_bin637.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='2.26e-05', photon_flux_error='5.47e-08', dlogl='9.82e-01', energy_flux='2.14e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-01 10:04:55.331520', photon_index_error2='2.37', photon_index2='3.60', ts='1.54', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.77e-05', EG='0.78', time_epoch_completed='1630515895.33', return_code='0', job_id='657676', GAL2='1.12', EG2='0.69', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='9.93e-08', ts2='3.66', photon_index='2.27' WHERE bin_id='637' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 657676: <4FGL_J1001.1+2911_daily_bin637> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin637> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:26 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:27 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:55:27 2021
Terminated at Wed Sep  1 10:04:56 2021
Results reported at Wed Sep  1 10:04:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin637 150.294 29.188 404438401 404697601 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 :                                   539.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            570 sec.

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

