/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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1350.8+3033_daily_bin248
RA = 207.715, Dec = 30.5588
tmin = 303609601, tmax = 303868801
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='2113', job_status='RUN', time_executed='2021-09-08 14:42:27.785786', time_epoch_executed='1631137347.79' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2113/ft1_4FGL_J1350.8+3033_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2113/ft2_4FGL_J1350.8+3033_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2113/ft1_4FGL_J1350.8+3033_daily_bin248.fits outfile=/scratch/kocevski/2113/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin248.fits ra=207.715 dec=30.5588 rad=12.0 tmin=303609601.0 tmax=303868801.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 3.42
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2113/ft2_4FGL_J1350.8+3033_daily_bin248.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/2113/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin248.fits evtable="EVENTS" outfile="/scratch/kocevski/2113/ft1_filtered_4FGL_J1350.8+3033_daily_bin248.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2113/ft1_filtered_4FGL_J1350.8+3033_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/2113/ft2_4FGL_J1350.8+3033_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/2113/ltcube_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.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/2113/ft2_4FGL_J1350.8+3033_daily_bin248.fits
.....................!
real 14.83
user 14.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2113/ft1_filtered_4FGL_J1350.8+3033_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/2113/ft2_4FGL_J1350.8+3033_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/2113/ltcube_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.fits outfile=/scratch/kocevski/2113/expmap_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.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/2113/ltcube_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.fits
.....................!
real 193.85
user 187.69
sys 5.29

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/2113/ft1_filtered_4FGL_J1350.8+3033_daily_bin248.fits scfile=/scratch/kocevski/2113/ft2_4FGL_J1350.8+3033_daily_bin248.fits outfile=/scratch/kocevski/2113/cmap_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2113/ft1_filtered_4FGL_J1350.8+3033_daily_bin248.fits scfile=/scratch/kocevski/2113/ft2_4FGL_J1350.8+3033_daily_bin248.fits outfile=/scratch/kocevski/2113/cmap_HighResolution_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10346E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.472       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.0086       1.0000         .10000E-03   10000.    
     5 'norm      '    .73683       1.0000         .10000E-03   10000.    
     6 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0544       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.156       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    43.746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19173E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9074       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    26.178       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.382       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4432       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54999E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.654       1.0000         .10000E-03   10000.    
    26 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98695       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=   6157.040     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3635 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6193        .43280E-06** at limit **
   2  Prefactor     23.455        24.985       -.11341E-04   -.17747E-03
   3  Prefactor     .10000E-03    8.8508        .23226E-05** at limit **
   4  norm          3.0084        4.3111        .60099E-06   -.89945E-03
   5  norm          .74579        4.8132        .29672E-05    .29843E-03
   6  norm          .10000E-03    2.6668        .35015E-07** at limit **
   7  norm          .10000E-03    7.9999       -.25291E-05** at limit **
   8  Prefactor     1.0508        3.7153       -.20740E-06   -.26938E-03
   9  Prefactor     16.149        14.942        .17598E-06   -.14467E-03
  10  norm          1.5361        3.7471       -.41701E-06   -.86312E-03
  11  Prefactor     .10000E-03    23.242        .69467E-05** at limit **
  12  norm          43.747        13.429       -.35611E-07    .48242E-04
  13  Prefactor     10.569        14.313        .54618E-06   -.11881E-04
  14  Prefactor     .10000E-03    50.691        .37255E-06** at limit **
  15  Prefactor     .10000E-03    16.257       -.94318E-05** at limit **
  16  Prefactor     2.9067        4.3425       -.15556E-05   -.70255E-04
  17  Prefactor     .10000E-03    6.1518        .38782E-05** at limit **
  18  norm          26.174        16.883       -.33229E-06    .51679E-04
  19  Prefactor     18.377        16.143        .74375E-07    .85027E-04
  20  norm          3.4430        3.0718       -.57763E-07    .11649E-03
  21  Prefactor     .10001E-03    6.8510       -.81993E-06** at limit **
  22  Prefactor     .10000E-03    5.9344       -.23575E-05** at limit **
  23  Prefactor     .10000E-03    1.2990        .25873E-07** at limit **
  24  norm          .10000E-03    7.3235       -.32270E-06** at limit **
  25  norm          11.654        3.2998       -.26869E-06   -.86976E-05
  26  norm          .10000E-03    8.2908       -.92887E-06** at limit **
  27  Prefactor     .10000E-03    13.642        .57768E-05** at limit **
  28  Normalizat    1.0176        .18043        .11835E-05   -.11164E-03
  29  Prefactor     .98697        .19313       -.28526E-06    .38979E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 23.4553
  Prefactor  = 0.0001
  norm       = 3.00844
  norm       = 0.745789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.05085
  Prefactor  = 16.1494
  norm       = 1.53611
  Prefactor  = 0.0001
  norm       = 43.7469
  Prefactor  = 10.5687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.90668
  Prefactor  = 0.0001
  norm       = 26.1738
  Prefactor  = 18.3766
  norm       = 3.44299
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.6539
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01756
  Prefactor  = 0.986975
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.040     FROM HESSE     STATUS=OK           551 CALLS     4186 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6708        .14567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.455        24.898        .82678E-04   -1.4739    
   3  Prefactor     .10000E-03    8.8752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.0084        4.4239        .95671E-03   -1.5361    
   5  norm          .74579        4.5223        .28856E-03   -1.5535    
   6  norm          .10000E-03    2.6656        .12482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.9986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0508        3.4689        .22006E-03   -1.5503    
   9  Prefactor     16.149        14.314        .99646E-04   -1.4904    
  10  norm          1.5361        17.064        .17179E-02   -1.5460    
  11  Prefactor     .10000E-03    23.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          43.747        15.761        .60614E-04   -1.4384    
  13  Prefactor     10.569        14.318        .12320E-03   -1.5058    
  14  Prefactor     .10000E-03    51.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9067        4.3372        .18645E-03   -1.5367    
  17  Prefactor     .10000E-03    6.1494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.174        16.898        .78297E-04   -1.4684    
  19  Prefactor     18.377        16.009        .93417E-04   -1.4850    
  20  norm          3.4430        3.0714        .12537E-03   -1.5337    
  21  Prefactor     .10001E-03    23.133        .39222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3105        .87290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.3427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.654        3.3012        .73706E-04   -1.5025    
  26  norm          .10000E-03    8.4221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0176        .21297        .23510E-03   -.92444    
  29  Prefactor     .98697        .22825        .27071E-03   -.93165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46154e-09
Minuit parameter uncertainties:
  1  0.000109553
  2  24.9093
  3  6.27287e-06
  4  4.42437
  5  3.67315
  6  5.54612e-06
  7  1.94944e-06
  8  3.46958
  9  14.3167
  10  10.243
  11  1.26266e-05
  12  15.7624
  13  14.3229
  14  6.05282e-05
  15  1.33209e-05
  16  4.33765
  17  3.84909e-06
  18  16.9007
  19  16.0132
  20  3.0715
  21  0.000940658
  22  3.07251e-06
  23  1.27203e-06
  24  5.77836e-06
  25  3.30122
  26  1.93186e-06
  27  4.16677e-06
  28  0.213146
  29  0.228477
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.907e+00  4.338e+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:  9.870e-01  2.285e-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.018e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/2113/likelihoodResults_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.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) = 6156.69609582
delta logL = 0.343670506633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6156.6951914
delta logL = 0.344574924685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6021       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3380       1.0000          .0000       10.000    
     3 'Normalizat'    .97954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0153       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.

 FCN=   6156.695     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6029        34.678        .83725E-02    .78540E-03
   2  Index         3.3381        6.6081        .14600        .12314E-03
   3  Normalizat    .97958        .47212E-01    .45910E-01   -.10158E-04
   4  Prefactor     1.0153        .53246E-01    .42646E-01    .77278E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.60295
  Index      = 3.33808
  Normalizat = 0.979576
  Prefactor  = 1.01527
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.695     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6029        4.1857        .92045E-04   -1.5455    
   2  Index         3.3381        1.6292        .78889E-02   -.33883    
   3  Normalizat    .97958        .20707        .23914E-03   -.93718    
   4  Prefactor     1.0153        .22971        .26734E-03   -.92222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07643e-11
Minuit parameter uncertainties:
  1  4.18642
  2  1.66347
  3  0.20724
  4  0.229931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2113': 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) = 6156.69519099
delta logL = 0.344575328359

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.603e+00  4.186e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  3.338e+00  1.663e+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:  1.015e+00  2.299e-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.796e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 207.715 30.559
Photon Index (Free Index): 3.34 +/- 1.66
Photon Flux (Free Index): 4.83e-08 +/- 4.90e-08
Energy Flux (Free Index): 8.43e-06 +/- 9.07e-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/2113/cmap_HighResolution_303609601_303868801_4FGL_J1350.8+3033_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.75e-03', comment='SUCCESS', energy_flux2='8.43e-06', dlogl='3.45e-01', photon_flux2='4.83e-08', job_status='DONE', time_completed='2021-09-08 14:55:54.955944', photon_index_error2='1.66', photon_index2='3.34', ts='0.57', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='9.07e-06', EG='1.02', time_epoch_completed='1631138154.96', return_code='0', job_id='2113', GAL2='1.02', EG2='0.98', return_code2='0', photon_flux_error2='4.90e-08', ts2='1.30', photon_index='2.42' WHERE bin_id='248' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 2113: <4FGL_J1350.8+3033_daily_bin248> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin248> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  8 14:40:41 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:42:10 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:42:10 2021
Terminated at Wed Sep  8 14:55:58 2021
Results reported at Wed Sep  8 14:55:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin248 207.715 30.5588 303609601 303868801 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 :                                   801.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            917 sec.

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

