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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin674
RA = 207.715, Dec = 30.5588
tmin = 414028801, tmax = 414288001
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='5776', job_status='RUN', time_executed='2021-09-08 14:51:44.171695', time_epoch_executed='1631137904.17' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5776/ft1_4FGL_J1350.8+3033_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5776/ft1_4FGL_J1350.8+3033_daily_bin674.fits outfile=/scratch/kocevski/5776/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin674.fits ra=207.715 dec=30.5588 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.25
user 4.92
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.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/5776/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin674.fits evtable="EVENTS" outfile="/scratch/kocevski/5776/ft1_filtered_4FGL_J1350.8+3033_daily_bin674.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5776/ft1_filtered_4FGL_J1350.8+3033_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/5776/ltcube_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.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/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits
.....................!
real 13.39
user 12.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5776/ft1_filtered_4FGL_J1350.8+3033_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/5776/ltcube_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.fits outfile=/scratch/kocevski/5776/expmap_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.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/5776/ltcube_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.fits
.....................!
real 192.39
user 187.24
sys 4.37

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/5776/ft1_filtered_4FGL_J1350.8+3033_daily_bin674.fits scfile=/scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits outfile=/scratch/kocevski/5776/cmap_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5776/ft1_filtered_4FGL_J1350.8+3033_daily_bin674.fits scfile=/scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits outfile=/scratch/kocevski/5776/cmap_HighResolution_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/5776/ft1_filtered_4FGL_J1350.8+3033_daily_bin674.fits', '/scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits', expMap='/scratch/kocevski/5776/expmap_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.fits', expCube='/scratch/kocevski/5776/ltcube_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/5776/Model_4FGL_J1350.8+3033_daily_bin674.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/5776/ft1_filtered_4FGL_J1350.8+3033_daily_bin674.fits
Spacecraft file(s): /scratch/kocevski/5776/ft2_4FGL_J1350.8+3033_daily_bin674.fits
Exposure map: /scratch/kocevski/5776/expmap_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.fits
Exposure cube: /scratch/kocevski/5776/ltcube_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/5776/Model_4FGL_J1350.8+3033_daily_bin674.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) = 3912.02887618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16263E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4846       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.602       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.392       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9726       1.0000         .10000E-03   10000.    
    18 'norm      '    22.808       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.266       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3574       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.7861       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62596       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=   3912.002     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3668 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7280        .26061E-07** at limit **
   2  Prefactor     .10000E-03    97.668       -.21078E-05** at limit **
   3  Prefactor     1.4823        4.2056        .28330E-06   -.40171E-03
   4  norm          .10000E-03    2.9050       -.83815E-07** at limit **
   5  norm          .10001E-03    3.4594       -.53843E-06** at limit **
   6  norm          17.606        9.4798       -.70886E-07    .39013E-03
   7  norm          .10000E-03    35.611        .38557E-05** at limit **
   8  Prefactor     .10000E-03    1.5812        .58855E-08** at limit **
   9  Prefactor     .10000E-03    12.456       -.19569E-05** at limit **
  10  norm          .10000E-03    7.8003       -.23080E-05** at limit **
  11  Prefactor     .10000E-03    26.045       -.42466E-05** at limit **
  12  norm          4.9792        7.2014        .10143E-06   -.22223E-03
  13  Prefactor     31.401        23.988        .80176E-06    .28665E-04
  14  Prefactor     .10000E-03    10.004        .43936E-05** at limit **
  15  Prefactor     .10000E-03    24.764       -.20753E-06** at limit **
  16  Prefactor     .10000E-03    2.9521        .33823E-07** at limit **
  17  Prefactor     1.9696        19.519       -.27138E-06   -.14573E-04
  18  norm          22.811        18.562       -.89549E-07   -.40052E-05
  19  Prefactor     .10000E-03    9.2811       -.25273E-05** at limit **
  20  norm          .10000E-03    1.4291        .47508E-07** at limit **
  21  Prefactor     15.276        15.169       -.10015E-05   -.13877E-03
  22  Prefactor     .10000E-03    15.037        .56945E-05** at limit **
  23  Prefactor     5.3580        3.8658       -.63932E-06   -.20273E-04
  24  norm          .10000E-03    7.8353        .22883E-05** at limit **
  25  norm          8.7856        3.5660       -.11247E-07    .46382E-05
  26  norm          .10000E-03    4.1938        .27244E-08** at limit **
  27  Prefactor     .10000E-03    13.240       -.20719E-05** at limit **
  28  Normalizat    1.0602        .18527        .47532E-06    .97329E-04
  29  Prefactor     .62630        .19499       -.70551E-07    .72273E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48234
  norm       = 0.0001
  norm       = 0.000100009
  norm       = 17.6062
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.97915
  Prefactor  = 31.4006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96958
  norm       = 22.8111
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2758
  Prefactor  = 0.0001
  Prefactor  = 5.35801
  norm       = 0.0001
  norm       = 8.78557
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06015
  Prefactor  = 0.626297
 **********
 **   18 **HESSE 
 **********

 FCN=   3912.002     FROM HESSE     STATUS=OK           543 CALLS     4211 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7492        .10084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    100.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4823        24.333        .17605E-02   -1.5464    
   4  norm          .10000E-03    2.9319        .10409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    13.032        .20037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.606        8.6167        .95463E-04   -1.4869    
   7  norm          .10000E-03    35.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5935        .76723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.9277        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9792        7.3939        .90077E-03   -1.5262    
  13  Prefactor     31.401        24.124        .71513E-04   -1.4587    
  14  Prefactor     .10000E-03    9.9652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0034        .10486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9696        19.570        .29520E-03   -1.5427    
  18  norm          22.811        18.584        .83872E-04   -1.4752    
  19  Prefactor     .10000E-03    9.2633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4327        .73010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.276        15.267        .10251E-03   -1.4926    
  22  Prefactor     .10000E-03    15.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.3580        3.8694        .10050E-03   -1.5245    
  24  norm          .10000E-03    7.8528        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.7856        3.5744        .72280E-04   -1.5115    
  26  norm          .10000E-03    4.2023        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0602        .21406        .20259E-03   -.91042    
  29  Prefactor     .62630        .22585        .27780E-03   -1.0649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38862e-09
Minuit parameter uncertainties:
  1  2.04321e-06
  2  0.000193525
  3  12.0169
  4  9.51744e-07
  5  0.000674284
  6  8.6173
  7  1.24424e-06
  8  1.16823e-06
  9  2.24895e-06
  10  1.59511e-06
  11  1.22439e-05
  12  7.39523
  13  24.1318
  14  2.67699e-06
  15  2.63595e-06
  16  3.92581e-06
  17  12.422
  18  18.5887
  19  2.47182e-06
  20  1.39796e-06
  21  15.2704
  22  4.87402e-05
  23  3.86961
  24  1.1881e-05
  25  3.57444
  26  1.31696e-06
  27  3.01129e-06
  28  0.214238
  29  0.226181
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  3.926e-06  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:  6.263e-01  2.262e-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:  1.060e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 7.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/5776/likelihoodResults_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.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) = 3912.00350571
delta logL = -0.0015847337927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3912.00192309
delta logL = -2.11176848097e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4509       1.0000          .0000       10.000    
     3 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62670       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=   3912.002     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      240 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    4.8633        .22151E-03** at limit **
   2  Index         2.4897        6.2148        .50000       -.11497E-03
   3  Normalizat    1.0602        .20201        .20259E-03   -.53961E-04
   4  Prefactor     .62629        .21849        .27780E-03   -.21866E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100046
  Index      = 2.48967
  Normalizat = 1.06015
  Prefactor  = 0.626293
 **********
 **   18 **HESSE 
 **********

 FCN=   3912.002     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    3.4328        .44303E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4897        6.2432        .50000       -.52599    
   3  Normalizat    1.0602        .20216        .40518E-04   -.91042    
   4  Prefactor     .62629        .21865        .11112E-04   -1.0649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40028e-08
Minuit parameter uncertainties:
  1  0.000792925
  2  4.35949
  3  0.202307
  4  0.218947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5776': 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) = 3912.00191912
delta logL = 1.85297949429e-06

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  7.929e-04  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.490e+00  4.359e+00  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:  6.263e-01  2.189e-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:  1.060e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.715 30.559

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/5776/cmap_HighResolution_414028801_414288001_4FGL_J1350.8+3033_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.62e-08', time_completed='2021-09-08 15:02:12.822410', job_id='5776', GAL2='0.63', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631138532.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='674' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:02:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 5776: <4FGL_J1350.8+3033_daily_bin674> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin674> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:50:32 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:51:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:51:32 2021
Terminated at Wed Sep  8 15:02:13 2021
Results reported at Wed Sep  8 15:02:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin674 207.715 30.5588 414028801 414288001 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 :                                   621.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            701 sec.

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

