/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 135 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin49
RA = 150.294, Dec = 29.188
tmin = 252028801, tmax = 252288001
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='654519', job_status='RUN', time_executed='2021-09-01 09:48:03.584945', time_epoch_executed='1630514883.58' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654519

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654519/ft1_4FGL_J1001.1+2911_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654519/ft2_4FGL_J1001.1+2911_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654519/ft1_4FGL_J1001.1+2911_daily_bin49.fits outfile=/scratch/kocevski/654519/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin49.fits ra=150.294 dec=29.188 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.41
user 1.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/654519/ft2_4FGL_J1001.1+2911_daily_bin49.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/654519/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/654519/ft1_filtered_4FGL_J1001.1+2911_daily_bin49.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654519/ft1_filtered_4FGL_J1001.1+2911_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/654519/ft2_4FGL_J1001.1+2911_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/654519/ltcube_252028801_252288001_4FGL_J1001.1+2911_daily_bin49.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/654519/ft2_4FGL_J1001.1+2911_daily_bin49.fits
.....................!
real 13.17
user 12.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654519/ft1_filtered_4FGL_J1001.1+2911_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/654519/ft2_4FGL_J1001.1+2911_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/654519/ltcube_252028801_252288001_4FGL_J1001.1+2911_daily_bin49.fits outfile=/scratch/kocevski/654519/expmap_252028801_252288001_4FGL_J1001.1+2911_daily_bin49.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/654519/ltcube_252028801_252288001_4FGL_J1001.1+2911_daily_bin49.fits
.....................!
real 189.58
user 185.17
sys 3.98

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/654519/ft1_filtered_4FGL_J1001.1+2911_daily_bin49.fits scfile=/scratch/kocevski/654519/ft2_4FGL_J1001.1+2911_daily_bin49.fits outfile=/scratch/kocevski/654519/cmap_252028801_252288001_4FGL_J1001.1+2911_daily_bin49.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654519/ft1_filtered_4FGL_J1001.1+2911_daily_bin49.fits scfile=/scratch/kocevski/654519/ft2_4FGL_J1001.1+2911_daily_bin49.fits outfile=/scratch/kocevski/654519/cmap_HighResolution_252028801_252288001_4FGL_J1001.1+2911_daily_bin49.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.59
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77173E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6755       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.319       1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .79357       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6197       1.0000         .10000E-03   10000.    
    12 'norm      '    9.5796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15946E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.877       1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.226       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .59153E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3943       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8959       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77802       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0859       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=   7885.900     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     2886 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94092E-01    1.4329       -.45885E-07    .35716E-04
   2  norm          1.7189        1.3211        .28881E-07   -.10449E-05
   3  Prefactor     36.273        48.579        .42813E-06   -.84057E-06
   4  Prefactor     8.6740        3.8515       -.23923E-07   -.72570E-04
   5  Prefactor     8.0116        18.285       -.89918E-06   -.16556E-04
   6  Prefactor     .10000E-03    30.559       -.19230E-06** at limit **
   7  Prefactor     36.287        43.535        .10644E-04    .52638E-04
   8  Prefactor     57.844        35.166        .14307E-06   -.36995E-05
   9  Prefactor     .10000E-03    2.5408        .54053E-07** at limit **
  10  Prefactor     .78925        7.0829       -.39748E-07   -.31841E-03
  11  Prefactor     3.6199        1.9056        .44487E-07   -.52734E-04
  12  norm          9.5788        6.0089        .65384E-07   -.18667E-04
  13  Prefactor     .10000E-03    1.4661        .54548E-07** at limit **
  14  Prefactor     .10000E-03    83.248       -.11770E-05** at limit **
  15  Prefactor     .10000E-03    1.7658        .86136E-07** at limit **
  16  norm          .10000E-03    2.9817        .12819E-07** at limit **
  17  Prefactor     32.872        42.837        .15246E-05   -.49859E-05
  18  Prefactor     44.414        32.241       -.76169E-06   -.15223E-03
  19  Prefactor     .12333E-03    2.8785        .33732E-06** at limit **
  20  Prefactor     3.3924        2.2210        .39052E-06   -.25758E-02
  21  Prefactor     .10000E-03    .50377       -.37811E-07** at limit **
  22  Prefactor     3.8915        19.370       -.54575E-05   -.35783E-04
  23  Normalizat    .77801        .14599       -.18309E-05   -.11160E-04
  24  Prefactor     1.0862        .15669        .72020E-06   -.15695E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.094092
  norm       = 1.71889
  Prefactor  = 36.2734
  Prefactor  = 8.67398
  Prefactor  = 8.01157
  Prefactor  = 0.0001
  Prefactor  = 36.287
  Prefactor  = 57.8438
  Prefactor  = 0.0001
  Prefactor  = 0.789247
  Prefactor  = 3.61987
  norm       = 9.57876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.8723
  Prefactor  = 44.4137
  Prefactor  = 0.000123329
  Prefactor  = 3.39237
  Prefactor  = 0.0001
  Prefactor  = 3.89149
  Normalizat = 0.778009
  Prefactor  = 1.0862
 **********
 **   18 **HESSE 
 **********

 FCN=   7885.900     FROM HESSE     STATUS=OK           413 CALLS     3299 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94092E-01    10.405        .20636E-02   -1.5647    
   2  norm          1.7189        1.3134        .86132E-04   -1.5446    
   3  Prefactor     36.273        48.643        .66534E-04   -1.4503    
   4  Prefactor     8.6740        3.8505        .10864E-03   -1.5119    
   5  Prefactor     8.0116        18.281        .14162E-03   -1.5142    
   6  Prefactor     .10000E-03    30.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.287        43.493        .66500E-04   -1.4502    
   8  Prefactor     57.844        35.178        .52743E-04   -1.4185    
   9  Prefactor     .10000E-03    2.5726        .13816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .78925        7.5549        .46683E-03   -1.5530    
  11  Prefactor     3.6199        1.9048        .85168E-04   -1.5327    
  12  norm          9.5788        6.0070        .12948E-03   -1.5089    
  13  Prefactor     .10000E-03    2.8821        .20346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    86.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4315        .22275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9870        .14974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.872        42.857        .69884E-04   -1.4561    
  18  Prefactor     44.414        34.835        .60285E-04   -1.4374    
  19  Prefactor     .12333E-03    7.9473        .42173E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3924        4.8431        .10980E-02   -1.5340    
  21  Prefactor     .10000E-03    .50860        .61524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8915        19.431        .20442E-03   -1.5313    
  23  Normalizat    .77801        .16505        .24649E-03   -1.0089    
  24  Prefactor     1.0862        .17964        .23758E-03   -.89909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10622e-09
Minuit parameter uncertainties:
  1  1.97826
  2  1.31345
  3  48.696
  4  3.85065
  5  18.2941
  6  1.03263e-05
  7  43.5312
  8  35.1906
  9  5.92132e-06
  10  4.88422
  11  1.90487
  12  6.00741
  13  5.55501e-06
  14  0.000115449
  15  3.08322e-06
  16  2.99549e-07
  17  42.8972
  18  34.851
  19  0.0272363
  20  4.84361
  21  9.29696e-07
  22  17.4001
  23  0.165151
  24  0.179744
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.620e+00  1.905e+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.086e+00  1.797e-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.780e-01  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.24
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.01e-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) = 7885.6568805
delta logL = 0.243312250468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7885.65674039
delta logL = 0.243452355381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1139       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9933       1.0000          .0000       10.000    
     3 'Normalizat'    .79043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       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=   7885.657     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      256 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1108        56.996        .49688E-02    .11741E-03
   2  Index         1.9927        5.9539        .18601        .30142E-04
   3  Normalizat    .79059        .10853        .43485E-01    .10485E-03
   4  Prefactor     1.0783        .94975E-01    .38472E-01   -.42432E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11081
  Index      = 1.99266
  Normalizat = 0.790592
  Prefactor  = 1.07826
 **********
 **   18 **HESSE 
 **********

 FCN=   7885.657     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1108        2.2538        .94573E-04   -1.5302    
   2  Index         1.9927        .38710        .68992E-02   -.64534    
   3  Normalizat    .79059        .15731        .24471E-03   -1.0042    
   4  Prefactor     1.0783        .17632        .23835E-03   -.90164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79864e-10
Minuit parameter uncertainties:
  1  2.25385
  2  0.387703
  3  0.157398
  4  0.176417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654519': 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) = 7885.65673735
delta logL = 0.243455394291

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  4.111e+00  2.254e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.993e+00  3.877e-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.078e+00  1.764e-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.906e-01  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.70
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.99 +/- 0.39
Photon Flux (Free Index): 3.75e-08 +/- 2.58e-08
Energy Flux (Free Index): 2.64e-05 +/- 2.03e-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/654519/cmap_HighResolution_252028801_252288001_4FGL_J1001.1+2911_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='2.64e-05', photon_flux_error='2.54e-08', dlogl='2.43e-01', energy_flux='1.92e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-01 09:59:31.357830', photon_index_error2='0.39', photon_index2='1.99', ts='9.24', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.03e-05', EG='0.78', time_epoch_completed='1630515571.36', return_code='0', job_id='654519', GAL2='1.08', EG2='0.79', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='2.58e-08', ts2='9.70', photon_index='2.27' WHERE bin_id='49' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:59:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 654519: <4FGL_J1001.1+2911_daily_bin49> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin49> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:37 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:38 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:38 2021
Terminated at Wed Sep  1 09:59:32 2021
Results reported at Wed Sep  1 09:59:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin49 150.294 29.188 252028801 252288001 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 :                                   681.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

