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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1615
RA = 207.715, Dec = 30.5588
tmin = 657936001, tmax = 658195201
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='359397', job_status='RUN', time_executed='2021-12-08 00:48:06.512186', time_epoch_executed='1638953286.51' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359397

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359397/ft1_4FGL_J1350.8+3033_daily_bin1615.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359397/ft1_4FGL_J1350.8+3033_daily_bin1615.fits outfile=/scratch/kocevski/359397/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1615.fits ra=207.715 dec=30.5588 rad=12.0 tmin=657936001.0 tmax=658195201.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.07
user 3.85
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.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/359397/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1615.fits evtable="EVENTS" outfile="/scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits" evtable="EVENTS" scfile=/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits sctable="SC_DATA" outfile=/scratch/kocevski/359397/ltcube_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.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/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits
.....................!
real 12.99
user 12.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits sctable="SC_DATA" expcube=/scratch/kocevski/359397/ltcube_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.fits outfile=/scratch/kocevski/359397/expmap_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.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/359397/ltcube_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.fits
.....................!
real 191.98
user 185.47
sys 4.59

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

Setting source of interest to:
4FGL J1350.8+3033 @ 207.715 30.5588

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits scfile=/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits outfile=/scratch/kocevski/359397/cmap_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.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=207.715 yref=30.5588 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits scfile=/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits outfile=/scratch/kocevski/359397/cmap_HighResolution_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.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=207.715 yref=30.5588 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits evtable="EVENTS" scfile=/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359397/Model_4FGL_J1350.8+3033_daily_bin1615.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/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits.....................!
real 50.96
user 49.46
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits', '/scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits', expMap='/scratch/kocevski/359397/expmap_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.fits', expCube='/scratch/kocevski/359397/ltcube_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/359397/Model_4FGL_J1350.8+3033_daily_bin1615.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1350.8+3033'

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/359397/ft1_filtered_4FGL_J1350.8+3033_daily_bin1615.fits
Spacecraft file(s): /scratch/kocevski/359397/ft2_4FGL_J1350.8+3033_daily_bin1615.fits
Exposure map: /scratch/kocevski/359397/expmap_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.fits
Exposure cube: /scratch/kocevski/359397/ltcube_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/359397/Model_4FGL_J1350.8+3033_daily_bin1615.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) = 6418.86217672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.069       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.141       1.0000         .10000E-03   10000.    
     5 'norm      '    9.5475       1.0000         .10000E-03   10000.    
     6 'norm      '    .11239E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    37.428       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82563E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9251       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9006       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4131       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2826       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11247E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7026       1.0000         .10000E-03   10000.    
    26 'norm      '    2.5682       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96075       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6418.741     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3233 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.069        5.4327        .25315E-06    .99193E-04
   2  Prefactor     .10000E-03    11.725        .71090E-06** at limit **
   3  Prefactor     .10000E-03    7.8649       -.29171E-05** at limit **
   4  norm          26.141        8.1354       -.99516E-07    .86634E-04
   5  norm          9.5480        5.1432        .31498E-06    .84087E-03
   6  norm          .10000E-03    6.2455       -.89235E-06** at limit **
   7  norm          37.428        22.556        .63780E-06    .68115E-05
   8  Prefactor     .10000E-03    .88771        .94722E-08** at limit **
   9  Prefactor     .43254E-01    6.8822        .59961E-07   -.24441E-04
  10  norm          .10000E-03    1.2582       -.31229E-07** at limit **
  11  Prefactor     .10000E-03    86.537        .27623E-06** at limit **
  12  norm          2.0192        4.6508        .36685E-05    .42847E-04
  13  Prefactor     .10000E-03    6.6045        .16675E-06** at limit **
  14  Prefactor     .10000E-03    38.071       -.19558E-07** at limit **
  15  Prefactor     .10000E-03    19.035       -.13956E-05** at limit **
  16  Prefactor     5.9251        4.1136        .31431E-06   -.45252E-04
  17  Prefactor     6.9010        11.826        .98030E-06   -.68692E-05
  18  norm          .10000E-03    9.2362       -.19131E-05** at limit **
  19  Prefactor     6.4130        10.985        .17049E-06   -.22767E-04
  20  norm          5.2830        4.2366        .72288E-06   -.73350E-04
  21  Prefactor     .10000E-03    5.2766       -.49256E-07** at limit **
  22  Prefactor     .10000E-03    8.1931        .40608E-05** at limit **
  23  Prefactor     .10000E-03    2.1329        .17274E-06** at limit **
  24  norm          .10000E-03    3.7547       -.51151E-07** at limit **
  25  norm          2.7027        2.2766        .52495E-07   -.39548E-04
  26  norm          2.5672        3.5969        .37980E-06   -.12670E-02
  27  Prefactor     .10000E-03    19.078        .15900E-05** at limit **
  28  Normalizat    .96072        .17024       -.70070E-06   -.57043E-04
  29  Prefactor     1.2158        .19116       -.42211E-06   -.30993E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.1406
  norm       = 9.548
  norm       = 0.0001
  norm       = 37.4284
  Prefactor  = 0.0001
  Prefactor  = 0.0432539
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92506
  Prefactor  = 6.90101
  norm       = 0.0001
  Prefactor  = 6.41302
  norm       = 5.28301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 2.70269
  norm       = 2.56722
  Prefactor  = 0.0001
  Normalizat = 0.960724
  Prefactor  = 1.21584
 **********
 **   18 **HESSE 
 **********

 FCN=   6418.741     FROM HESSE     STATUS=OK           563 CALLS     3796 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.069        5.4263        .12628E-03   -1.5073    
   2  Prefactor     .10000E-03    11.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.141        8.1286        .78351E-04   -1.4685    
   5  norm          9.5480        4.4314        .10658E-03   -1.5090    
   6  norm          .10000E-03    12.970        .33071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          37.428        22.546        .65511E-04   -1.4484    
   8  Prefactor     .10000E-03    .89039        .73653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .43254E-01    9.7933        .68864E-01   -1.5666    
  10  norm          .10000E-03    1.2591        .87768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    87.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0192        4.6342        .25504E-03   -1.5424    
  13  Prefactor     .10000E-03    6.6184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9251        4.1214        .12884E-03   -1.5221    
  17  Prefactor     6.9010        11.844        .15273E-03   -1.5183    
  18  norm          .10000E-03    9.2785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4130        10.975        .15849E-03   -1.5201    
  20  norm          5.2830        4.2057        .14044E-03   -1.5248    
  21  Prefactor     .10000E-03    5.2918        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.2007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.708        .21752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.7564        .15162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7027        2.2733        .10750E-03   -1.5379    
  26  norm          2.5672        9.1189        .12736E-02   -1.5388    
  27  Prefactor     .10000E-03    19.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96072        .19725        .24830E-03   -.94358    
  29  Prefactor     1.2158        .22592        .25987E-03   -.85845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40156e-09
Minuit parameter uncertainties:
  1  5.42652
  2  3.16111e-06
  3  2.33631e-05
  4  8.12893
  5  4.43153
  6  0.000117019
  7  22.5513
  8  3.91036e-07
  9  1.3004
  10  4.33852e-06
  11  6.39374e-05
  12  4.63502
  13  1.79656e-06
  14  4.67297e-06
  15  1.48151e-05
  16  4.12163
  17  11.8476
  18  9.80564e-06
  19  10.9789
  20  4.20591
  21  4.73483e-06
  22  3.4199e-05
  23  0.000307442
  24  1.72726e-06
  25  2.27339
  26  9.1238
  27  2.67775e-05
  28  0.197401
  29  0.226096
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  5.925e+00  4.122e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.216e+00  2.261e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.607e-01  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.50
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.07e-05

TS (Fixed Index): 3.50
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359397/likelihoodResults_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.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) = 6418.65684659
delta logL = 0.0838003873178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6418.65349531
delta logL = 0.0871516682882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0069       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7167       1.0000          .0000       10.000    
     3 'Normalizat'    .94256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+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=   6418.653     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      271 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0066        4.8342        .10970E-03    .28707E-04
   2  Index         2.7168        .81816        .76002E-02    .40565E-03
   3  Normalizat    .94255        .19791        .25041E-03   -.12830E-03
   4  Prefactor     1.2291        .22473        .25869E-03   -.15536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.00662
  Index      = 2.71676
  Normalizat = 0.942545
  Prefactor  = 1.22907
 **********
 **   18 **HESSE 
 **********

 FCN=   6418.653     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0066        4.5072        .43879E-05   -1.5260    
   2  Index         2.7168        .76230        .15200E-02   -.47422    
   3  Normalizat    .94255        .19766        .10016E-04   -.94981    
   4  Prefactor     1.2291        .22459        .51737E-04   -.85441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63818e-11
Minuit parameter uncertainties:
  1  4.50747
  2  0.76608
  3  0.197817
  4  0.22477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359397': 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) = 6418.6534953
delta logL = 0.0871516798024

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  5.007e+00  4.507e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.717e+00  7.661e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.229e+00  2.248e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.425e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.72 +/- 0.77
Photon Flux (Free Index): 6.06e-08 +/- 4.72e-08
Energy Flux (Free Index): 1.44e-05 +/- 9.58e-06

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/359397/cmap_HighResolution_657936001_658195201_4FGL_J1350.8+3033_daily_bin1615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.18e-03', comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='1.44e-05', photon_flux_error='3.34e-08', dlogl='8.72e-02', energy_flux='1.54e-05', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-12-08 01:01:20.333448', photon_index_error2='0.77', photon_index2='2.72', ts='3.50', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='9.58e-06', EG='0.96', time_epoch_completed='1638954080.33', return_code='0', job_id='359397', GAL2='1.23', EG2='0.94', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.72e-08', ts2='3.69', photon_index='2.42' WHERE bin_id='1615' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:01:20 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 359397: <4FGL_J1350.8+3033_daily_bin1615> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1615> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 00:45:19 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:45:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:45:38 2021
Terminated at Wed Dec  8 01:01:21 2021
Results reported at Wed Dec  8 01:01:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1615 207.715 30.5588 657936001 658195201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1350.8+3033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   788.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            962 sec.

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

