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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1227
RA = 207.715, Dec = 30.5588
tmin = 557366401, tmax = 557625601
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='8894', job_status='RUN', time_executed='2021-09-08 15:02:07.512784', time_epoch_executed='1631138527.51' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8894

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8894/ft1_4FGL_J1350.8+3033_daily_bin1227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8894/ft2_4FGL_J1350.8+3033_daily_bin1227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8894/ft1_4FGL_J1350.8+3033_daily_bin1227.fits outfile=/scratch/kocevski/8894/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1227.fits ra=207.715 dec=30.5588 rad=12.0 tmin=557366401.0 tmax=557625601.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.77
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8894/ft2_4FGL_J1350.8+3033_daily_bin1227.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/8894/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1227.fits evtable="EVENTS" outfile="/scratch/kocevski/8894/ft1_filtered_4FGL_J1350.8+3033_daily_bin1227.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.57
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8894/ft1_filtered_4FGL_J1350.8+3033_daily_bin1227.fits evtable="EVENTS" scfile=/scratch/kocevski/8894/ft2_4FGL_J1350.8+3033_daily_bin1227.fits sctable="SC_DATA" expcube=/scratch/kocevski/8894/ltcube_557366401_557625601_4FGL_J1350.8+3033_daily_bin1227.fits outfile=/scratch/kocevski/8894/expmap_557366401_557625601_4FGL_J1350.8+3033_daily_bin1227.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/8894/ltcube_557366401_557625601_4FGL_J1350.8+3033_daily_bin1227.fits
.....................!
real 192.63
user 186.85
sys 5.16

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/8894/ft1_filtered_4FGL_J1350.8+3033_daily_bin1227.fits scfile=/scratch/kocevski/8894/ft2_4FGL_J1350.8+3033_daily_bin1227.fits outfile=/scratch/kocevski/8894/cmap_557366401_557625601_4FGL_J1350.8+3033_daily_bin1227.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8894/ft1_filtered_4FGL_J1350.8+3033_daily_bin1227.fits scfile=/scratch/kocevski/8894/ft2_4FGL_J1350.8+3033_daily_bin1227.fits outfile=/scratch/kocevski/8894/cmap_HighResolution_557366401_557625601_4FGL_J1350.8+3033_daily_bin1227.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.4169       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1595       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    34.593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16420       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.530       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.306       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8089       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.488       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.260       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3325       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5776       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3143       1.0000         .10000E-03   10000.    
    24 'norm      '    .20794E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .72800       1.0000         .10000E-03   10000.    
    26 'norm      '    6.9138       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5534       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5981.679     FROM MIGRAD    STATUS=CONVERGED   1299 CALLS     4362 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2249        6.4944        .16090E-03   -.14979E-04
   2  Prefactor     .10000E-03    21.946        .18142E-02** at limit **
   3  Prefactor     .10000E-03    29.979        .18142E-02** at limit **
   4  norm          6.4184        6.2370        .15844E-03    .11201E-03
   5  norm          7.1604        5.5260        .14895E-03   -.23157E-03
   6  norm          .10000E-03    5.3954        .17451E-02** at limit **
   7  norm          34.585        37.525        .68134E-04    .37777E-04
   8  Prefactor     .15651        26.260        .21846E-02    .15059E-03
   9  Prefactor     25.545        19.173        .79281E-04    .19146E-03
  10  norm          1.7096        30.111        .32195E-03    .21039E-03
  11  Prefactor     19.316        45.590        .91156E-04   -.41157E-05
  12  norm          8.0370        13.444        .14143E-03   -.35450E-04
  13  Prefactor     5.8107        22.914        .16664E-03   -.53215E-05
  14  Prefactor     35.499        39.557        .67272E-04   -.37517E-04
  15  Prefactor     23.305        73.942        .83055E-04   -.96146E-04
  16  Prefactor     .10000E-03    2.7138        .12325E-02** at limit **
  17  Prefactor     1.3334        30.606        .38029E-03    .69865E-04
  18  norm          .10000E-03    3.7919        .14704E-02** at limit **
  19  Prefactor     .10000E-03    5.2344        .17271E-02** at limit **
  20  norm          .10000E-03    1.0104        .75804E-03** at limit **
  21  Prefactor     .10000E-03    6.5134        .18142E-02** at limit **
  22  Prefactor     5.5773        11.966        .17011E-03   -.14376E-03
  23  Prefactor     6.3150        3.6347        .10644E-03   -.12358E-03
  24  norm          .37521E-01    10.561        .79930E-01    .89826E-04
  25  norm          .72794        1.7852        .16086E-02    .34263E-03
  26  norm          6.9136        10.955        .15258E-03   -.11713E-03
  27  Prefactor     .10000E-03    52.235        .18142E-02** at limit **
  28  Normalizat    1.5531        .24182        .22123E-03   -.18140E-04
  29  Prefactor     .69246        .23664        .33192E-03   -.44253E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.22487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.41837
  norm       = 7.16038
  norm       = 0.0001
  norm       = 34.5854
  Prefactor  = 0.156509
  Prefactor  = 25.5449
  norm       = 1.70963
  Prefactor  = 19.3162
  norm       = 8.03696
  Prefactor  = 5.81068
  Prefactor  = 35.4989
  Prefactor  = 23.3047
  Prefactor  = 0.0001
  Prefactor  = 1.33337
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.57731
  Prefactor  = 6.315
  norm       = 0.0375214
  norm       = 0.727941
  norm       = 6.91359
  Prefactor  = 0.0001
  Normalizat = 1.55309
  Prefactor  = 0.692465
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.679     FROM HESSE     STATUS=OK           537 CALLS     4899 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2249        6.4940        .64360E-05   -1.5209    
   2  Prefactor     .10000E-03    21.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.4184        6.2180        .63377E-05   -1.5201    
   5  norm          7.1604        5.5211        .59580E-05   -1.5173    
   6  norm          .10000E-03    5.3958        .34902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          34.585        37.479        .13627E-04   -1.4531    
   8  Prefactor     .15651        25.235        .87384E-04   -1.5629    
   9  Prefactor     25.545        18.898        .15856E-04   -1.4697    
  10  norm          1.7096        29.844        .12878E-04   -1.5446    
  11  Prefactor     19.316        45.430        .36462E-05   -1.4829    
  12  norm          8.0370        13.397        .56570E-05   -1.5141    
  13  Prefactor     5.8107        22.907        .66654E-05   -1.5226    
  14  Prefactor     35.499        39.549        .26909E-05   -1.4516    
  15  Prefactor     23.305        73.944        .16611E-04   -1.4742    
  16  Prefactor     .10000E-03    2.7147        .24650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3334        30.579        .15211E-04   -1.5477    
  18  norm          .10000E-03    3.7919        .29408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2346        .34542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0104        .15161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.5773        11.964        .68043E-05   -1.5236    
  23  Prefactor     6.3150        3.6344        .42575E-05   -1.5205    
  24  norm          .37521E-01    10.348        .81417E-01   -1.5669    
  25  norm          .72794        1.7825        .64343E-04   -1.5537    
  26  norm          6.9136        10.954        .61032E-05   -1.5182    
  27  Prefactor     .10000E-03    52.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5531        .24191        .88493E-05   -.76297    
  29  Prefactor     .69246        .23673        .13277E-04   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19328e-09
Minuit parameter uncertainties:
  1  6.49477
  2  2.0984e-06
  3  9.95363e-05
  4  6.21863
  5  5.52152
  6  3.264e-05
  7  37.5042
  8  3.97514
  9  18.9021
  10  14.2938
  11  45.5113
  12  13.402
  13  22.9413
  14  39.5786
  15  74.2369
  16  2.36019e-05
  17  12.7777
  18  1.20455e-08
  19  1.9457e-05
  20  6.40821e-06
  21  7.48538e-05
  22  11.9695
  23  3.63456
  24  1.24479
  25  1.78262
  26  10.9574
  27  2.19608e-05
  28  0.242092
  29  0.237077
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  6.925e-01  2.371e-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.553e+00  2.421e-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: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8894/likelihoodResults_557366401_557625601_4FGL_J1350.8+3033_daily_bin1227.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) = 5981.68070039
delta logL = -0.00175090159701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5981.67894934
delta logL = 1.49276274897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4334       1.0000          .0000       10.000    
     3 'Normalizat'    1.5531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69250       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5981.679     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      272 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68112E-01    .40803E-01** at limit **
   2  Index         3.3014        7.3686        .50000        .60259E-06
   3  Normalizat    1.5531        .13521E-02    .22123E-03    .11862E-02
   4  Prefactor     .69247        .14237E-02    .33192E-03    .72497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.30138
  Normalizat = 1.55309
  Prefactor  = 0.692468
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.679     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      303 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.804        .13774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3014        5.7017        .50000       -.34662    
   3  Normalizat    1.5531        .13255E-01    .44247E-04   -.76297    
   4  Prefactor     .69247        .13957E-01    .66384E-04   -1.0382    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75945e-10
Minuit parameter uncertainties:
  1  1.53568e-05
  2  157.734
  3  0.0132552
  4  0.0139574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8894': 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) = 5981.67894244
delta logL = 7.04561716702e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  6.925e-01  1.396e-02  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.553e+00  1.326e-02  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/8894/cmap_HighResolution_557366401_557625601_4FGL_J1350.8+3033_daily_bin1227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.39e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-08 15:16:36.517119', job_id='8894', GAL2='0.69', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1631139396.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='7.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1227' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:16:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 8894: <4FGL_J1350.8+3033_daily_bin1227> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1227> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:00:42 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:01:51 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:01:51 2021
Terminated at Wed Sep  8 15:16:37 2021
Results reported at Wed Sep  8 15:16:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1227 207.715 30.5588 557366401 557625601 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 :                                   846.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            955 sec.

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

