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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin626
RA = 150.294, Dec = 29.188
tmin = 401587201, tmax = 401846401
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='657659', job_status='RUN', time_executed='2021-09-01 09:58:04.419926', time_epoch_executed='1630515484.42' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657659

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657659/ft1_4FGL_J1001.1+2911_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657659/ft2_4FGL_J1001.1+2911_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657659/ft1_4FGL_J1001.1+2911_daily_bin626.fits outfile=/scratch/kocevski/657659/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin626.fits ra=150.294 dec=29.188 rad=12.0 tmin=401587201.0 tmax=401846401.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 5.61
user 3.96
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657659/ft1_filtered_4FGL_J1001.1+2911_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/657659/ft2_4FGL_J1001.1+2911_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/657659/ltcube_401587201_401846401_4FGL_J1001.1+2911_daily_bin626.fits outfile=/scratch/kocevski/657659/expmap_401587201_401846401_4FGL_J1001.1+2911_daily_bin626.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/657659/ltcube_401587201_401846401_4FGL_J1001.1+2911_daily_bin626.fits
.....................!
real 189.80
user 184.84
sys 4.46

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/657659/ft1_filtered_4FGL_J1001.1+2911_daily_bin626.fits scfile=/scratch/kocevski/657659/ft2_4FGL_J1001.1+2911_daily_bin626.fits outfile=/scratch/kocevski/657659/cmap_401587201_401846401_4FGL_J1001.1+2911_daily_bin626.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.73
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657659/ft1_filtered_4FGL_J1001.1+2911_daily_bin626.fits scfile=/scratch/kocevski/657659/ft2_4FGL_J1001.1+2911_daily_bin626.fits outfile=/scratch/kocevski/657659/cmap_HighResolution_401587201_401846401_4FGL_J1001.1+2911_daily_bin626.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8627       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3739       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17488E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11603E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2387       1.0000         .10000E-03   10000.    
    12 'norm      '    .17297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58044       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.702       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.548       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6329       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .68573       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0123       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0163       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4988.490     FROM MIGRAD    STATUS=CONVERGED    985 CALLS     3179 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8626        3.9052        .11077E-03    .19501E-05
   2  norm          2.3740        1.8497        .81126E-04   -.22982E-04
   3  Prefactor     41.898        45.472        .61929E-04   -.14686E-04
   4  Prefactor     4.3245        3.8096        .12180E-03   -.17734E-03
   5  Prefactor     .10000E-03    7.1118        .18142E-02** at limit **
   6  Prefactor     .10000E-03    183.34        .18142E-02** at limit **
   7  Prefactor     .10000E-03    11.755        .18142E-02** at limit **
   8  Prefactor     .10000E-03    102.70        .18142E-02** at limit **
   9  Prefactor     8.8025        7.2098        .13505E-03   -.39708E-03
  10  Prefactor     .10000E-03    9.6882        .18142E-02** at limit **
  11  Prefactor     3.2389        2.6992        .10062E-03   -.36595E-03
  12  norm          .16035        95.744        .37647E-02   -.27706E-03
  13  Prefactor     .57267        7.7470        .25095E-02    .29101E-03
  14  Prefactor     12.692        33.071        .11239E-03   -.18106E-04
  15  Prefactor     .10000E-03    4.4822        .21271E-02** at limit **
  16  norm          12.445        10.976        .11355E-03    .43252E-04
  17  Prefactor     52.564        59.828        .55328E-04   -.13972E-04
  18  Prefactor     .10000E-03    13.420        .18142E-02** at limit **
  19  Prefactor     .10000E-03    3.3652        .24984E-03** at limit **
  20  Prefactor     7.6329        7.4201        .14515E-03   -.14521E-03
  21  Prefactor     .10000E-03    .92310        .65539E-03** at limit **
  22  Prefactor     .44356        468.17        .61856E-02    .14304E-03
  23  Normalizat    1.0126        .22250        .22840E-03   -.35026E-03
  24  Prefactor     1.0160        .23476        .25799E-03   -.31920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.86259
  norm       = 2.37396
  Prefactor  = 41.8981
  Prefactor  = 4.32446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.80245
  Prefactor  = 0.0001
  Prefactor  = 3.23893
  norm       = 0.160353
  Prefactor  = 0.572669
  Prefactor  = 12.6918
  Prefactor  = 0.000100002
  norm       = 12.4452
  Prefactor  = 52.5641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63293
  Prefactor  = 0.0001
  Prefactor  = 0.443561
  Normalizat = 1.01256
  Prefactor  = 1.01604
 **********
 **   18 **HESSE 
 **********

 FCN=   4988.490     FROM HESSE     STATUS=OK           381 CALLS     3560 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8626        3.9046        .44307E-05   -1.5224    
   2  norm          2.3740        1.8495        .32451E-05   -1.5400    
   3  Prefactor     41.898        45.467        .24771E-05   -1.4412    
   4  Prefactor     4.3245        3.8062        .48720E-05   -1.5292    
   5  Prefactor     .10000E-03    7.1120        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    183.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    102.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.8025        7.2014        .54021E-05   -1.5115    
  10  Prefactor     .10000E-03    9.6917        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2389        2.6983        .40250E-05   -1.5348    
  12  norm          .16035        98.276        .15059E-02   -1.5628    
  13  Prefactor     .57267        7.6133        .10038E-03   -1.5557    
  14  Prefactor     12.692        33.060        .44957E-05   -1.4995    
  15  Prefactor     .10000E-03    4.4866        .42541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.445        10.975        .45420E-05   -1.5002    
  17  Prefactor     52.564        59.820        .11066E-04   -1.4257    
  18  Prefactor     .10000E-03    13.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.3653        .49967E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6329        7.4173        .58061E-05   -1.5155    
  21  Prefactor     .10000E-03    .92320        .13108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .44356        481.45        .24743E-03   -1.5575    
  23  Normalizat    1.0126        .22028        .45679E-04   -.92611    
  24  Prefactor     1.0160        .23450        .51597E-04   -.92197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50708e-09
Minuit parameter uncertainties:
  1  3.90479
  2  1.84953
  3  45.5043
  4  3.80645
  5  8.62875e-06
  6  0.000305074
  7  7.44469e-06
  8  0.000440976
  9  7.20209
  10  3.30526e-05
  11  2.69837
  12  7.95015
  13  4.17637
  14  33.1079
  15  0.000200166
  16  10.9763
  17  59.8889
  18  5.85814e-06
  19  1.11988e-06
  20  7.41817
  21  3.12966e-06
  22  29.4639
  23  0.220478
  24  0.234734
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  3.239e+00  2.698e+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.016e+00  2.347e-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.013e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.43e-05

TS (Fixed Index): 2.54
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657659/likelihoodResults_401587201_401846401_4FGL_J1001.1+2911_daily_bin626.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) = 4987.80357525
delta logL = 0.686030507377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4987.79669376
delta logL = 0.692911997548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2518       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1948       1.0000          .0000       10.000    
     3 'Normalizat'    .96439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0520       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=   4987.797     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      236 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2518        12.885        .99895E-02    .97938E-03
   2  Index         3.1948        2.8992        .11968        .14583E-03
   3  Normalizat    .96439        .54509E-01    .45719E-01    .37370E-04
   4  Prefactor     1.0520        .60006E-01    .57464E-01   -.36481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25175
  Index      = 3.19478
  Normalizat = 0.964395
  Prefactor  = 1.05202
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2518        2.7397        .48585E-04   -1.5484    
   2  Index         3.1948        1.2614        .45348E-02   -.36939    
   3  Normalizat    .96439        .20940        .23314E-03   -.94233    
   4  Prefactor     1.0520        .23338        .25410E-03   -.91015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64671e-11
Minuit parameter uncertainties:
  1  2.74
  2  1.27735
  3  0.209582
  4  0.233605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657659': 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) = 4987.79669376
delta logL = 0.692911998576

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.252e+00  2.740e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.195e+00  1.277e+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.052e+00  2.336e-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.644e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.00
Ra Dec: 150.294 29.188
Photon Index (Free Index): 3.19 +/- 1.28
Photon Flux (Free Index): 7.86e-08 +/- 5.34e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.01e-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/657659/cmap_HighResolution_401587201_401846401_4FGL_J1001.1+2911_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='1.44e-05', photon_flux_error='3.60e-08', dlogl='6.93e-01', energy_flux='1.72e-05', photon_flux2='7.86e-08', job_status='DONE', time_completed='2021-09-01 10:08:44.097426', photon_index_error2='1.28', photon_index2='3.19', ts='2.54', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.01e-05', EG='1.01', time_epoch_completed='1630516124.1', return_code='0', job_id='657659', GAL2='1.05', EG2='0.96', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.34e-08', ts2='4.00', photon_index='2.27' WHERE bin_id='626' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:08:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 657659: <4FGL_J1001.1+2911_daily_bin626> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin626 150.294 29.188 401587201 401846401 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 :                                   636.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             244.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

