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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin618
RA = 207.715, Dec = 30.5588
tmin = 399513601, tmax = 399772801
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='5689', job_status='RUN', time_executed='2021-09-08 14:51:25.044012', time_epoch_executed='1631137885.04' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5689/ft1_4FGL_J1350.8+3033_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5689/ft2_4FGL_J1350.8+3033_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5689/ft1_4FGL_J1350.8+3033_daily_bin618.fits outfile=/scratch/kocevski/5689/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin618.fits ra=207.715 dec=30.5588 rad=12.0 tmin=399513601.0 tmax=399772801.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.41
user 4.08
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5689/ft2_4FGL_J1350.8+3033_daily_bin618.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/5689/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin618.fits evtable="EVENTS" outfile="/scratch/kocevski/5689/ft1_filtered_4FGL_J1350.8+3033_daily_bin618.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.47
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5689/ft1_filtered_4FGL_J1350.8+3033_daily_bin618.fits" evtable="EVENTS" scfile=/scratch/kocevski/5689/ft2_4FGL_J1350.8+3033_daily_bin618.fits sctable="SC_DATA" outfile=/scratch/kocevski/5689/ltcube_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.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/5689/ft2_4FGL_J1350.8+3033_daily_bin618.fits
.....................!
real 12.87
user 12.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5689/ft1_filtered_4FGL_J1350.8+3033_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/5689/ft2_4FGL_J1350.8+3033_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/5689/ltcube_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.fits outfile=/scratch/kocevski/5689/expmap_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.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/5689/ltcube_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.fits
.....................!
real 156.14
user 151.86
sys 3.94

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/5689/ft1_filtered_4FGL_J1350.8+3033_daily_bin618.fits scfile=/scratch/kocevski/5689/ft2_4FGL_J1350.8+3033_daily_bin618.fits outfile=/scratch/kocevski/5689/cmap_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5689/ft1_filtered_4FGL_J1350.8+3033_daily_bin618.fits scfile=/scratch/kocevski/5689/ft2_4FGL_J1350.8+3033_daily_bin618.fits outfile=/scratch/kocevski/5689/cmap_HighResolution_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.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.49
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3951       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4113       1.0000         .10000E-03   10000.    
     5 'norm      '    8.1587       1.0000         .10000E-03   10000.    
     6 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22389E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.872       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.229       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.028       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4668       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.055       1.0000         .10000E-03   10000.    
    18 'norm      '    18.312       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0055       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.625       1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99886       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98638       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=   4780.429     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3744 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6463       -.49986E-07** at limit **
   2  Prefactor     .10000E-03    19.063       -.26329E-06** at limit **
   3  Prefactor     9.4129        17.366        .35029E-06    .87804E-04
   4  norm          2.4166        4.6252        .62344E-06    .20445E-03
   5  norm          8.1664        5.5031       -.22386E-06    .41670E-03
   6  norm          .10000E-03    11.753       -.98152E-06** at limit **
   7  norm          .10000E-03    7.7413       -.38914E-07** at limit **
   8  Prefactor     .10846E-03    2.9443       -.72796E-06** at limit **
   9  Prefactor     11.950        21.990        .27203E-05    .23356E-03
  10  norm          .10000E-03    5.1188       -.12914E-06** at limit **
  11  Prefactor     .10000E-03    38.579       -.34214E-07** at limit **
  12  norm          11.874        8.9644        .73180E-07    .14698E-04
  13  Prefactor     11.098        17.752        .23443E-06    .55531E-04
  14  Prefactor     10.228        32.675        .59230E-06    .14890E-04
  15  Prefactor     39.124        102.91        .36818E-05    .48567E-04
  16  Prefactor     3.4655        4.4220        .32228E-06    .50597E-04
  17  Prefactor     13.056        14.113        .14879E-07    .50600E-05
  18  norm          18.317        15.600        .21852E-06    .16603E-04
  19  Prefactor     .10000E-03    9.1248       -.58795E-07** at limit **
  20  norm          6.0040        4.2789        .14864E-06    .24883E-04
  21  Prefactor     .10000E-03    10.188       -.70148E-08** at limit **
  22  Prefactor     .10000E-03    14.074       -.36586E-07** at limit **
  23  Prefactor     .10000E-03    1.2410       -.87219E-07** at limit **
  24  norm          .10000E-03    5.9731       -.33913E-07** at limit **
  25  norm          12.626        4.2013       -.28955E-07    .12359E-04
  26  norm          .10000E-03    9.0820       -.21023E-06** at limit **
  27  Prefactor     .10000E-03    23.890       -.73547E-07** at limit **
  28  Normalizat    .99892        .23854       -.32012E-05    .32613E-03
  29  Prefactor     .98644        .23728        .32752E-05    .66343E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.41291
  norm       = 2.41661
  norm       = 8.16638
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010846
  Prefactor  = 11.9498
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8738
  Prefactor  = 11.0978
  Prefactor  = 10.2277
  Prefactor  = 39.1237
  Prefactor  = 3.46553
  Prefactor  = 13.0557
  norm       = 18.3174
  Prefactor  = 0.0001
  norm       = 6.00401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.6257
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.998919
  Prefactor  = 0.986435
 **********
 **   18 **HESSE 
 **********

 FCN=   4780.429     FROM HESSE     STATUS=OK           559 CALLS     4303 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6482        .86626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.4129        17.383        .13075E-03   -1.5094    
   4  norm          2.4166        4.6724        .19685E-03   -1.5397    
   5  norm          8.1664        5.3869        .11665E-03   -1.5136    
   6  norm          .10000E-03    11.879        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10846E-03    12.148        .31929E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.950        24.291        .11627E-03   -1.5016    
  10  norm          .10000E-03    5.1952        .15258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.874        8.9561        .11626E-03   -1.5019    
  13  Prefactor     11.098        17.683        .12029E-03   -1.5042    
  14  Prefactor     10.228        32.548        .12528E-03   -1.5068    
  15  Prefactor     39.124        103.25        .64159E-04   -1.4456    
  16  Prefactor     3.4655        4.3968        .15489E-03   -1.5336    
  17  Prefactor     13.056        14.118        .11086E-03   -1.4985    
  18  norm          18.317        15.591        .93595E-04   -1.4852    
  19  Prefactor     .10000E-03    9.1367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0040        4.2722        .11622E-03   -1.5218    
  21  Prefactor     .10000E-03    10.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2476        .75205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.9759        .16504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.626        4.2033        .79230E-04   -1.4997    
  26  norm          .10000E-03    9.2207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .99892        .24967        .24140E-03   -.93067    
  29  Prefactor     .98644        .24809        .26801E-03   -.93183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70579e-10
Minuit parameter uncertainties:
  1  8.83209e-08
  2  2.39511e-05
  3  17.392
  4  4.67313
  5  5.38723
  6  3.8019e-05
  7  3.38957e-07
  8  0.0202789
  9  24.3113
  10  1.5498e-06
  11  2.18539e-05
  12  8.95714
  13  17.6915
  14  32.6046
  15  103.729
  16  4.39718
  17  14.122
  18  15.5946
  19  9.53311e-06
  20  4.27242
  21  3.00026e-05
  22  3.12758e-05
  23  5.04637e-07
  24  2.80693e-07
  25  4.20336
  26  7.76602e-06
  27  1.24958e-05
  28  0.249963
  29  0.248382
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  3.466e+00  4.397e+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.864e-01  2.484e-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.989e-01  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/5689/likelihoodResults_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.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) = 4779.6142828
delta logL = 0.814567614661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4779.45230353
delta logL = 0.976546887226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3114       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1384       1.0000          .0000       10.000    
     3 'Normalizat'    1.0250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97263       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=   4779.452     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      209 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3114        1.5574        .96240E-02    .22266E-02
   2  Index         1.1383        .41249        .19857       -.66746E-04
   3  Normalizat    1.0250        .18679        .42700E-01   -.17841E-04
   4  Prefactor     .97262        .20725        .45924E-01    .33145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.31141
  Index      = 1.13834
  Normalizat = 1.02501
  Prefactor  = 0.972624
 **********
 **   18 **HESSE 
 **********

 FCN=   4779.452     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3114        2.4077        .84686E-04   -1.5479    
   2  Index         1.1383        .68463        .81119E-02   -.88250    
   3  Normalizat    1.0250        .21420        .23838E-03   -.92197    
   4  Prefactor     .97262        .23761        .26946E-03   -.93648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30171e-09
Minuit parameter uncertainties:
  1  2.40791
  2  0.690041
  3  0.214377
  4  0.237868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5689': 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) = 4779.45230352
delta logL = 0.976546890157

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.311e+00  2.408e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  1.138e+00  6.900e-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:  9.726e-01  2.379e-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.025e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 207.715 30.559
Photon Index (Free Index): 1.14 +/- 0.69
Photon Flux (Free Index): 5.46e-09 +/- 7.47e-09
Energy Flux (Free Index): 5.46e-05 +/- 8.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/5689/cmap_HighResolution_399513601_399772801_4FGL_J1350.8+3033_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.81e-03', comment='SUCCESS', energy_flux2='5.46e-05', dlogl='9.77e-01', photon_flux2='5.46e-09', job_status='DONE', time_completed='2021-09-08 15:01:02.044917', photon_index_error2='0.69', photon_index2='1.14', ts='0.93', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='8.71e-05', EG='1.00', time_epoch_completed='1631138462.04', return_code='0', job_id='5689', GAL2='0.97', EG2='1.03', return_code2='0', photon_flux_error2='7.47e-09', ts2='2.87', photon_index='2.42' WHERE bin_id='618' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:01:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 5689: <4FGL_J1350.8+3033_daily_bin618> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin618> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:50:25 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:51:07 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:51:07 2021
Terminated at Wed Sep  8 15:01:02 2021
Results reported at Wed Sep  8 15:01:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin618 207.715 30.5588 399513601 399772801 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 :                                   570.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   595 sec.
    Turnaround time :                            637 sec.

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

