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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin513
RA = 207.715, Dec = 30.5588
tmin = 372297601, tmax = 372556801
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='4057', job_status='RUN', time_executed='2021-09-08 14:48:23.060235', time_epoch_executed='1631137703.06' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/4057

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/4057/ft1_4FGL_J1350.8+3033_daily_bin513.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/4057/ft2_4FGL_J1350.8+3033_daily_bin513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/4057/ft1_4FGL_J1350.8+3033_daily_bin513.fits outfile=/scratch/kocevski/4057/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin513.fits ra=207.715 dec=30.5588 rad=12.0 tmin=372297601.0 tmax=372556801.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.36
user 3.11
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/4057/ft1_filtered_4FGL_J1350.8+3033_daily_bin513.fits" evtable="EVENTS" scfile=/scratch/kocevski/4057/ft2_4FGL_J1350.8+3033_daily_bin513.fits sctable="SC_DATA" outfile=/scratch/kocevski/4057/ltcube_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.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/4057/ft2_4FGL_J1350.8+3033_daily_bin513.fits
.....................!
real 16.76
user 16.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/4057/ft1_filtered_4FGL_J1350.8+3033_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/4057/ft2_4FGL_J1350.8+3033_daily_bin513.fits sctable="SC_DATA" expcube=/scratch/kocevski/4057/ltcube_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.fits outfile=/scratch/kocevski/4057/expmap_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.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/4057/ltcube_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.fits
.....................!
real 192.72
user 187.61
sys 4.55

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/4057/ft1_filtered_4FGL_J1350.8+3033_daily_bin513.fits scfile=/scratch/kocevski/4057/ft2_4FGL_J1350.8+3033_daily_bin513.fits outfile=/scratch/kocevski/4057/cmap_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/4057/ft1_filtered_4FGL_J1350.8+3033_daily_bin513.fits scfile=/scratch/kocevski/4057/ft2_4FGL_J1350.8+3033_daily_bin513.fits outfile=/scratch/kocevski/4057/cmap_HighResolution_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .58922       1.0000         .10000E-03   10000.    
     6 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12084E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17450E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6138       1.0000         .10000E-03   10000.    
    10 'norm      '    33.263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17949E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.571       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.288       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9977       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9075       1.0000         .10000E-03   10000.    
    18 'norm      '    .56560       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.8916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.710       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4403       1.0000         .10000E-03   10000.    
    24 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4465       1.0000         .10000E-03   10000.    
    26 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1118       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2477       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89229       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=   6207.305     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3823 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17681        3.5265       -.20308E-07   -.41272E-04
   2  Prefactor     .10000E-03    8.2749        .10116E-06** at limit **
   3  Prefactor     .10000E-03    13.730        .41501E-06** at limit **
   4  norm          .10000E-03    1.5469        .22905E-07** at limit **
   5  norm          .58659        3.8991       -.53650E-06   -.22313E-03
   6  norm          .10000E-03    3.2233       -.95420E-07** at limit **
   7  norm          .10000E-03    16.849       -.17719E-06** at limit **
   8  Prefactor     .10003E-03    2.6820        .98053E-06** at limit **
   9  Prefactor     1.6328        45.686        .29338E-06   -.12104E-03
  10  norm          33.259        11.688        .13952E-07   -.34402E-06
  11  Prefactor     .10000E-03    73.759       -.49837E-06** at limit **
  12  norm          27.572        12.548       -.35185E-07   -.20505E-04
  13  Prefactor     27.288        16.628       -.39553E-06   -.11648E-03
  14  Prefactor     .10000E-03    8.3031        .19829E-06** at limit **
  15  Prefactor     4.8798        296.68        .48111E-05    .15316E-04
  16  Prefactor     6.0796        4.3548       -.83862E-07   -.19009E-04
  17  Prefactor     1.9082        7.4641        .10817E-05    .11715E-03
  18  norm          .50946        11.223        .37887E-06   -.11671E-03
  19  Prefactor     .10000E-03    7.6074       -.10718E-07** at limit **
  20  norm          9.8866        4.6479       -.51519E-07   -.14300E-03
  21  Prefactor     17.663        14.458       -.10275E-05   -.26907E-03
  22  Prefactor     .10017E-03    13.210        .24073E-05** at limit **
  23  Prefactor     4.4411        3.9666       -.39617E-07   -.26403E-04
  24  norm          .10000E-03    8.8150        .64657E-07** at limit **
  25  norm          7.4474        3.1525        .60331E-07   -.53218E-04
  26  norm          .10000E-03    2.8680        .49251E-07** at limit **
  27  Prefactor     5.0343        42.715        .19905E-05    .23627E-04
  28  Normalizat    1.2480        .23698        .49408E-05   -.31298E-03
  29  Prefactor     .89204        .24085       -.68385E-05   -.33514E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.176808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.586589
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 1.63279
  norm       = 33.2588
  Prefactor  = 0.0001
  norm       = 27.5716
  Prefactor  = 27.2878
  Prefactor  = 0.0001
  Prefactor  = 4.87981
  Prefactor  = 6.07956
  Prefactor  = 1.90816
  norm       = 0.509458
  Prefactor  = 0.0001
  norm       = 9.88661
  Prefactor  = 17.6634
  Prefactor  = 0.000100169
  Prefactor  = 4.44106
  norm       = 0.0001
  norm       = 7.4474
  norm       = 0.0001
  Prefactor  = 5.03432
  Normalizat = 1.248
  Prefactor  = 0.892035
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.305     FROM HESSE     STATUS=OK           561 CALLS     4384 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17681        13.715        .27785E-02   -1.5624    
   2  Prefactor     .10000E-03    8.2794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5510        .95685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .58659        6.1693        .24277E-02   -1.5555    
   6  norm          .10000E-03    3.2288        .13776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    16.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    10.396        .19070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6328        34.730        .33335E-03   -1.5452    
  10  norm          33.259        11.697        .69478E-04   -1.4554    
  11  Prefactor     .10000E-03    74.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.572        12.557        .76296E-04   -1.4657    
  13  Prefactor     27.288        16.624        .76690E-04   -1.4663    
  14  Prefactor     .10000E-03    8.3137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8798        305.14        .17988E-03   -1.5266    
  16  Prefactor     6.0796        4.3591        .13218E-03   -1.5215    
  17  Prefactor     1.9082        7.4687        .30104E-03   -1.5432    
  18  norm          .50946        124.23        .49048E-02   -1.5565    
  19  Prefactor     .10000E-03    7.6131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.8866        4.6462        .11147E-03   -1.5079    
  21  Prefactor     17.663        14.340        .95173E-04   -1.4867    
  22  Prefactor     .10017E-03    82.988        .46042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4411        3.9630        .14054E-03   -1.5286    
  24  norm          .10000E-03    8.8665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4474        3.1538        .88129E-04   -1.5162    
  26  norm          .10000E-03    2.8721        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.0343        42.927        .17783E-03   -1.5259    
  28  Normalizat    1.2480        .24279        .23276E-03   -.85132    
  29  Prefactor     .89204        .24592        .30086E-03   -.96420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98155e-08
Minuit parameter uncertainties:
  1  3.11427
  2  3.55782e-06
  3  3.54658e-05
  4  1.25916e-07
  5  3.80483
  6  7.01938e-06
  7  3.01023e-06
  8  0.00109087
  9  15.0703
  10  11.6979
  11  0.00023675
  12  12.5582
  13  16.6264
  14  2.1255e-05
  15  77.5922
  16  4.35929
  17  7.47239
  18  15.9429
  19  5.21518e-06
  20  4.64636
  21  14.3428
  22  0.00751136
  23  3.96328
  24  5.32513e-06
  25  3.15386
  26  2.53466e-06
  27  29.4296
  28  0.243008
  29  0.246225
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  6.080e+00  4.359e+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:  8.920e-01  2.462e-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.248e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.11
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/4057/likelihoodResults_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.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) = 6207.16667459
delta logL = 0.138018978396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6207.14205633
delta logL = 0.162637245149

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2655       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3921       1.0000          .0000       10.000    
     3 'Normalizat'    1.2007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93612       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=   6207.142     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      256 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2626        24.036        .68221E-02    .73980E-03
   2  Index         3.3929        3.2284        .15793        .13823E-03
   3  Normalizat    1.2007        .55222E-01    .53498E-01   -.12052E-04
   4  Prefactor     .93612        .60697E-01    .66642E-01    .13051E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.26261
  Index      = 3.39286
  Normalizat = 1.20073
  Prefactor  = 0.936118
 **********
 **   18 **HESSE 
 **********

 FCN=   6207.142     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2626        46.068        .72724E-04   -1.5407    
   2  Index         3.3929        6.6879        .55578E-02   -.32724    
   3  Normalizat    1.2007        .23329        .23655E-03   -.86580    
   4  Prefactor     .93612        .26147        .29477E-03   -.94890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.26055e-11
Minuit parameter uncertainties:
  1  20.4367
  2  6.27971
  3  0.233493
  4  0.261822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/4057': 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): 102
logL (Free Index) = 6207.14205616
delta logL = 0.162637413477

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.263e+00  2.044e+01  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  3.393e+00  6.280e+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:  9.361e-01  2.618e-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.201e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 207.715 30.559
Photon Index (Free Index): 3.39 +/- 6.28
Photon Flux (Free Index): 7.42e-08 +/- 6.99e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/4057/cmap_HighResolution_372297601_372556801_4FGL_J1350.8+3033_daily_bin513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.61e-03', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.27e-05', photon_flux_error='3.54e-08', dlogl='1.63e-01', energy_flux='1.59e-05', photon_flux2='7.42e-08', job_status='DONE', time_completed='2021-09-08 15:02:14.208196', photon_index_error2='6.28', photon_index2='3.39', ts='3.11', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.71e-05', EG='1.25', time_epoch_completed='1631138534.21', return_code='0', job_id='4057', GAL2='0.94', EG2='1.20', return_code2='102', energy_flux_error='1.14e-05', photon_flux_error2='6.99e-08', ts2='3.51', photon_index='2.42' WHERE bin_id='513' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:02:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 4057: <4FGL_J1350.8+3033_daily_bin513> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin513> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:45:39 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:48:08 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:48:08 2021
Terminated at Wed Sep  8 15:02:15 2021
Results reported at Wed Sep  8 15:02:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin513 207.715 30.5588 372297601 372556801 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 :                                   826.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            996 sec.

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

