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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1046
RA = 207.715, Dec = 30.5588
tmin = 510451201, tmax = 510710401
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='8625', job_status='RUN', time_executed='2021-09-08 15:01:09.032179', time_epoch_executed='1631138469.03' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8625/ft1_4FGL_J1350.8+3033_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8625/ft2_4FGL_J1350.8+3033_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8625/ft1_4FGL_J1350.8+3033_daily_bin1046.fits outfile=/scratch/kocevski/8625/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1046.fits ra=207.715 dec=30.5588 rad=12.0 tmin=510451201.0 tmax=510710401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.00
user 3.73
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8625/ft2_4FGL_J1350.8+3033_daily_bin1046.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/8625/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/8625/ft1_filtered_4FGL_J1350.8+3033_daily_bin1046.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8625/ft1_filtered_4FGL_J1350.8+3033_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/8625/ft2_4FGL_J1350.8+3033_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/8625/ltcube_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.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/8625/ft2_4FGL_J1350.8+3033_daily_bin1046.fits
.....................!
real 15.85
user 15.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8625/ft1_filtered_4FGL_J1350.8+3033_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/8625/ft2_4FGL_J1350.8+3033_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/8625/ltcube_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.fits outfile=/scratch/kocevski/8625/expmap_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.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/8625/ltcube_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.fits
.....................!
real 190.87
user 186.14
sys 4.34

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/8625/ft1_filtered_4FGL_J1350.8+3033_daily_bin1046.fits scfile=/scratch/kocevski/8625/ft2_4FGL_J1350.8+3033_daily_bin1046.fits outfile=/scratch/kocevski/8625/cmap_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.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/8625/ft1_filtered_4FGL_J1350.8+3033_daily_bin1046.fits scfile=/scratch/kocevski/8625/ft2_4FGL_J1350.8+3033_daily_bin1046.fits outfile=/scratch/kocevski/8625/cmap_HighResolution_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10079E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3256       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8292       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10317E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5302       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0311       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.2797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5384       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8071       1.0000         .10000E-03   10000.    
    15 'Prefactor '    68.980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.270       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2587       1.0000         .10000E-03   10000.    
    24 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.6608       1.0000         .10000E-03   10000.    
    26 'norm      '    .26995E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94445       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0660       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=   6135.897     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3718 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2043       -.25823E-05** at limit **
   2  Prefactor     4.3682        29.737       -.53459E-05   -.11970E-03
   3  Prefactor     8.8306        11.770       -.76661E-07    .23332E-04
   4  norm          .10000E-03    2.3120        .13939E-07** at limit **
   5  norm          .10000E-03    2.4173        .32153E-06** at limit **
   6  norm          .10000E-03    1.6431        .52010E-07** at limit **
   7  norm          7.5293        9.3501        .79049E-07    .23852E-04
   8  Prefactor     3.0324        2.4298        .53100E-07   -.21916E-04
   9  Prefactor     .10000E-03    7.8526        .23640E-06** at limit **
  10  norm          1.7024        5.8911       -.22701E-05   -.38230E-03
  11  Prefactor     .10000E-03    18.880        .16908E-06** at limit **
  12  norm          8.2785        7.5042        .34793E-06    .12641E-03
  13  Prefactor     1.5387        37.785       -.22098E-05   -.60773E-04
  14  Prefactor     6.8077        12.244        .94185E-07    .14620E-04
  15  Prefactor     68.901        53.992       -.66739E-06    .57014E-04
  16  Prefactor     .10000E-03    1.5839       -.21189E-07** at limit **
  17  Prefactor     .10000E-03    6.8621       -.85387E-07** at limit **
  18  norm          .10000E-03    6.7471        .42225E-06** at limit **
  19  Prefactor     .10000E-03    18.563        .20491E-06** at limit **
  20  norm          .10000E-03    1.2609       -.87441E-08** at limit **
  21  Prefactor     .10000E-03    7.8420        .18244E-06** at limit **
  22  Prefactor     11.265        13.046        .53983E-07   -.34939E-04
  23  Prefactor     6.2592        3.7866        .68720E-07   -.47272E-04
  24  norm          .10000E-03    4.4175        .15669E-07** at limit **
  25  norm          5.6605        2.6333       -.25585E-07    .70955E-04
  26  norm          .10002E-03    61.648        .11200E-04** at limit **
  27  Prefactor     .10000E-03    46.515       -.23714E-06** at limit **
  28  Normalizat    .94449        .18360       -.27239E-05    .15027E-03
  29  Prefactor     1.0660        .19858        .29287E-05   -.18839E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 4.36823
  Prefactor  = 8.83063
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.52929
  Prefactor  = 3.03242
  Prefactor  = 0.0001
  norm       = 1.7024
  Prefactor  = 0.0001
  norm       = 8.27849
  Prefactor  = 1.53873
  Prefactor  = 6.80772
  Prefactor  = 68.901
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2654
  Prefactor  = 6.25923
  norm       = 0.0001
  norm       = 5.66055
  norm       = 0.000100016
  Prefactor  = 0.0001
  Normalizat = 0.944494
  Prefactor  = 1.066
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.897     FROM HESSE     STATUS=OK           557 CALLS     4275 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    25.079        .23908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.3682        30.152        .19369E-03   -1.5290    
   3  Prefactor     8.8306        11.675        .13489E-03   -1.5114    
   4  norm          .10000E-03    4.2722        .22786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5580        .23907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6482        .98078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5293        9.3479        .14615E-03   -1.5159    
   8  Prefactor     3.0324        2.4223        .10373E-03   -1.5360    
   9  Prefactor     .10000E-03    7.8934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7024        6.0230        .32235E-03   -1.5447    
  11  Prefactor     .10000E-03    18.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.2785        7.4585        .13933E-03   -1.5132    
  13  Prefactor     1.5387        38.718        .34383E-03   -1.5460    
  14  Prefactor     6.8077        12.190        .15378E-03   -1.5186    
  15  Prefactor     68.901        54.102        .24165E-03   -1.4046    
  16  Prefactor     .10000E-03    1.6120        .96207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.8950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.7926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2693        .85880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.265        12.993        .11934E-03   -1.5037    
  23  Prefactor     6.2592        3.7895        .11251E-03   -1.5208    
  24  norm          .10000E-03    4.4200        .16078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6605        2.6351        .84035E-04   -1.5232    
  26  norm          .10002E-03    75.932        .38821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    46.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .94449        .19411        .22797E-03   -.94914    
  29  Prefactor     1.0660        .21017        .24892E-03   -.90561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65928e-09
Minuit parameter uncertainties:
  1  0.000255854
  2  22.9693
  3  11.6779
  4  0.000117623
  5  1.88622e-05
  6  1.587e-06
  7  9.34974
  8  2.42238
  9  3.56074e-05
  10  6.02515
  11  4.24107e-05
  12  7.45929
  13  15.4478
  14  12.1948
  15  54.1405
  16  4.06895e-06
  17  1.06219e-05
  18  2.88979e-05
  19  2.81014e-07
  20  5.19116e-07
  21  2.16779e-05
  22  12.9966
  23  3.78967
  24  4.99812e-07
  25  2.63519
  26  0.00219679
  27  6.1257e-07
  28  0.194255
  29  0.210334
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  4.069e-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:  1.066e+00  2.103e-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.445e-01  1.943e-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: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8625/likelihoodResults_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.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) = 6135.89999247
delta logL = -0.00295025589548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6135.85562796
delta logL = 0.0414142594045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77778E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.7332       1.0000          .0000       10.000    
     3 'Normalizat'    .92611       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0792       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=   6135.856     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      297 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77705E-02    .13965        .38148E-02    .96573E-02
   2  Index         5.7332        1.5533        .40030        .66025E-04
   3  Normalizat    .92610        .11912E-01    .45234E-01    .98139E-05
   4  Prefactor     1.0792        .13796E-01    .56002E-01    .93016E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00777045
  Index      = 5.73322
  Normalizat = 0.926101
  Prefactor  = 1.07923
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.856     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      332 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77705E-02    4.1774        .18781E-03   -1.5690    
   2  Index         5.7332        7.0495        .80276E-02    .14717    
   3  Normalizat    .92610        .10431        .23006E-03   -.95549    
   4  Prefactor     1.0792        .11670        .24762E-03   -.90133    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.84957e-06
Minuit parameter uncertainties:
  1  0.358035
  2  25.32
  3  0.104334
  4  0.116726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8625': 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) = 6135.85562788
delta logL = 0.0414143363596

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.079e+00  1.167e-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.261e-01  1.043e-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/8625/cmap_HighResolution_510451201_510710401_4FGL_J1350.8+3033_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-08 15:14:40.348673', job_id='8625', GAL2='1.08', fit_tolerance='1e-08', EG2='0.93', EG='0.94', time_epoch_completed='1631139280.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.14e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1046' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:14:40 PDT 2021


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

Job <4FGL_J1350.8+3033_daily_bin1046> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:00:22 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:00:56 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:56 2021
Terminated at Wed Sep  8 15:14:41 2021
Results reported at Wed Sep  8 15:14:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1046 207.715 30.5588 510451201 510710401 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 :                                   806.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            859 sec.

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

