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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin117
RA = 150.294, Dec = 29.188
tmin = 269654401, tmax = 269913601
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='654626', job_status='RUN', time_executed='2021-09-01 09:49:04.680523', time_epoch_executed='1630514944.68' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654626/ft1_4FGL_J1001.1+2911_daily_bin117.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654626/ft2_4FGL_J1001.1+2911_daily_bin117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654626/ft1_4FGL_J1001.1+2911_daily_bin117.fits outfile=/scratch/kocevski/654626/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin117.fits ra=150.294 dec=29.188 rad=12.0 tmin=269654401.0 tmax=269913601.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.50
user 3.27
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654626/ft1_filtered_4FGL_J1001.1+2911_daily_bin117.fits evtable="EVENTS" scfile=/scratch/kocevski/654626/ft2_4FGL_J1001.1+2911_daily_bin117.fits sctable="SC_DATA" expcube=/scratch/kocevski/654626/ltcube_269654401_269913601_4FGL_J1001.1+2911_daily_bin117.fits outfile=/scratch/kocevski/654626/expmap_269654401_269913601_4FGL_J1001.1+2911_daily_bin117.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/654626/ltcube_269654401_269913601_4FGL_J1001.1+2911_daily_bin117.fits
.....................!
real 190.39
user 184.76
sys 5.26

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/654626/ft1_filtered_4FGL_J1001.1+2911_daily_bin117.fits scfile=/scratch/kocevski/654626/ft2_4FGL_J1001.1+2911_daily_bin117.fits outfile=/scratch/kocevski/654626/cmap_269654401_269913601_4FGL_J1001.1+2911_daily_bin117.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.61
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654626/ft1_filtered_4FGL_J1001.1+2911_daily_bin117.fits scfile=/scratch/kocevski/654626/ft2_4FGL_J1001.1+2911_daily_bin117.fits outfile=/scratch/kocevski/654626/cmap_HighResolution_269654401_269913601_4FGL_J1001.1+2911_daily_bin117.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.93
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6188       1.0000         .10000E-03   10000.    
     2 'norm      '    .55738E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.388       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.189       1.0000         .10000E-03   10000.    
     6 'Prefactor '    101.06       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .47932E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    8.7861       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.380       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5997       1.0000         .10000E-03   10000.    
    16 'norm      '    18.586       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5111       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1048       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7061       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0459       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0804       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=   6891.981     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2696 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6185        2.8911        .11033E-05    .14291E-03
   2  norm          .55450E-01    .75915       -.81228E-06    .32164E-03
   3  Prefactor     10.360        85.519       -.78695E-04    .24645E-04
   4  Prefactor     .10000E-03    1.4097        .81157E-07** at limit **
   5  Prefactor     20.163        28.499       -.39281E-04    .13995E-03
   6  Prefactor     101.05        64.236       -.61569E-05    .71485E-04
   7  Prefactor     .10000E-03    16.477       -.37961E-05** at limit **
   8  Prefactor     25.478        48.599       -.36579E-04    .44120E-04
   9  Prefactor     .10000E-03    5.0030        .23036E-06** at limit **
  10  Prefactor     .10000E-03    1.8200       -.57352E-07** at limit **
  11  Prefactor     .44676E-01    .97832       -.75043E-06    .77816E-03
  12  norm          8.7864        6.6729       -.10575E-05    .13578E-03
  13  Prefactor     .10000E-03    1.0705       -.12749E-06** at limit **
  14  Prefactor     10.369        48.883       -.31774E-04    .26543E-04
  15  Prefactor     5.5981        3.9642       -.14955E-05   -.81745E-05
  16  norm          18.581        12.818       -.24075E-05    .14962E-04
  17  Prefactor     .10000E-03    28.006       -.11984E-04** at limit **
  18  Prefactor     .10000E-03    25.319        .17632E-04** at limit **
  19  Prefactor     7.5051        5.1815       -.15840E-06   -.35307E-03
  20  Prefactor     .10000E-03    3.1773       -.10100E-05** at limit **
  21  Prefactor     3.1042        2.2167       -.90582E-06    .15694E-03
  22  Prefactor     1.6874        54.314       -.57792E-04   -.76877E-04
  23  Normalizat    1.0463        .16554        .99443E-05    .71249E-03
  24  Prefactor     1.0802        .17654        .64378E-05    .71073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61846
  norm       = 0.05545
  Prefactor  = 10.3605
  Prefactor  = 0.0001
  Prefactor  = 20.1629
  Prefactor  = 101.054
  Prefactor  = 0.0001
  Prefactor  = 25.4784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0446759
  norm       = 8.78641
  Prefactor  = 0.0001
  Prefactor  = 10.3692
  Prefactor  = 5.59814
  norm       = 18.581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.50506
  Prefactor  = 0.000100003
  Prefactor  = 3.10421
  Prefactor  = 1.68744
  Normalizat = 1.04628
  Prefactor  = 1.08017
 **********
 **   18 **HESSE 
 **********

 FCN=   6891.981     FROM HESSE     STATUS=OK           405 CALLS     3101 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6185        2.8921        .12296E-03   -1.5328    
   2  norm          .55450E-01    4.9527        .14012E-02   -1.5661    
   3  Prefactor     10.360        86.420        .12432E-03   -1.5064    
   4  Prefactor     .10000E-03    1.4227        .96172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.163        28.480        .89140E-04   -1.4810    
   6  Prefactor     101.05        64.266        .19996E-03   -1.3694    
   7  Prefactor     .10000E-03    16.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.478        48.759        .79330E-04   -1.4698    
   9  Prefactor     .10000E-03    5.0880        .18114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8212        .10938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44676E-01    33.779        .15400E-02   -1.5666    
  12  norm          8.7864        6.6721        .13523E-03   -1.5115    
  13  Prefactor     .10000E-03    1.0750        .83801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.369        49.280        .12436E-03   -1.5064    
  15  Prefactor     5.5981        3.9652        .13238E-03   -1.5235    
  16  norm          18.581        12.832        .92904E-04   -1.4846    
  17  Prefactor     .10000E-03    28.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5051        5.1807        .14633E-03   -1.5160    
  20  Prefactor     .10000E-03    7.4768        .28599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1042        2.2105        .99753E-04   -1.5356    
  22  Prefactor     1.6874        55.795        .32193E-03   -1.5448    
  23  Normalizat    1.0463        .19575        .23997E-03   -.91496    
  24  Prefactor     1.0802        .20752        .26042E-03   -.90103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18453e-09
Minuit parameter uncertainties:
  1  2.89218
  2  1.04724
  3  59.9623
  4  1.20109e-05
  5  28.499
  6  64.3105
  7  7.54083e-05
  8  48.8351
  9  6.90868e-05
  10  8.00926e-06
  11  2.45555
  12  6.6727
  13  8.71367e-06
  14  45.271
  15  3.96543
  16  12.8335
  17  0.000168893
  18  0.000105254
  19  5.18099
  20  0.000291874
  21  2.21053
  22  19.4254
  23  0.195883
  24  0.207675
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  4.468e-02  2.456e+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.080e+00  2.077e-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:  1.046e+00  1.959e-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: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654626/likelihoodResults_269654401_269913601_4FGL_J1001.1+2911_daily_bin117.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) = 6890.80698809
delta logL = 1.17360827696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6890.74859936
delta logL = 1.23199700764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21432E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.2660       1.0000          .0000       10.000    
     3 'Normalizat'    .96890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1355       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=   6890.749     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      300 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20134E-02    .24001E-01    .71256E-03** at limit **
   2  Index         6.2973        2.3993        .13521        .11908E-03
   3  Normalizat    .96874        .36924E-01    .45776E-01   -.44428E-04
   4  Prefactor     1.1354        .40851E-01    .57639E-01   -.16477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00201339
  Index      = 6.29733
  Normalizat = 0.968737
  Prefactor  = 1.13541
 **********
 **   18 **HESSE 
 **********

 FCN=   6890.749     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      335 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20134E-02    .64500E-01    .29918E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.2973        7.4729        .50209E-02    .26247    
   3  Normalizat    .96874        .14092        .24818E-03   -.94085    
   4  Prefactor     1.1354        .15356        .25488E-03   -.88343    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.36058e-07
Minuit parameter uncertainties:
  1  0.0222183
  2  5.21684
  3  0.140972
  4  0.153618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654626': 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) = 6890.74857226
delta logL = 1.2320241044

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.013e-03  2.222e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  6.297e+00  5.217e+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.135e+00  1.536e-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:  9.687e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 150.294 29.188
Photon Index (Free Index): 6.30 +/- 5.22
Photon Flux (Free Index): 5.90e-08 +/- 4.44e-08
Energy Flux (Free Index): 7.24e-06 +/- 6.11e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/654626/cmap_HighResolution_269654401_269913601_4FGL_J1001.1+2911_daily_bin117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', comment='SUCCESS', energy_flux2='7.24e-06', dlogl='1.23e+00', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-01 10:01:08.835824', photon_index_error2='5.22', photon_index2='6.30', ts='0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='7.56e-08', energy_flux_error2='6.11e-06', EG='1.05', time_epoch_completed='1630515668.84', return_code='0', job_id='654626', GAL2='1.14', EG2='0.97', return_code2='102', photon_flux_error2='4.44e-08', ts2='2.60', photon_index='2.27' WHERE bin_id='117' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:01:08 PDT 2021


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

Job <4FGL_J1001.1+2911_daily_bin117> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:48 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:49 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:49 2021
Terminated at Wed Sep  1 10:01:09 2021
Results reported at Wed Sep  1 10:01:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin117 150.294 29.188 269654401 269913601 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 :                                   706.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

