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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin54
RA = 207.715, Dec = 30.5588
tmin = 253324801, tmax = 253584001
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='1812', job_status='RUN', time_executed='2021-09-08 14:43:49.671281', time_epoch_executed='1631137429.67' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1812/ft1_4FGL_J1350.8+3033_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1812/ft2_4FGL_J1350.8+3033_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1812/ft1_4FGL_J1350.8+3033_daily_bin54.fits outfile=/scratch/kocevski/1812/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin54.fits ra=207.715 dec=30.5588 rad=12.0 tmin=253324801.0 tmax=253584001.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.46
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1812/ft1_filtered_4FGL_J1350.8+3033_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/1812/ft2_4FGL_J1350.8+3033_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/1812/ltcube_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.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/1812/ft2_4FGL_J1350.8+3033_daily_bin54.fits
.....................!
real 17.91
user 17.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1812/ft1_filtered_4FGL_J1350.8+3033_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/1812/ft2_4FGL_J1350.8+3033_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/1812/ltcube_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.fits outfile=/scratch/kocevski/1812/expmap_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.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/1812/ltcube_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.fits
.....................!
real 192.94
user 187.44
sys 4.85

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/1812/ft1_filtered_4FGL_J1350.8+3033_daily_bin54.fits scfile=/scratch/kocevski/1812/ft2_4FGL_J1350.8+3033_daily_bin54.fits outfile=/scratch/kocevski/1812/cmap_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1812/ft1_filtered_4FGL_J1350.8+3033_daily_bin54.fits scfile=/scratch/kocevski/1812/ft2_4FGL_J1350.8+3033_daily_bin54.fits outfile=/scratch/kocevski/1812/cmap_HighResolution_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1017       1.0000         .10000E-03   10000.    
     5 'norm      '    8.9906       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13025E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    14.510       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11698       1.0000         .10000E-03   10000.    
    20 'norm      '    4.8861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9076       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3160       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.6468       1.0000         .10000E-03   10000.    
    26 'norm      '    .42704E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86774       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=   4749.445     FROM MIGRAD    STATUS=CONVERGED   1419 CALLS     4425 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3905        .79313E-03** at limit **
   2  Prefactor     .10000E-03    9.9665        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.7501        .18142E-02** at limit **
   4  norm          4.1015        4.1675        .68862E-03    .31632E-04
   5  norm          8.9908        4.3708        .95228E-04    .10458E-03
   6  norm          .10000E-03    8.0573        .36285E-03** at limit **
   7  norm          .10000E-03    21.878        .18142E-02** at limit **
   8  Prefactor     .21120        6.1828        .17034E-02    .32571E-03
   9  Prefactor     .10000E-03    6.1483        .16664E-02** at limit **
  10  norm          .10000E-03    9.8206        .18142E-02** at limit **
  11  Prefactor     .10001E-03    572.78        .41157E-02** at limit **
  12  norm          14.509        9.6640        .10515E-03   -.99688E-04
  13  Prefactor     2.8027        13.181        .24335E-03    .15697E-04
  14  Prefactor     11.390        17.319        .11861E-03    .43898E-04
  15  Prefactor     .10000E-03    23.097        .18142E-02** at limit **
  16  Prefactor     .10000E-03    49.373        .21087E-02** at limit **
  17  Prefactor     .10000E-03    9.1033        .18142E-02** at limit **
  18  norm          8.4611        11.028        .13787E-03   -.67615E-05
  19  Prefactor     .10010E-03    38.698        .91282E-01** at limit **
  20  norm          4.8837        5.4870        .15877E-03    .73037E-05
  21  Prefactor     5.0423        85.778        .18156E-03    .13776E-05
  22  Prefactor     2.2062        199.60        .26957E-03    .17249E-04
  23  Prefactor     10.227        5.3305        .10824E-03    .49052E-04
  24  norm          .10000E-03    7.9669        .18142E-02** at limit **
  25  norm          7.6469        3.1134        .75346E-04   -.60354E-05
  26  norm          .10001E-03    25.504        .38784E-02** at limit **
  27  Prefactor     .10000E-03    39.183        .18142E-02** at limit **
  28  Normalizat    1.0611        .22203        .22101E-03    .99794E-05
  29  Prefactor     .86775        .23578        .26857E-03    .96938E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10147
  norm       = 8.99083
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.211197
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 14.5094
  Prefactor  = 2.80268
  Prefactor  = 11.39
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.46111
  Prefactor  = 0.000100095
  norm       = 4.88366
  Prefactor  = 5.04233
  Prefactor  = 2.20622
  Prefactor  = 10.2269
  norm       = 0.0001
  norm       = 7.64691
  norm       = 0.000100014
  Prefactor  = 0.0001
  Normalizat = 1.06106
  Prefactor  = 0.867748
 **********
 **   18 **HESSE 
 **********

 FCN=   4749.445     FROM HESSE     STATUS=OK           537 CALLS     4962 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3906        .15863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1015        4.1662        .27545E-04   -1.5303    
   5  norm          8.9908        4.3672        .38091E-05   -1.5108    
   6  norm          .10000E-03    8.0574        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21120        6.1670        .68138E-04   -1.5616    
   9  Prefactor     .10000E-03    6.1485        .33328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.8268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    576.77        .82314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.509        9.6614        .42059E-05   -1.4946    
  13  Prefactor     2.8027        13.177        .97341E-05   -1.5373    
  14  Prefactor     11.390        17.317        .47445E-05   -1.5033    
  15  Prefactor     .10000E-03    23.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.697        .84348E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4611        11.027        .55149E-05   -1.5126    
  19  Prefactor     .10010E-03    34.531        .96965E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8837        5.4836        .63508E-05   -1.5266    
  21  Prefactor     5.0423        81.192        .72625E-05   -1.5259    
  22  Prefactor     2.2062        189.97        .10783E-04   -1.5411    
  23  Prefactor     10.227        5.3298        .43294E-05   -1.5068    
  24  norm          .10000E-03    7.9671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.6469        3.1134        .30138E-05   -1.5155    
  26  norm          .10001E-03    25.694        .77567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    39.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0611        .22187        .88403E-05   -.91012    
  29  Prefactor     .86775        .23592        .10743E-04   -.97277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48137e-10
Minuit parameter uncertainties:
  1  4.66407e-07
  2  1.74641e-05
  3  5.93291e-07
  4  4.16646
  5  4.3674
  6  2.31907e-05
  7  3.09319e-05
  8  2.28221
  9  5.51257e-06
  10  6.80286e-05
  11  0.00362197
  12  9.66242
  13  12.1582
  14  17.3246
  15  1.19023e-05
  16  0.00023867
  17  2.30112e-05
  18  11.0298
  19  0.00363316
  20  5.48414
  21  40.532
  22  41.0792
  23  5.33009
  24  2.77022e-05
  25  3.11347
  26  0.00121031
  27  3.73903e-05
  28  0.222059
  29  0.236199
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.677e-01  2.362e-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.061e+00  2.221e-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: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1812/likelihoodResults_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.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) = 4749.44529282
delta logL = -9.60894249147e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4748.30141895
delta logL = 1.14377778354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25865E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9695       1.0000          .0000       10.000    
     3 'Normalizat'    .96695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93604       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=   4748.301     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      279 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26355E-01    .37718        .19377E-02    .14288E-02
   2  Index         5.9589        3.2238        .13263        .86750E-04
   3  Normalizat    .96700        .47701E-01    .45751E-01    .14105E-05
   4  Prefactor     .93596        .53256E-01    .45463E-01    .69853E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0263546
  Index      = 5.95892
  Normalizat = 0.967001
  Prefactor  = 0.935963
 **********
 **   18 **HESSE 
 **********

 FCN=   4748.301     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      314 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26355E-01    .85008        .87816E-04   -1.5676    
   2  Index         5.9589        7.6833        .51240E-02    .19298    
   3  Normalizat    .96700        .16758        .23020E-03   -.94144    
   4  Prefactor     .93596        .18334        .25982E-03   -.94896    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73382e-07
Minuit parameter uncertainties:
  1  0.298793
  2  6.24236
  3  0.167669
  4  0.183466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1812': 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) = 4748.30141525
delta logL = 1.1437814801

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.360e-01  1.835e-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.670e-01  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 207.715 30.559
Photon Index (Free Index): 5.96 +/- 6.24
Photon Flux (Free Index): 6.48e-08 +/- 5.32e-08
Energy Flux (Free Index): 8.09e-06 +/- 7.98e-06

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/1812/cmap_HighResolution_253324801_253584001_4FGL_J1350.8+3033_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', comment='SUCCESS', energy_flux2='8.09e-06', dlogl='1.14e+00', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-08 14:56:02.507881', photon_index_error2='6.24', photon_index2='5.96', ts='-0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.04e-08', energy_flux_error2='7.98e-06', EG='1.06', time_epoch_completed='1631138162.51', return_code='0', job_id='1812', GAL2='0.94', EG2='0.97', return_code2='102', photon_flux_error2='5.32e-08', ts2='2.44', photon_index='2.42' WHERE bin_id='54' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:56:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 1812: <4FGL_J1350.8+3033_daily_bin54> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin54> 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) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:40:33 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:33 2021
Terminated at Wed Sep  8 14:56:03 2021
Results reported at Wed Sep  8 14:56:03 2021

Your job looked like:

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

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

