/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 6 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7500
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin998
RA = 150.294, Dec = 29.188
tmin = 498009601, tmax = 498268801
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='660725', job_status='RUN', time_executed='2021-09-01 10:05:39.631812', time_epoch_executed='1630515939.63' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660725/ft1_4FGL_J1001.1+2911_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660725/ft2_4FGL_J1001.1+2911_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660725/ft1_4FGL_J1001.1+2911_daily_bin998.fits outfile=/scratch/kocevski/660725/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin998.fits ra=150.294 dec=29.188 rad=12.0 tmin=498009601.0 tmax=498268801.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 8.17
user 7.77
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660725/ft1_filtered_4FGL_J1001.1+2911_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/660725/ft2_4FGL_J1001.1+2911_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/660725/ltcube_498009601_498268801_4FGL_J1001.1+2911_daily_bin998.fits outfile=/scratch/kocevski/660725/expmap_498009601_498268801_4FGL_J1001.1+2911_daily_bin998.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/660725/ltcube_498009601_498268801_4FGL_J1001.1+2911_daily_bin998.fits
.....................!
real 196.44
user 188.61
sys 5.69

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/660725/ft1_filtered_4FGL_J1001.1+2911_daily_bin998.fits scfile=/scratch/kocevski/660725/ft2_4FGL_J1001.1+2911_daily_bin998.fits outfile=/scratch/kocevski/660725/cmap_498009601_498268801_4FGL_J1001.1+2911_daily_bin998.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660725/ft1_filtered_4FGL_J1001.1+2911_daily_bin998.fits scfile=/scratch/kocevski/660725/ft2_4FGL_J1001.1+2911_daily_bin998.fits outfile=/scratch/kocevski/660725/cmap_HighResolution_498009601_498268801_4FGL_J1001.1+2911_daily_bin998.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .18044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.385       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.650       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.500       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3848       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0288       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1170       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9872       1.0000         .10000E-03   10000.    
    16 'norm      '    13.391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12970E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67085       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3053       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=   4264.101     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2725 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6739        .38215E-08** at limit **
   2  norm          .10000E-03    1.1286       -.34325E-07** at limit **
   3  Prefactor     14.385        53.383        .51812E-06   -.58545E-06
   4  Prefactor     .10000E-03    2.0126        .48209E-08** at limit **
   5  Prefactor     13.650        16.176        .62790E-07    .42178E-06
   6  Prefactor     .10000E-03    42.393        .78309E-06** at limit **
   7  Prefactor     .10000E-03    74.428        .13633E-05** at limit **
   8  Prefactor     30.497        52.340        .51724E-06   -.20803E-04
   9  Prefactor     34.096        11.405        .61072E-07   -.19704E-04
  10  Prefactor     9.3849        11.422       -.78423E-07   -.11490E-04
  11  Prefactor     1.0297        2.3786        .29893E-08   -.15217E-03
  12  norm          2.1180        6.1836        .36766E-06    .15739E-05
  13  Prefactor     3.1168        5.1157       -.33480E-07    .50974E-04
  14  Prefactor     .10000E-03    62.504       -.99585E-06** at limit **
  15  Prefactor     2.9878        6.6966        .32089E-05    .55573E-04
  16  norm          13.390        16.456       -.48224E-06   -.18738E-04
  17  Prefactor     .10000E-03    48.944       -.10015E-05** at limit **
  18  Prefactor     .10000E-03    14.002       -.24861E-07** at limit **
  19  Prefactor     .10000E-03    2.2569        .98836E-08** at limit **
  20  Prefactor     .10000E-03    3.1068        .64071E-08** at limit **
  21  Prefactor     .10000E-03    1.7580        .46941E-07** at limit **
  22  Prefactor     .10000E-03    9.1555       -.55007E-08** at limit **
  23  Normalizat    .67077        .19735       -.12103E-05    .18470E-04
  24  Prefactor     1.3053        .21356        .26116E-06    .38329E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3852
  Prefactor  = 0.0001
  Prefactor  = 13.6498
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 30.4973
  Prefactor  = 34.0959
  Prefactor  = 9.38489
  Prefactor  = 1.02972
  norm       = 2.11802
  Prefactor  = 3.11683
  Prefactor  = 0.000100002
  Prefactor  = 2.98782
  norm       = 13.3895
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.67077
  Prefactor  = 1.30535
 **********
 **   18 **HESSE 
 **********

 FCN=   4264.101     FROM HESSE     STATUS=OK           403 CALLS     3128 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6799        .82497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.902        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.385        53.374        .10560E-03   -1.4949    
   4  Prefactor     .10000E-03    2.0407        .90381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.650        16.172        .10841E-03   -1.4969    
   6  Prefactor     .10000E-03    42.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    75.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.497        52.335        .72549E-04   -1.4603    
   9  Prefactor     34.096        11.364        .68627E-04   -1.4539    
  10  Prefactor     9.3849        11.416        .13082E-03   -1.5095    
  11  Prefactor     1.0297        2.0084        .14441E-02   -1.5505    
  12  norm          2.1180        6.1528        .26856E-03   -1.5417    
  13  Prefactor     3.1168        5.0270        .72331E-03   -1.5355    
  14  Prefactor     .10000E-03    62.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9878        6.6749        .97066E-03   -1.5362    
  16  norm          13.390        16.502        .10946E-03   -1.4976    
  17  Prefactor     .10000E-03    49.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2649        .95790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1273        .11239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3915        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .67077        .23093        .27239E-03   -1.0506    
  24  Prefactor     1.3053        .25256        .22798E-03   -.83148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94728e-09
Minuit parameter uncertainties:
  1  5.36531e-07
  2  9.66574e-05
  3  53.5522
  4  1.07219e-06
  5  16.1771
  6  0.000437047
  7  0.000988794
  8  52.4136
  9  11.3643
  10  11.4185
  11  2.0085
  12  6.15466
  13  5.02763
  14  0.000688824
  15  6.67652
  16  16.5072
  17  0.000532052
  18  8.16246e-06
  19  5.54316e-08
  20  8.114e-07
  21  6.04788e-06
  22  2.7857e-06
  23  0.231268
  24  0.252799
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.030e+00  2.008e+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.305e+00  2.528e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  6.708e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.39
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660725/likelihoodResults_498009601_498268801_4FGL_J1001.1+2911_daily_bin998.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) = 4263.87343574
delta logL = 0.227524291741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4263.86910643
delta logL = 0.231853606853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60790       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1958       1.0000          .0000       10.000    
     3 'Normalizat'    .64546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3211       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=   4263.869     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      250 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60797        18.791        .11704E-01    .31042E-03
   2  Index         3.1959        6.5784        .14262        .95821E-04
   3  Normalizat    .64543        .43651E-01    .62648E-01    .18317E-04
   4  Prefactor     1.3211        .49018E-01    .51281E-01    .34501E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.607969
  Index      = 3.19587
  Normalizat = 0.645432
  Prefactor  = 1.32108
 **********
 **   18 **HESSE 
 **********

 FCN=   4263.869     FROM HESSE     STATUS=OK            35 CALLS      285 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60797        2.9396        .66307E-03   -1.5552    
   2  Index         3.1959        2.5163        .82262E-02   -.36915    
   3  Normalizat    .64543        .22708        .27717E-03   -1.0609    
   4  Prefactor     1.3211        .25341        .22671E-03   -.82682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92507e-10
Minuit parameter uncertainties:
  1  2.67372
  2  2.65793
  3  0.227411
  4  0.253645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660725': 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) = 4263.86910641
delta logL = 0.23185362708

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  6.080e-01  2.674e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.196e+00  2.658e+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.321e+00  2.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:  6.454e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/660725/cmap_HighResolution_498009601_498268801_4FGL_J1001.1+2911_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-01 10:15:40.855622', job_id='660725', GAL2='1.32', fit_tolerance='1e-08', EG2='0.65', EG='0.67', time_epoch_completed='1630516540.86', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='2.32e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='998' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 660725: <4FGL_J1001.1+2911_daily_bin998> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin998> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:05:19 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:05:21 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:21 2021
Terminated at Wed Sep  1 10:15:41 2021
Results reported at Wed Sep  1 10:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin998 150.294 29.188 498009601 498268801 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            622 sec.

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

