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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin996
RA = 207.715, Dec = 30.5588
tmin = 497491201, tmax = 497750401
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='8554', job_status='RUN', time_executed='2021-09-08 15:00:46.791518', time_epoch_executed='1631138446.79' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='996'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8554

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8554/ft1_4FGL_J1350.8+3033_daily_bin996.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8554/ft2_4FGL_J1350.8+3033_daily_bin996.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8554/ft1_4FGL_J1350.8+3033_daily_bin996.fits outfile=/scratch/kocevski/8554/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin996.fits ra=207.715 dec=30.5588 rad=12.0 tmin=497491201.0 tmax=497750401.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.93
user 3.67
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8554/ft1_filtered_4FGL_J1350.8+3033_daily_bin996.fits evtable="EVENTS" scfile=/scratch/kocevski/8554/ft2_4FGL_J1350.8+3033_daily_bin996.fits sctable="SC_DATA" expcube=/scratch/kocevski/8554/ltcube_497491201_497750401_4FGL_J1350.8+3033_daily_bin996.fits outfile=/scratch/kocevski/8554/expmap_497491201_497750401_4FGL_J1350.8+3033_daily_bin996.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/8554/ltcube_497491201_497750401_4FGL_J1350.8+3033_daily_bin996.fits
.....................!
real 192.57
user 186.77
sys 4.89

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/8554/ft1_filtered_4FGL_J1350.8+3033_daily_bin996.fits scfile=/scratch/kocevski/8554/ft2_4FGL_J1350.8+3033_daily_bin996.fits outfile=/scratch/kocevski/8554/cmap_497491201_497750401_4FGL_J1350.8+3033_daily_bin996.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8554/ft1_filtered_4FGL_J1350.8+3033_daily_bin996.fits scfile=/scratch/kocevski/8554/ft2_4FGL_J1350.8+3033_daily_bin996.fits outfile=/scratch/kocevski/8554/cmap_HighResolution_497491201_497750401_4FGL_J1350.8+3033_daily_bin996.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.153       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    42.873       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2248       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9817       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14888E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.1475       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.330       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .84563       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1129       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6967       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6459       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.3467       1.0000         .10000E-03   10000.    
    26 'norm      '    3.5174       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.881       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0740       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76470       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=   5121.824     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3172 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.151        9.1106       -.40757E-07    .25582E-05
   2  Prefactor     17.775        27.690        .20950E-05   -.17796E-04
   3  Prefactor     .10000E-03    7.6219       -.12243E-06** at limit **
   4  norm          .10000E-03    3.8370       -.16209E-06** at limit **
   5  norm          .10000E-03    1.3607       -.20414E-06** at limit **
   6  norm          .10000E-03    1.9647       -.91029E-07** at limit **
   7  norm          42.891        28.949        .78274E-06   -.33215E-04
   8  Prefactor     1.2231        3.1001       -.15741E-06   -.33076E-03
   9  Prefactor     .10000E-03    11.245       -.91448E-08** at limit **
  10  norm          5.9790        11.773        .28415E-05   -.59695E-04
  11  Prefactor     .10000E-03    364.53        .37487E-05** at limit **
  12  norm          9.1488        13.573       -.15073E-05    .60070E-05
  13  Prefactor     23.330        16.600        .14051E-06   -.28423E-04
  14  Prefactor     .10000E-03    50.292       -.15124E-06** at limit **
  15  Prefactor     .10000E-03    33.656        .50970E-07** at limit **
  16  Prefactor     .84599        2.8526        .53874E-06    .30269E-04
  17  Prefactor     .10000E-03    6.6655        .80212E-07** at limit **
  18  norm          .10000E-03    3.9089        .26054E-07** at limit **
  19  Prefactor     8.1126        12.588        .33509E-07   -.15232E-04
  20  norm          4.6970        4.6203       -.92061E-07   -.46676E-04
  21  Prefactor     2.6459        8.5860        .45151E-06   -.36721E-05
  22  Prefactor     .10000E-03    4.7012       -.75605E-07** at limit **
  23  Prefactor     .10000E-03    .88977        .34256E-07** at limit **
  24  norm          .10000E-03    5.2306       -.24974E-07** at limit **
  25  norm          5.3468        2.8964        .60986E-07   -.11217E-04
  26  norm          3.5177        7.9666        .42745E-05   -.27264E-05
  27  Prefactor     10.882        28.510        .21381E-06   -.29859E-05
  28  Normalizat    1.0739        .17455       -.21203E-06   -.41958E-04
  29  Prefactor     .76473        .18970       -.11406E-05   -.11069E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.1515
  Prefactor  = 17.7746
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 42.8905
  Prefactor  = 1.22311
  Prefactor  = 0.0001
  norm       = 5.97897
  Prefactor  = 0.0001
  norm       = 9.14878
  Prefactor  = 23.3297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.845992
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.11261
  norm       = 4.69697
  Prefactor  = 2.6459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.3468
  norm       = 3.51766
  Prefactor  = 10.8819
  Normalizat = 1.07391
  Prefactor  = 0.764729
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.824     FROM HESSE     STATUS=OK           553 CALLS     3725 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.151        9.1120        .83245E-04   -1.4745    
   2  Prefactor     17.775        27.695        .95037E-04   -1.4865    
   3  Prefactor     .10000E-03    7.6320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.9346        .27357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3763        .81540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9699        .97967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          42.891        28.915        .61225E-04   -1.4397    
   8  Prefactor     1.2231        3.0816        .18865E-03   -1.5487    
   9  Prefactor     .10000E-03    11.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9790        11.721        .82089E-03   -1.5219    
  11  Prefactor     .10000E-03    373.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.1488        13.461        .13251E-03   -1.5103    
  13  Prefactor     23.330        16.627        .82929E-04   -1.4742    
  14  Prefactor     .10000E-03    51.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .84599        2.8159        .21129E-03   -1.5524    
  17  Prefactor     .10000E-03    6.7097        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9133        .13819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.1126        12.551        .14076E-03   -1.5138    
  20  norm          4.6970        4.6101        .14407E-03   -1.5274    
  21  Prefactor     2.6459        8.5340        .25063E-03   -1.5383    
  22  Prefactor     .10000E-03    4.7054        .15147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .89305        .65910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.2326        .15984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.3468        2.8996        .86397E-04   -1.5245    
  26  norm          3.5177        7.9441        .10778E-02   -1.5333    
  27  Prefactor     10.882        28.510        .12146E-03   -1.5048    
  28  Normalizat    1.0739        .20687        .21000E-03   -.90594    
  29  Prefactor     .76473        .22439        .27478E-03   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80065e-10
Minuit parameter uncertainties:
  1  9.11251
  2  27.715
  3  1.62225e-05
  4  1.41921e-05
  5  1.26133e-05
  6  6.61602e-06
  7  28.9249
  8  3.08204
  9  4.34134e-06
  10  11.7257
  11  2.33598e-05
  12  13.465
  13  16.6299
  14  9.95717e-05
  15  2.64893e-05
  16  2.81637
  17  1.17125e-05
  18  2.07114e-06
  19  12.5555
  20  4.61042
  21  8.53795
  22  1.04735e-05
  23  1.72248e-06
  24  3.97031e-06
  25  2.89968
  26  7.94651
  27  28.5454
  28  0.207023
  29  0.224657
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  8.460e-01  2.816e+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:  7.647e-01  2.247e-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.074e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/8554/likelihoodResults_497491201_497750401_4FGL_J1350.8+3033_daily_bin996.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) = 5121.81411667
delta logL = 0.0102418106162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5121.81361044
delta logL = 0.0107480419611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78776       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6803       1.0000          .0000       10.000    
     3 'Normalizat'    1.0710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76663       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=   5121.814     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      224 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78833        38.751        .12394E-01    .10373E-02
   2  Index         2.6804        2.6285        .43584        .95385E-05
   3  Normalizat    1.0708        .20154E-01    .39328E-01    .22067E-04
   4  Prefactor     .76674        .22746E-01    .62051E-01    .56549E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.788329
  Index      = 2.68044
  Normalizat = 1.07084
  Prefactor  = 0.766742
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.814     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78833        2.7068        .18319E-03   -1.5530    
   2  Index         2.6804        1.8498        .93410E-02   -.48241    
   3  Normalizat    1.0708        .19937        .21028E-03   -.90694    
   4  Prefactor     .76674        .22238        .27446E-03   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26081e-10
Minuit parameter uncertainties:
  1  2.70725
  2  1.90829
  3  0.199506
  4  0.222636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8554': 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) = 5121.81361018
delta logL = 0.0107483018428

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  7.883e-01  2.707e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.680e+00  1.908e+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:  7.667e-01  2.226e-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.071e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/8554/cmap_HighResolution_497491201_497750401_4FGL_J1350.8+3033_daily_bin996.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-08 15:12:26.761348', job_id='8554', GAL2='0.77', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631139146.76', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.07e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='996' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:12:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 8554: <4FGL_J1350.8+3033_daily_bin996> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin996> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:00:17 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:00:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:00:29 2021
Terminated at Wed Sep  8 15:12:27 2021
Results reported at Wed Sep  8 15:12:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin996 207.715 30.5588 497491201 497750401 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 :                                   694.25 sec.
    Max Memory :                                 1144 MB
    Average Memory :                             368.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            730 sec.

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

