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


Performing analysis on: 4FGL_J1741.2+5739_daily_bin1171
RA = 265.323, Dec = 57.6587
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='10469', job_status='RUN', time_executed='2021-09-18 04:50:48.047261', time_epoch_executed='1631965848.05' WHERE source_name='4FGL J1741.2+5739' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10469

Creating custom pfile directory:
/scratch/kocevski/10469/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/10469/ft1_4FGL_J1741.2+5739_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/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10469/ft1_4FGL_J1741.2+5739_daily_bin1171.fits outfile=/scratch/kocevski/10469/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin1171.fits ra=265.323 dec=57.6587 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.76
user 0.59
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_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/10469/ft1_filteredMKT_4FGL_J1741.2+5739_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_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.45
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/10469/ltcube_542851201_543110401_4FGL_J1741.2+5739_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/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits
.....................!
real 1.89
user 1.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/10469/ltcube_542851201_543110401_4FGL_J1741.2+5739_daily_bin1171.fits outfile=/scratch/kocevski/10469/expmap_542851201_543110401_4FGL_J1741.2+5739_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/10469/ltcube_542851201_543110401_4FGL_J1741.2+5739_daily_bin1171.fits
.....................!
real 190.83
user 185.98
sys 4.51

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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1741.2+5739 @ 265.323 57.6587

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits scfile=/scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits outfile=/scratch/kocevski/10469/cmap_542851201_543110401_4FGL_J1741.2+5739_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=265.323 yref=57.6587 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.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits scfile=/scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits outfile=/scratch/kocevski/10469/cmap_HighResolution_542851201_543110401_4FGL_J1741.2+5739_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=265.323 yref=57.6587 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.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10469/Model_4FGL_J1741.2+5739_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 GAL_V02
Working on...
/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits.....................!
real 19.35
user 18.15
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits', '/scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits', expMap='/scratch/kocevski/10469/expmap_542851201_543110401_4FGL_J1741.2+5739_daily_bin1171.fits', expCube='/scratch/kocevski/10469/ltcube_542851201_543110401_4FGL_J1741.2+5739_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10469/Model_4FGL_J1741.2+5739_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1741.2+5739'

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  8.390e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/10469/ft1_filtered_4FGL_J1741.2+5739_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/10469/ft2_4FGL_J1741.2+5739_daily_bin1171.fits
Exposure map: /scratch/kocevski/10469/expmap_542851201_543110401_4FGL_J1741.2+5739_daily_bin1171.fits
Exposure cube: /scratch/kocevski/10469/ltcube_542851201_543110401_4FGL_J1741.2+5739_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10469/Model_4FGL_J1741.2+5739_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) = 801.080256544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.201       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1957       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13438E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    630.10       1.0000         .10000E-03   10000.    
    15 'norm      '    9.8533       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.203       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    505.07       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    79.056       1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.126       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    34.917       1.0000         .10000E-03   10000.    
    28 'Prefactor '    48.758       1.0000         .10000E-03   10000.    
    29 'norm      '    99.110       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    7.2646       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   800.9508     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4708 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    36.157        .22484E-06** at limit **
   2  Prefactor     .10000E-03    11.414       -.37283E-06** at limit **
   3  norm          13.786        24.172        .42176E-06    .89813E-04
   4  Prefactor     .10000E-03    5.5545        .83833E-08** at limit **
   5  Prefactor     .10000E-03    25.820        .10827E-06** at limit **
   6  Prefactor     55.136        82.058        .10022E-05    .88734E-04
   7  norm          3.1975        4.0068        .23676E-06    .46193E-03
   8  norm          .10000E-03    1.6158       -.70622E-07** at limit **
   9  Prefactor     .10000E-03    11.187       -.22874E-06** at limit **
  10  Prefactor     .10000E-03    29.815       -.20797E-06** at limit **
  11  Prefactor     .10001E-03    31.372       -.43747E-05** at limit **
  12  Prefactor     .10001E-03    49.593       -.26259E-05** at limit **
  13  Prefactor     .10000E-03    14.468        .12560E-06** at limit **
  14  Prefactor     629.44        440.98       -.55734E-06    .28950E-04
  15  norm          9.8542        20.037        .27238E-06    .13904E-03
  16  Prefactor     .10000E-03    91.828        .91769E-07** at limit **
  17  Prefactor     29.206        24.258        .77803E-07    .23290E-03
  18  Prefactor     .10000E-03    101.90        .32575E-06** at limit **
  19  Prefactor     505.34        486.89        .24502E-05    .54182E-04
  20  Prefactor     .10000E-03    69.957       -.34481E-06** at limit **
  21  Prefactor     79.081        103.95        .88248E-06    .72535E-04
  22  Prefactor     42.130        41.188        .53576E-06    .10268E-03
  23  Prefactor     .10000E-03    25.540        .49376E-07** at limit **
  24  Prefactor     .10000E-03    49.637       -.58402E-07** at limit **
  25  Prefactor     .10000E-03    282.44       -.97839E-06** at limit **
  26  Prefactor     .10000E-03    11.254        .18210E-07** at limit **
  27  norm          34.922        38.549        .47730E-06    .13939E-03
  28  Prefactor     48.735        119.08       -.56391E-06    .34554E-04
  29  norm          99.092        69.357        .46124E-06    .16170E-03
  30  Prefactor     .10000E-03    25.750        .67214E-07** at limit **
  31  Prefactor     .10000E-03    197.27        .43897E-06** at limit **
  32  norm          7.2645        8.6333       -.62684E-07    .65445E-04
  33  Normalizat    .10000E-01    .30777       -.37261E-04** at limit **
  34  Prefactor     1.0812        .27925        .75835E-05    .33103E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.1363
  norm       = 3.19747
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 629.437
  norm       = 9.85418
  Prefactor  = 0.0001
  Prefactor  = 29.2057
  Prefactor  = 0.0001
  Prefactor  = 505.336
  Prefactor  = 0.0001
  Prefactor  = 79.0814
  Prefactor  = 42.1303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 34.9221
  Prefactor  = 48.7346
  norm       = 99.0924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.26447
  Normalizat = 0.01
  Prefactor  = 1.08123
 **********
 **   18 **HESSE 
 **********

 FCN=   800.9508     FROM HESSE     STATUS=OK           708 CALLS     5416 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    36.161        .16635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.419        .93384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.786        24.187        .10790E-03   -1.4965    
   4  Prefactor     .10000E-03    5.5550        .65155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.834        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     55.136        82.295        .26995E-03   -1.4222    
   7  norm          3.1975        4.0110        .61358E-04   -1.5350    
   8  norm          .10000E-03    1.6159        .35141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.186        .92472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.816        .15103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    30.646        .15279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    49.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.511        .10513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     629.44        440.71        .82311E-04   -1.0636    
  15  norm          9.8542        20.042        .12766E-03   -1.5080    
  16  Prefactor     .10000E-03    91.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.206        24.287        .74139E-04   -1.4627    
  18  Prefactor     .10000E-03    101.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     505.34        487.61        .91329E-04   -1.1173    
  20  Prefactor     .10000E-03    69.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     79.081        104.08        .22584E-03   -1.3927    
  22  Prefactor     42.130        41.217        .61764E-04   -1.4409    
  23  Prefactor     .10000E-03    25.541        .13977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    49.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    282.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.255        .92765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          34.922        38.591        .67818E-04   -1.4525    
  28  Prefactor     48.735        119.21        .57427E-04   -1.4311    
  29  norm          99.092        69.577        .20190E-03   -1.3714    
  30  Prefactor     .10000E-03    25.754        .14035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    197.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          7.2645        8.6346        .88428E-04   -1.5169    
  33  Normalizat    .10000E-01    .44046        .92540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.0812        .29442        .21911E-03   -.90069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07169e-09
Minuit parameter uncertainties:
  1  0.000139162
  2  6.5343e-05
  3  24.2043
  4  3.93441e-06
  5  5.25498e-05
  6  82.4649
  7  4.01129
  8  4.84151e-06
  9  2.48726e-05
  10  3.90301e-05
  11  0.00133513
  12  0.00103838
  13  6.38011e-05
  14  443.163
  15  20.0561
  16  8.026e-05
  17  24.2954
  18  0.000331818
  19  491.73
  20  0.000304041
  21  104.318
  22  41.2453
  23  1.32189e-05
  24  1.88918e-05
  25  0.00165468
  26  2.365e-05
  27  38.6191
  28  119.799
  29  69.6344
  30  2.42315e-05
  31  0.000608041
  32  8.63603
  33  2.12787e-05
  34  0.294859
Done.

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

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  5.053e+02  4.917e+02  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.081e+00  2.949e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.000e-02  2.128e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 265.323 57.659
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.94e-07 +/- 1.88e-07
Energy Flux (Fixed Index): 6.54e-05 +/- 6.36e-05

TS (Fixed Index): 2.38
Ra Dec: 265.323 57.659
Photon Flux Upper Limit: 6.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10469/likelihoodResults_542851201_543110401_4FGL_J1741.2+5739_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): 0
logL (Free Index) = 800.626824622
delta logL = 0.323937794463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 800.622738443
delta logL = 0.328023973591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.81       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2832       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+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=   800.6227     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      286 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.75        404.43        .38212E-04    .22120E-04
   2  Index         3.2834        1.7291        .21489E-02    .57032E-05
   3  Normalizat    .10000E-01    .36800        .89908E-02** at limit **
   4  Prefactor     1.0675        .24825        .21893E-03   -.88023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.752
  Index      = 3.28338
  Normalizat = 0.01
  Prefactor  = 1.06754
 **********
 **   18 **HESSE 
 **********

 FCN=   800.6227     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.75        302.17        .76424E-05   -1.3599    
   2  Index         3.2834        1.2903        .85955E-04   -.35045    
   3  Normalizat    .10000E-01    .36805        .17982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0675        .24819        .43786E-04   -.90511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06676e-10
Minuit parameter uncertainties:
  1  306.529
  2  1.30711
  3  2.96413e-06
  4  0.248463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10469': 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) = 800.622737941
delta logL = 0.328024475615

Extracting fit parameters...

4FGL J1741.2+5739
   Spectrum: PowerLaw
364    Prefactor:  1.108e+02  3.065e+02  1.000e-04  1.000e+04 ( 1.000e-14)
365        Index:  3.283e+00  1.307e+00  0.000e+00  1.000e+01 (-1.000e+00)
366        Scale:  1.396e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  1.068e+00  2.485e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.000e-02  2.964e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 265.323 57.659
Photon Index (Free Index): 3.28 +/- 1.31
Photon Flux (Free Index): 2.79e-07 +/- 2.34e-07
Energy Flux (Free Index): 4.95e-05 +/- 4.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/10469/cmap_HighResolution_542851201_543110401_4FGL_J1741.2+5739_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-02', comment='SUCCESS', photon_flux='1.94e-07', energy_flux2='4.95e-05', photon_flux_error='1.88e-07', dlogl='3.28e-01', energy_flux='6.54e-05', photon_flux2='2.79e-07', job_status='DONE', time_completed='2021-09-18 04:57:28.859205', photon_index_error2='1.31', photon_index2='3.28', ts='2.38', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='6.54e-07', energy_flux_error2='4.15e-05', EG='0.01', time_epoch_completed='1631966248.86', return_code='0', job_id='10469', GAL2='1.07', EG2='0.01', return_code2='0', energy_flux_error='6.36e-05', photon_flux_error2='2.34e-07', ts2='3.08', photon_index='2.38' WHERE bin_id='1171' AND source_name='4FGL J1741.2+5739' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 04:57:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 10469: <4FGL_J1741.2+5739_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1741.2+5739_daily_bin1171> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 04:50:32 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 04:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 04:50:35 2021
Terminated at Sat Sep 18 04:57:29 2021
Results reported at Sat Sep 18 04:57:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1741.2+5739_daily_bin1171 265.323 57.6587 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1741.2+5739 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   404.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   414 sec.
    Turnaround time :                            417 sec.

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

