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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1201
RA = 207.715, Dec = 30.5588
tmin = 550627201, tmax = 550886401
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='8856', job_status='RUN', time_executed='2021-09-08 15:05:40.235001', time_epoch_executed='1631138740.24' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8856

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8856/ft1_4FGL_J1350.8+3033_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8856/ft2_4FGL_J1350.8+3033_daily_bin1201.fits


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

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

Done.
real 4.00
user 3.74
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8856/ft1_filtered_4FGL_J1350.8+3033_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/8856/ft2_4FGL_J1350.8+3033_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/8856/ltcube_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.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/8856/ft2_4FGL_J1350.8+3033_daily_bin1201.fits
.....................!
real 16.05
user 15.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8856/ft1_filtered_4FGL_J1350.8+3033_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/8856/ft2_4FGL_J1350.8+3033_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/8856/ltcube_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.fits outfile=/scratch/kocevski/8856/expmap_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.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/8856/ltcube_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.fits
.....................!
real 192.92
user 186.74
sys 4.80

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/8856/ft1_filtered_4FGL_J1350.8+3033_daily_bin1201.fits scfile=/scratch/kocevski/8856/ft2_4FGL_J1350.8+3033_daily_bin1201.fits outfile=/scratch/kocevski/8856/cmap_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8856/ft1_filtered_4FGL_J1350.8+3033_daily_bin1201.fits scfile=/scratch/kocevski/8856/ft2_4FGL_J1350.8+3033_daily_bin1201.fits outfile=/scratch/kocevski/8856/cmap_HighResolution_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3910       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    128.12       1.0000         .10000E-03   10000.    
     4 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.075       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    28.428       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11804E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30459E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    269.51       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .96135E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    604.60       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11518E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.887       1.0000         .10000E-03   10000.    
    26 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96137       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95843       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=   1537.386     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     4271 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3928        11.075        .41808E-05    .78474E-04
   2  Prefactor     .10000E-03    43.619       -.35630E-04** at limit **
   3  Prefactor     128.07        134.92       -.42001E-04    .87355E-05
   4  norm          .10001E-03    17.644        .49937E-05** at limit **
   5  norm          .10000E-03    3.7812       -.19703E-06** at limit **
   6  norm          .10000E-03    4.7049       -.41068E-08** at limit **
   7  norm          .10000E-03    47.625        .36147E-04** at limit **
   8  Prefactor     .10000E-03    5.2487        .40018E-06** at limit **
   9  Prefactor     .10000E-03    16.586       -.52274E-05** at limit **
  10  norm          13.077        18.594        .30480E-05   -.19540E-03
  11  Prefactor     .10000E-03    99.826       -.85384E-04** at limit **
  12  norm          28.434        26.501        .33121E-06   -.11799E-03
  13  Prefactor     4.5705        81.504        .10402E-05   -.21902E-04
  14  Prefactor     .10000E-03    45.905        .12783E-04** at limit **
  15  Prefactor     .10000E-03    463.55       -.18129E-04** at limit **
  16  Prefactor     .10000E-03    7.3658        .52557E-07** at limit **
  17  Prefactor     .10000E-03    17.830       -.64928E-06** at limit **
  18  norm          269.75        411.86        .14378E-03    .78710E-04
  19  Prefactor     .10002E-03    574.77       -.57304E-03** at limit **
  20  norm          .10000E-03    15.978        .34396E-05** at limit **
  21  Prefactor     .10061E-03    545.14       -.72696E-04** at limit **
  22  Prefactor     603.65        838.71       -.39509E-03    .42730E-04
  23  Prefactor     .10000E-03    7.9889       -.23540E-06** at limit **
  24  norm          .10004E-03    215.40        .82174E-04** at limit **
  25  norm          12.887        7.2789       -.14561E-05    .13136E-04
  26  norm          .10000E-03    186.57        .89735E-04** at limit **
  27  Prefactor     .10000E-03    160.52        .68431E-04** at limit **
  28  Normalizat    .96108        .42689        .61755E-05   -.83407E-04
  29  Prefactor     .95869        .38240       -.18819E-05   -.49560E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.39278
  Prefactor  = 0.0001
  Prefactor  = 128.068
  norm       = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0771
  Prefactor  = 0.0001
  norm       = 28.4339
  Prefactor  = 4.57055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 269.746
  Prefactor  = 0.000100016
  norm       = 0.000100002
  Prefactor  = 0.000100605
  Prefactor  = 603.651
  Prefactor  = 0.0001
  norm       = 0.000100036
  norm       = 12.887
  norm       = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.961083
  Prefactor  = 0.958691
 **********
 **   18 **HESSE 
 **********

 FCN=   1537.386     FROM HESSE     STATUS=OK           535 CALLS     4806 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3928        11.075        .13078E-03   -1.5095    
   2  Prefactor     .10000E-03    43.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     128.07        135.06        .17784E-03   -1.3440    
   4  norm          .10001E-03    17.666        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7864        .74458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.7053        .83074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    47.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2557        .87720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.589        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.077        18.555        .11078E-03   -1.4985    
  11  Prefactor     .10000E-03    99.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          28.434        26.558        .75141E-04   -1.4641    
  13  Prefactor     4.5705        83.422        .18885E-03   -1.5280    
  14  Prefactor     .10000E-03    45.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    463.58        .21383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3802        .10393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.872        .16168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          269.75        412.87        .12350E-03   -1.2408    
  19  Prefactor     .10002E-03    573.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    15.986        .15314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10061E-03    545.13        .20788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     603.65        836.77        .83915E-04   -1.0743    
  23  Prefactor     .10000E-03    7.9894        .10826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10004E-03    216.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.887        7.2879        .76681E-04   -1.4990    
  26  norm          .10000E-03    186.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    160.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96108        .51482        .27815E-03   -.94346    
  29  Prefactor     .95869        .46002        .26485E-03   -.94119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60005e-09
Minuit parameter uncertainties:
  1  11.0775
  2  0.000202542
  3  135.383
  4  0.000696111
  5  1.73625e-05
  6  6.54386e-06
  7  0.00044684
  8  6.86109e-05
  9  6.23117e-05
  10  18.5633
  11  0.000223376
  12  26.5687
  13  39.116
  14  0.000124251
  15  0.000727743
  16  3.47436e-06
  17  5.81532e-05
  18  417.477
  19  0.00612622
  20  0.000391099
  21  0.0366596
  22  855.017
  23  2.75522e-05
  24  0.00560229
  25  7.28841
  26  0.00137966
  27  4.09267e-05
  28  0.517499
  29  0.461917
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.587e-01  4.619e-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.611e-01  5.175e-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: 2.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8856/likelihoodResults_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.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) = 1537.38659757
delta logL = -0.000639349920903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1537.38595822
delta logL = -3.67299435311e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4157       1.0000          .0000       10.000    
     3 'Normalizat'    .96110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95870       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=   1537.386     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    123.73        .90712E-02** at limit **
   2  Index         2.4160        8.1830        .50000       -.45168E-06
   3  Normalizat    .96109        .39780E-01    .45678E-01    .38670E-05
   4  Prefactor     .95869        .38035E-01    .45749E-01    .46324E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41604
  Normalizat = 0.961089
  Prefactor  = 0.958686
 **********
 **   18 **HESSE 
 **********

 FCN=   1537.386     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      230 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1311.3        .10393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4160        5.9372        .50000       -.54310    
   3  Normalizat    .96109        .19230        .27814E-03   -.94346    
   4  Prefactor     .95869        .18379        .26485E-03   -.94120    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5094e-07
Minuit parameter uncertainties:
  1  6.31926e-05
  2  3641.41
  3  0.192435
  4  0.183911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8856': 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) = 1537.38595822
delta logL = 1.54386725626e-10

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  6.319e-05  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.416e+00  3.641e+03  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.587e-01  1.839e-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.611e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.715 30.559

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/8856/cmap_HighResolution_550627201_550886401_4FGL_J1350.8+3033_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-02', job_status='DONE', photon_flux_upper_limit='2.59e-07', time_completed='2021-09-08 15:14:33.169992', job_id='8856', GAL2='0.96', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631139273.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.54e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1201' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:14:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 8856: <4FGL_J1350.8+3033_daily_bin1201> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1201 207.715 30.5588 550627201 550886401 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 :                                   449.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            834 sec.

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

