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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin55
RA = 207.715, Dec = 30.5588
tmin = 253584001, tmax = 253843201
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='1813', job_status='RUN', time_executed='2021-09-08 14:44:23.592430', time_epoch_executed='1631137463.59' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1813/ft1_4FGL_J1350.8+3033_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1813/ft2_4FGL_J1350.8+3033_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1813/ft1_4FGL_J1350.8+3033_daily_bin55.fits outfile=/scratch/kocevski/1813/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin55.fits ra=207.715 dec=30.5588 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.47
user 1.27
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1813/ft1_filtered_4FGL_J1350.8+3033_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/1813/ft2_4FGL_J1350.8+3033_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/1813/ltcube_253584001_253843201_4FGL_J1350.8+3033_daily_bin55.fits outfile=/scratch/kocevski/1813/expmap_253584001_253843201_4FGL_J1350.8+3033_daily_bin55.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/1813/ltcube_253584001_253843201_4FGL_J1350.8+3033_daily_bin55.fits
.....................!
real 194.53
user 187.35
sys 4.42

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/1813/ft1_filtered_4FGL_J1350.8+3033_daily_bin55.fits scfile=/scratch/kocevski/1813/ft2_4FGL_J1350.8+3033_daily_bin55.fits outfile=/scratch/kocevski/1813/cmap_253584001_253843201_4FGL_J1350.8+3033_daily_bin55.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.58
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7222       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.997       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.6782       1.0000         .10000E-03   10000.    
     6 'norm      '    .28901E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    9.3450       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10792E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.564       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7932       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.979       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 '    .46370E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.2848       1.0000         .10000E-03   10000.    
    26 'norm      '    8.1672       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0048       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4671.515     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     3090 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7254        4.2026       -.11880E-05    .54984E-04
   2  Prefactor     39.974        2.1876       -.16063E-06    .12035E-02
   3  Prefactor     .10001E-03    7.2326        .79646E-05** at limit **
   4  norm          .10000E-03    2.7136        .51282E-07** at limit **
   5  norm          3.6842        3.6433       -.23201E-05    .11812E-03
   6  norm          .10012E-03    166.27        .24329E-05** at limit **
   7  norm          9.3470        1.0162       -.10952E-06    .13721E-03
   8  Prefactor     .10000E-03    3.0100       -.39883E-06** at limit **
   9  Prefactor     .10076E-03    23.225       -.81277E-05** at limit **
  10  norm          .10001E-03    6.4704       -.10113E-04** at limit **
  11  Prefactor     .10001E-03    5.4209        .28152E-05** at limit **
  12  norm          29.533        1.0484        .11754E-06   -.25411E-03
  13  Prefactor     .10000E-03    3.5982        .38459E-05** at limit **
  14  Prefactor     .10000E-03    5.1678        .55382E-06** at limit **
  15  Prefactor     45.564        1.0007        .13272E-07   -.11839E-03
  16  Prefactor     5.7937        1.1670        .81598E-06    .17341E-02
  17  Prefactor     .10005E-03    11.247       -.73593E-05** at limit **
  18  norm          21.978        1.0085        .53340E-07   -.16730E-03
  19  Prefactor     .10000E-03    2.9606        .12744E-05** at limit **
  20  norm          .10000E-03    1.1940        .17118E-06** at limit **
  21  Prefactor     .10155E-03    25.236        .13135E-04** at limit **
  22  Prefactor     .10001E-03    11.551       -.68352E-05** at limit **
  23  Prefactor     .10000E-03    1.4736       -.41427E-06** at limit **
  24  norm          .10014E-03    11.681        .55538E-05** at limit **
  25  norm          6.2849        3.1102        .21492E-06    .93167E-04
  26  norm          8.1663        1.0062        .42428E-07    .31197E-05
  27  Prefactor     .10004E-03    5.8967       -.36946E-06** at limit **
  28  Normalizat    1.0046        .21101        .16319E-05    .62755E-04
  29  Prefactor     .90422        .23851       -.13062E-05    .39915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72536
  Prefactor  = 39.9744
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 3.68421
  norm       = 0.000100123
  norm       = 9.347
  Prefactor  = 0.0001
  Prefactor  = 0.000100757
  norm       = 0.000100013
  Prefactor  = 0.000100011
  norm       = 29.5325
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 45.5637
  Prefactor  = 5.79374
  Prefactor  = 0.000100048
  norm       = 21.9776
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101552
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.000100143
  norm       = 6.28489
  norm       = 8.1663
  Prefactor  = 0.000100044
  Normalizat = 1.00456
  Prefactor  = 0.904219
 **********
 **   18 **HESSE 
 **********

 FCN=   4671.515     FROM HESSE     STATUS=OK           621 CALLS     3711 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7254        4.5332        .80017E-02   -1.5445    
   2  Prefactor     39.974        29.396        .15845E-02   -1.4443    
   3  Prefactor     .10001E-03    7.3996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.6842        4.4618        .52649E-02   -1.5324    
   6  norm          .10012E-03    8.9194        .57162E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.3470        16.883        .32775E-02   -1.5096    
   8  Prefactor     .10000E-03    1.7880        .35201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10076E-03    32.447        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    6.7078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    18.282        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.533        11.589        .18433E-02   -1.4621    
  13  Prefactor     .10000E-03    6.2498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1737        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.564        74.382        .14849E-02   -1.4357    
  16  Prefactor     5.7937        4.1853        .41716E-02   -1.5227    
  17  Prefactor     .10005E-03    20.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.978        17.521        .21359E-02   -1.4770    
  19  Prefactor     .10000E-03    6.3062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.1905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10155E-03    7.7024        .96522E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    11.633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10014E-03    15.963        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.2849        3.1091        .40030E-02   -1.5207    
  26  norm          8.1663        9.0392        .35072E-02   -1.5136    
  27  Prefactor     .10004E-03    19.148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0046        .18650        .46227E-01   -.92878    
  29  Prefactor     .90422        .20422        .45057E-01   -.95994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88526e-08
Minuit parameter uncertainties:
  1  4.5341
  2  29.4069
  3  0.00047247
  4  7.36566e-06
  5  4.46223
  6  0.00209297
  7  16.892
  8  7.48914e-07
  9  0.00991941
  10  0.000587833
  11  0.000900172
  12  11.5899
  13  0.000221605
  14  5.05084e-06
  15  74.5338
  16  4.18548
  17  0.00196134
  18  17.5252
  19  1.39902e-06
  20  3.45356e-07
  21  0.00691615
  22  0.000571098
  23  2.94513e-06
  24  0.00302358
  25  3.10922
  26  9.04071
  27  0.00184585
  28  0.186626
  29  0.204389
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.042e-01  2.044e-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.005e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.67
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.70e-08 +/- 3.39e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/1813/likelihoodResults_253584001_253843201_4FGL_J1350.8+3033_daily_bin55.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) = 4671.41625487
delta logL = 0.0986439919761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4671.41450864
delta logL = 0.10039022156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7212       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1170       1.0000          .0000       10.000    
     3 'Normalizat'    1.0196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89158       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=   4671.415     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      254 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7321        155.70        .38693E-02    .88498E-04
   2  Index         2.1188        5.6607        .21991        .82995E-05
   3  Normalizat    1.0195        .11659        .43412E-01    .56245E-05
   4  Prefactor     .89152        .11176        .44898E-01    .10296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.7321
  Index      = 2.11875
  Normalizat = 1.0195
  Prefactor  = 0.891521
 **********
 **   18 **HESSE 
 **********

 FCN=   4671.415     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7321        5.0171        .12452E-03   -1.5189    
   2  Index         2.1188        .61993        .75766E-02   -.61413    
   3  Normalizat    1.0195        .21213        .22210E-03   -.92380    
   4  Prefactor     .89152        .23712        .26487E-03   -.96438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76462e-11
Minuit parameter uncertainties:
  1  5.01746
  2  0.622331
  3  0.212304
  4  0.237399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1813': 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) = 4671.41450078
delta logL = 0.10039807863

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  6.732e+00  5.017e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.119e+00  6.223e-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:  8.915e-01  2.374e-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.019e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.85
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.12 +/- 0.62
Photon Flux (Free Index): 3.86e-08 +/- 3.42e-08
Energy Flux (Free Index): 2.03e-05 +/- 2.20e-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/1813/cmap_HighResolution_253584001_253843201_4FGL_J1350.8+3033_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.52e-03', comment='SUCCESS', photon_flux='4.70e-08', energy_flux2='2.03e-05', photon_flux_error='3.39e-08', dlogl='1.00e-01', energy_flux='1.51e-05', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-09-08 14:55:18.245088', photon_index_error2='0.62', photon_index2='2.12', ts='3.67', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.20e-05', EG='1.00', time_epoch_completed='1631138118.25', return_code='0', job_id='1813', GAL2='0.89', EG2='1.02', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.42e-08', ts2='3.85', photon_index='2.42' WHERE bin_id='55' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 1813: <4FGL_J1350.8+3033_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin55 207.715 30.5588 253584001 253843201 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 :                                   648.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            901 sec.

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

