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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin1126
RA = 150.294, Dec = 29.188
tmin = 531187201, tmax = 531446401
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='660916', job_status='RUN', time_executed='2021-09-01 10:05:48.367100', time_epoch_executed='1630515948.37' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660916

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660916/ft1_4FGL_J1001.1+2911_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660916/ft2_4FGL_J1001.1+2911_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660916/ft1_4FGL_J1001.1+2911_daily_bin1126.fits outfile=/scratch/kocevski/660916/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1126.fits ra=150.294 dec=29.188 rad=12.0 tmin=531187201.0 tmax=531446401.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 4.02
user 3.79
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660916/ft2_4FGL_J1001.1+2911_daily_bin1126.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/660916/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/660916/ft1_filtered_4FGL_J1001.1+2911_daily_bin1126.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 1.01
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660916/ft1_filtered_4FGL_J1001.1+2911_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/660916/ft2_4FGL_J1001.1+2911_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/660916/ltcube_531187201_531446401_4FGL_J1001.1+2911_daily_bin1126.fits outfile=/scratch/kocevski/660916/expmap_531187201_531446401_4FGL_J1001.1+2911_daily_bin1126.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/660916/ltcube_531187201_531446401_4FGL_J1001.1+2911_daily_bin1126.fits
.....................!
real 192.42
user 185.40
sys 4.40

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/660916/ft1_filtered_4FGL_J1001.1+2911_daily_bin1126.fits scfile=/scratch/kocevski/660916/ft2_4FGL_J1001.1+2911_daily_bin1126.fits outfile=/scratch/kocevski/660916/cmap_531187201_531446401_4FGL_J1001.1+2911_daily_bin1126.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.60
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39217       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .97981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.009       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    80.791       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14279E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28852       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.672       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4181       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93069       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95276       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5520.829     FROM MIGRAD    STATUS=FAILED       984 CALLS     3187 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39086        3.3860        .26559E-03    .17550E-04
   2  norm          .10000E-03    .61938        .56535E-03** at limit **
   3  Prefactor     .10000E-03    12.013        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.2154        .21220E-03** at limit **
   5  Prefactor     .10000E-03    17.484        .18142E-02** at limit **
   6  Prefactor     15.709        42.556        .10136E-03    .26806E-04
   7  Prefactor     .89481        368.26        .81459E-02    .45254E-03
   8  Prefactor     17.040        33.638        .97113E-04    .49168E-05
   9  Prefactor     .10000E-03    2.7527        .12004E-02** at limit **
  10  Prefactor     4.4483        4.3473        .14897E-03    .92802E-04
  11  Prefactor     .10000E-03    1.4884        .17365E-03** at limit **
  12  norm          .10000E-03    3.8320        .14155E-02** at limit **
  13  Prefactor     .10000E-03    2.2006        .16684E-02** at limit **
  14  Prefactor     80.832        48.784        .22342E-03    .38622E-04
  15  Prefactor     .10000E-03    2.3075        .10896E-02** at limit **
  16  norm          .10000E-03    40.579        .39498E-02** at limit **
  17  Prefactor     .10000E-03    44.008        .18142E-02** at limit **
  18  Prefactor     .10000E-03    21.733        .18142E-02** at limit **
  19  Prefactor     .27323        14.534        .22908E-02   -.21347E-03
  20  Prefactor     13.669        8.3438        .10833E-03    .50376E-04
  21  Prefactor     .10000E-03    .79667        .64436E-03** at limit **
  22  Prefactor     2.4145        30.662        .26322E-03    .57443E-05
  23  Normalizat    .93100        .18630        .21548E-03    .30780E-03
  24  Prefactor     .95266        .20400        .23833E-03    .46937E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5520.829     FROM SIMPLEX   STATUS=UNCHANGED   1287 CALLS     4474 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39086        3.3860        .63167E-06   -1.5583    
   2  norm          .10000E-03    .61938        .72474E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.013        .64304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2154        .19651E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.484        .40123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.709        42.556        .53483E-06   -1.4915    
   7  Prefactor     .89481        368.26        .55900E-06   -1.5519    
   8  Prefactor     17.040        33.638        .53450E-06   -1.4882    
   9  Prefactor     .10000E-03    2.7527        .20106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4483        4.3473        .54834E-06   -1.5286    
  11  Prefactor     .10000E-03    1.4884        .54458E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8320        .27460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2006        .54406E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     80.832        48.784        .49811E-06   -1.3907    
  15  Prefactor     .10000E-03    2.3075        .11235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    40.579        .11480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.008        .54027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.733        .69247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27323        14.534        .55753E-06   -1.5603    
  20  Prefactor     13.669        8.3438        .53642E-06   -1.4968    
  21  Prefactor     .10000E-03    .79667        .52506E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4145        30.662        .55094E-06   -1.5397    
  23  Normalizat    .93100        .18630        .34196E-06   -.95379    
  24  Prefactor     .95266        .20400        .33819E-06   -.94325    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5520.829     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     4854 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39087        3.3851        .10624E-04    .26539E-05
   2  norm          .10000E-03    .61943        .11307E-03** at limit **
   3  Prefactor     .10000E-03    12.013        .36285E-03** at limit **
   4  Prefactor     .10000E-03    2.2155        .42440E-04** at limit **
   5  Prefactor     .10000E-03    17.487        .36285E-03** at limit **
   6  Prefactor     15.709        42.555        .40545E-05     .0000    
   7  Prefactor     .89524        375.83        .16292E-02    .18897E-04
   8  Prefactor     17.041        33.633        .38845E-05     .0000    
   9  Prefactor     .10000E-03    2.7530        .24008E-03** at limit **
  10  Prefactor     4.4483        4.3473        .59586E-05   -.22895E-05
  11  Prefactor     .10000E-03    1.4884        .34730E-04** at limit **
  12  norm          .10000E-03    3.8326        .28310E-03** at limit **
  13  Prefactor     .10000E-03    2.2053        .33369E-03** at limit **
  14  Prefactor     80.832        48.774        .89367E-05   -.50885E-07
  15  Prefactor     .10000E-03    2.3081        .21792E-03** at limit **
  16  norm          .10000E-03    41.266        .78996E-03** at limit **
  17  Prefactor     .10000E-03    44.013        .36285E-03** at limit **
  18  Prefactor     .10000E-03    21.733        .36285E-03** at limit **
  19  Prefactor     .27332        14.531        .91631E-04   -.86850E-06
  20  Prefactor     13.669        8.3401        .43330E-05   -.52475E-06
  21  Prefactor     .10000E-03    .79670        .12887E-03** at limit **
  22  Prefactor     2.4146        30.661        .10529E-04   -.43190E-06
  23  Normalizat    .93100        .18522        .43095E-04   -.36141E-04
  24  Prefactor     .95266        .20397        .47666E-04   -.24662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.390866
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7087
  Prefactor  = 0.895241
  Prefactor  = 17.0405
  Prefactor  = 0.0001
  Prefactor  = 4.44826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 80.8323
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.27332
  Prefactor  = 13.6694
  Prefactor  = 0.0001
  Prefactor  = 2.41455
  Normalizat = 0.931004
  Prefactor  = 0.952656
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.829     FROM HESSE     STATUS=OK           375 CALLS     5229 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39087        3.3850        .10624E-04   -1.5583    
   2  norm          .10000E-03    .61943        .22614E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.013        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2155        .84880E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.487        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.709        42.555        .40545E-05   -1.4915    
   7  Prefactor     .89524        375.05        .32584E-03   -1.5519    
   8  Prefactor     17.041        33.633        .38845E-05   -1.4882    
   9  Prefactor     .10000E-03    2.7530        .48016E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4483        4.3476        .11917E-05   -1.5286    
  11  Prefactor     .10000E-03    1.4884        .69460E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8327        .56619E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2054        .66738E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     80.832        48.773        .89367E-05   -1.3907    
  15  Prefactor     .10000E-03    2.3082        .43585E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    41.294        .15799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.013        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.733        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27332        14.521        .36652E-05   -1.5603    
  20  Prefactor     13.669        8.3410        .86660E-06   -1.4968    
  21  Prefactor     .10000E-03    .79670        .25775E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4146        30.662        .21058E-05   -1.5397    
  23  Normalizat    .93100        .18505        .86191E-05   -.95379    
  24  Prefactor     .95266        .20396        .95332E-05   -.94325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52743e-12
Minuit parameter uncertainties:
  1  2.3004
  2  4.50804e-08
  3  3.53765e-07
  4  8.65601e-08
  5  2.1729e-06
  6  42.6376
  7  36.8803
  8  33.6708
  9  3.36169e-07
  10  4.34791
  11  5.49264e-08
  12  5.23142e-07
  13  1.57599e-07
  14  48.7969
  15  2.55891e-07
  16  2.08041e-05
  17  3.06887e-06
  18  8.19625e-06
  19  3.98477
  20  8.34169
  21  3.57375e-08
  22  17.2193
  23  0.185181
  24  0.204124
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.493e-08  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:  9.527e-01  2.041e-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.310e-01  1.852e-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: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660916/likelihoodResults_531187201_531446401_4FGL_J1001.1+2911_daily_bin1126.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) = 5520.83173871
delta logL = -0.00320418761839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5520.82853491
delta logL = -3.90342393075e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2728       1.0000          .0000       10.000    
     3 'Normalizat'    .93105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95270       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5520.829     FROM MIGRAD    STATUS=FAILED        87 CALLS      237 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    121.23        .17369E-03** at limit **
   2  Index         2.2833        5.2304        .50000       -.18133E-04
   3  Normalizat    .93100        .38415E-01    .21548E-03    .61202E-05
   4  Prefactor     .95266        .43149E-01    .23833E-03    .47701E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5520.829     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      391 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    121.23        .20067E-03** at limit **
   2  Index         2.2833        5.2304        .11555E-04   -.18133E-04
   3  Normalizat    .93100        .38415E-01    .26420E-06    .61202E-05
   4  Prefactor     .95266        .43149E-01    .27198E-06    .47701E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5520.829     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      476 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5860        .69477E-05** at limit **
   2  Index         2.3350        5.0687        .50000        .99017E-06
   3  Normalizat    .93100        .17918        .17238E-05    .26380E-04
   4  Prefactor     .95266        .20129        .19066E-05    .23851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33504
  Normalizat = 0.931004
  Prefactor  = 0.952656
 **********
 **   18 **HESSE 
 **********

 FCN=   5520.829     FROM HESSE     STATUS=OK            29 CALLS      505 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5002        .13895E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3350        5.3859        .50000       -.56213    
   3  Normalizat    .93100        .17957        .34477E-06   -.95379    
   4  Prefactor     .95266        .20173        .38133E-06   -.94325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5277e-11
Minuit parameter uncertainties:
  1  3.21595e-06
  2  34.2882
  3  0.179689
  4  0.201885
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660916': 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) = 5520.82853433
delta logL = 1.89739694179e-07

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.216e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.335e+00  3.429e+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:  9.527e-01  2.019e-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.310e-01  1.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 150.294 29.188

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/660916/cmap_HighResolution_531187201_531446401_4FGL_J1001.1+2911_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-01 10:18:58.760704', job_id='660916', GAL2='0.95', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630516738.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1126' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:18:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 660916: <4FGL_J1001.1+2911_daily_bin1126> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin1126> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:05:35 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:05:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:05:37 2021
Terminated at Wed Sep  1 10:18:59 2021
Results reported at Wed Sep  1 10:18:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin1126 150.294 29.188 531187201 531446401 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 :                                   779.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

