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


Performing analysis on: 4FGL_J1841.0+6115_daily_bin1171
RA = 280.253, Dec = 61.2522
tmin = 542851201, tmax = 543110401
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='266726', job_status='RUN', time_executed='2021-09-21 08:33:16.235244', time_epoch_executed='1632238396.24' WHERE source_name='4FGL J1841.0+6115' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266726

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266726/ft1_4FGL_J1841.0+6115_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266726/ft1_4FGL_J1841.0+6115_daily_bin1171.fits outfile=/scratch/kocevski/266726/ft1_filteredMKT_4FGL_J1841.0+6115_daily_bin1171.fits ra=280.253 dec=61.2522 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.78
user 0.59
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.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/266726/ft1_filteredMKT_4FGL_J1841.0+6115_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.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.46
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/266726/ltcube_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.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/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits
.....................!
real 1.83
user 1.53
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/266726/ltcube_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.fits outfile=/scratch/kocevski/266726/expmap_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.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/266726/ltcube_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.fits
.....................!
real 189.64
user 185.39
sys 3.95

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
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 188 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1841.0+6115 @ 280.253 61.2522

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits scfile=/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits outfile=/scratch/kocevski/266726/cmap_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.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=280.253 yref=61.2522 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.50
user 0.37
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits scfile=/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits outfile=/scratch/kocevski/266726/cmap_HighResolution_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.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=280.253 yref=61.2522 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.51
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266726/Model_4FGL_J1841.0+6115_daily_bin1171.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 FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits......................!
real 20.61
user 19.43
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits', '/scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits', expMap='/scratch/kocevski/266726/expmap_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.fits', expCube='/scratch/kocevski/266726/ltcube_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266726/Model_4FGL_J1841.0+6115_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1841.0+6115'

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  3.678e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/266726/ft1_filtered_4FGL_J1841.0+6115_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/266726/ft2_4FGL_J1841.0+6115_daily_bin1171.fits
Exposure map: /scratch/kocevski/266726/expmap_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.fits
Exposure cube: /scratch/kocevski/266726/ltcube_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266726/Model_4FGL_J1841.0+6115_daily_bin1171.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) = 866.955178549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11503E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    491.05       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    363.20       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    49.264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.365       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13487E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.301       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19502E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.8893       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .13081E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.305       1.0000         .10000E-03   10000.    
    26 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    56.119       1.0000         .10000E-03   10000.    
    28 'Prefactor '    44.116       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5152       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .50867       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   866.9005     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3818 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.580       -.11770E-04** at limit **
   2  Prefactor     .10000E-03    23.931       -.46262E-05** at limit **
   3  Prefactor     .10000E-03    30.294        .16136E-04** at limit **
   4  Prefactor     491.06        408.77        .45561E-05   -.11141E-05
   5  Prefactor     .10000E-03    163.93       -.19725E-04** at limit **
   6  Prefactor     362.99        434.70       -.10873E-03   -.53838E-05
   7  norm          .10000E-03    12.642        .27837E-06** at limit **
   8  Prefactor     49.273        109.59        .11082E-04    .66948E-05
   9  Prefactor     29.365        39.727        .16463E-05    .83391E-06
  10  Prefactor     .10000E-03    23.372       -.60477E-05** at limit **
  11  norm          .10000E-03    11.541        .41621E-06** at limit **
  12  Prefactor     .10000E-03    49.046        .18474E-04** at limit **
  13  Prefactor     .10000E-03    271.78        .88751E-04** at limit **
  14  Prefactor     .10000E-03    9.1553        .43524E-06** at limit **
  15  norm          19.840        36.963       -.30909E-05    .92253E-05
  16  Prefactor     45.288        111.71       -.15785E-04    .45621E-05
  17  Prefactor     .10000E-03    22.103        .52045E-05** at limit **
  18  Prefactor     .10000E-03    34.330       -.14787E-04** at limit **
  19  Prefactor     .10000E-03    452.54       -.11717E-03** at limit **
  20  Prefactor     .10000E-03    173.99        .19985E-05** at limit **
  21  norm          .10000E-03    5.1583       -.56361E-06** at limit **
  22  norm          5.8880        7.0761        .70976E-06    .15863E-04
  23  norm          .10000E-03    14.245       -.37542E-06** at limit **
  24  norm          .10000E-03    78.993       -.77625E-05** at limit **
  25  Prefactor     32.323        68.576        .16059E-04    .20711E-04
  26  norm          .10000E-03    6.7584        .47592E-06** at limit **
  27  norm          56.155        81.929        .28629E-04   -.32955E-05
  28  Prefactor     44.078        88.323       -.39199E-04   -.34867E-06
  29  Normalizat    1.5143        .71175        .14474E-04   -.21022E-04
  30  Prefactor     .50891        .32465       -.47171E-05    .10007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 491.059
  Prefactor  = 0.0001
  Prefactor  = 362.989
  norm       = 0.0001
  Prefactor  = 49.2734
  Prefactor  = 29.3646
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.8402
  Prefactor  = 45.2884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.88797
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 32.3227
  norm       = 0.000100001
  norm       = 56.1553
  Prefactor  = 44.0778
  Normalizat = 1.51427
  Prefactor  = 0.50891
 **********
 **   18 **HESSE 
 **********

 FCN=   866.9005     FROM HESSE     STATUS=OK           564 CALLS     4382 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.938        .14064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.418        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     491.06        410.21        .92555E-04   -1.1239    
   5  Prefactor     .10000E-03    163.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     362.99        435.36        .10690E-03   -1.1874    
   7  norm          .10000E-03    12.724        .10225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     49.273        110.08        .57134E-04   -1.4303    
   9  Prefactor     29.365        39.947        .73935E-04   -1.4624    
  10  Prefactor     .10000E-03    23.370        .13909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.552        .97719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    271.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1564        .87036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.840        37.217        .90040E-04   -1.4817    
  16  Prefactor     45.288        111.74        .59569E-04   -1.4361    
  17  Prefactor     .10000E-03    22.105        .13526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.344        .16863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    452.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    173.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1598        .65326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.8880        7.0758        .83726E-04   -1.5223    
  23  norm          .10000E-03    14.249        .10858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    79.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     32.323        69.019        .70499E-04   -1.4570    
  26  norm          .10000E-03    6.7866        .74558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          56.155        82.006        .53548E-04   -1.4208    
  28  Prefactor     44.078        88.406        .60360E-04   -1.4379    
  29  Normalizat    1.5143        .84195        .31510E-03   -.77378    
  30  Prefactor     .50891        .38155        .24582E-03   -1.1157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81062e-10
Minuit parameter uncertainties:
  1  3.23008e-05
  2  0.000157978
  3  0.000413274
  4  412.71
  5  0.000101034
  6  439.39
  7  5.21238e-05
  8  110.534
  9  39.9832
  10  2.05364e-05
  11  2.3877e-05
  12  1.24113e-05
  13  2.20905e-05
  14  1.28506e-05
  15  37.2605
  16  112.265
  17  7.8026e-06
  18  5.70118e-05
  19  0.000183692
  20  3.40476e-05
  21  1.49813e-05
  22  7.07682
  23  2.38044e-05
  24  0.000373375
  25  69.1905
  26  0.000137618
  27  82.171
  28  88.6705
  29  0.849945
  30  0.383496
Done.

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

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  7.803e-06  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.547e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
627    Prefactor:  5.089e-01  3.835e-01  0.000e+00  1.000e+01 ( 1.000e+00)
628        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
629        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.514e+00  8.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 280.253 61.252
Photon Flux Upper Limit: 3.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266726/likelihoodResults_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.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) = 866.900712228
delta logL = -0.000191429265442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 866.900523125
delta logL = -2.32584523019e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8842       1.0000          .0000       10.000    
     3 'Normalizat'    1.5141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50874       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+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=   866.9005     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      278 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10566E-03    19.513        .10882E-01** at limit **
   2  Index         2.7739        8.0122        .50000        .22348E-04
   3  Normalizat    1.5143        .19325E-01    .31510E-03    .26010E-04
   4  Prefactor     .50890        .92773E-02    .24583E-03    .42923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105662
  Index      = 2.77388
  Normalizat = 1.51428
  Prefactor  = 0.508903
 **********
 **   18 **HESSE 
 **********

 FCN=   866.9005     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10566E-03    178.96        .11503E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7739        7.7511        .50000       -.46142    
   3  Normalizat    1.5143        .59278E-01    .63020E-04   -.77378    
   4  Prefactor     .50890        .28458E-01    .98330E-05   -1.1157    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04725e-08
Minuit parameter uncertainties:
  1  0.0638541
  2  409.024
  3  0.0592809
  4  0.0284589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266726': 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) = 866.90052184
delta logL = -1.04131174794e-06

Extracting fit parameters...

4FGL J1841.0+6115
   Spectrum: PowerLaw
349    Prefactor:  1.057e-04  6.385e-02  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.774e+00  4.090e+02  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  1.110e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
627    Prefactor:  5.089e-01  2.846e-02  0.000e+00  1.000e+01 ( 1.000e+00)
628        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
629        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.514e+00  5.928e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 280.253 61.252

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/266726/cmap_HighResolution_542851201_543110401_4FGL_J1841.0+6115_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-02', job_status='DONE', photon_flux_upper_limit='3.55e-07', time_completed='2021-09-21 08:39:53.162698', job_id='266726', GAL2='0.51', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1632238793.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='-1.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1171' AND source_name='4FGL J1841.0+6115' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 08:39:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 266726: <4FGL_J1841.0+6115_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1841.0+6115_daily_bin1171> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 21 08:30:33 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 08:30:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 08:30:34 2021
Terminated at Tue Sep 21 08:39:53 2021
Results reported at Tue Sep 21 08:39:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1841.0+6115_daily_bin1171 280.253 61.2522 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1841.0+6115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   378.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            560 sec.

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

