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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1026
RA = 207.715, Dec = 30.5588
tmin = 505267201, tmax = 505526401
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='8596', job_status='RUN', time_executed='2021-09-08 15:03:39.962083', time_epoch_executed='1631138619.96' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8596/ft1_4FGL_J1350.8+3033_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8596/ft2_4FGL_J1350.8+3033_daily_bin1026.fits


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

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

Done.
real 3.21
user 2.95
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8596/ft1_filtered_4FGL_J1350.8+3033_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/8596/ft2_4FGL_J1350.8+3033_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/8596/ltcube_505267201_505526401_4FGL_J1350.8+3033_daily_bin1026.fits outfile=/scratch/kocevski/8596/expmap_505267201_505526401_4FGL_J1350.8+3033_daily_bin1026.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/8596/ltcube_505267201_505526401_4FGL_J1350.8+3033_daily_bin1026.fits
.....................!
real 164.44
user 159.09
sys 4.88

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/8596/ft1_filtered_4FGL_J1350.8+3033_daily_bin1026.fits scfile=/scratch/kocevski/8596/ft2_4FGL_J1350.8+3033_daily_bin1026.fits outfile=/scratch/kocevski/8596/cmap_505267201_505526401_4FGL_J1350.8+3033_daily_bin1026.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.51
user 0.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8596/ft1_filtered_4FGL_J1350.8+3033_daily_bin1026.fits scfile=/scratch/kocevski/8596/ft2_4FGL_J1350.8+3033_daily_bin1026.fits outfile=/scratch/kocevski/8596/cmap_HighResolution_505267201_505526401_4FGL_J1350.8+3033_daily_bin1026.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.52
user 0.35
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3974       1.0000         .10000E-03   10000.    
     6 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11118E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3824       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.8874       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12715E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8195       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9399       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.603       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .62410E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10486E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2234       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.306       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5826       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13495E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.9914       1.0000         .10000E-03   10000.    
    25 'norm      '    8.1817       1.0000         .10000E-03   10000.    
    26 'norm      '    2.4253       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0086       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96853       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=   5407.039     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3681 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4693        .57876E-07** at limit **
   2  Prefactor     .10000E-03    9.0056        .71841E-07** at limit **
   3  Prefactor     .10000E-03    11.977        .14793E-06** at limit **
   4  norm          .10000E-03    2.7610        .65513E-07** at limit **
   5  norm          2.3983        2.4091        .50654E-08   -.16544E-04
   6  norm          .10000E-03    3.4281        .31402E-07** at limit **
   7  norm          .10000E-03    22.423        .26626E-06** at limit **
   8  Prefactor     4.3771        3.9004        .10834E-06    .10678E-03
   9  Prefactor     .10000E-03    18.288        .11801E-06** at limit **
  10  norm          9.8851        6.4701       -.83274E-07   -.38055E-04
  11  Prefactor     .10000E-03    65.326       -.30831E-06** at limit **
  12  norm          5.8176        7.3001        .18162E-06    .16473E-04
  13  Prefactor     .10000E-03    8.8166        .14021E-06** at limit **
  14  Prefactor     4.9454        22.985        .11609E-06   -.70458E-05
  15  Prefactor     44.516        66.863       -.16147E-05   -.61738E-04
  16  Prefactor     .23118E-01    2.0818        .35671E-06   -.43005E-03
  17  Prefactor     .10000E-03    13.236        .37332E-06** at limit **
  18  norm          .10000E-03    16.844       -.92716E-06** at limit **
  19  Prefactor     .10000E-03    5.0735       -.18242E-07** at limit **
  20  norm          3.2230        3.2755        .86779E-09   -.38915E-04
  21  Prefactor     12.328        17.268       -.10695E-05   -.76128E-04
  22  Prefactor     3.5254        40.885        .23885E-05    .31045E-04
  23  Prefactor     .10000E-03    1.5051       -.73114E-07** at limit **
  24  norm          5.9931        8.1880       -.10473E-07   -.18811E-04
  25  norm          8.1808        3.5315        .68960E-07   -.50373E-04
  26  norm          2.4250        6.8213        .91336E-06    .99274E-04
  27  Prefactor     .10000E-03    19.398        .23809E-06** at limit **
  28  Normalizat    1.0091        .20538        .33267E-05   -.28747E-03
  29  Prefactor     .96832        .22004       -.47830E-05   -.14941E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.3983
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.37714
  Prefactor  = 0.0001
  norm       = 9.88508
  Prefactor  = 0.0001
  norm       = 5.81759
  Prefactor  = 0.0001
  Prefactor  = 4.94542
  Prefactor  = 44.5158
  Prefactor  = 0.0231183
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.22305
  Prefactor  = 12.3277
  Prefactor  = 3.52543
  Prefactor  = 0.0001
  norm       = 5.99314
  norm       = 8.18082
  norm       = 2.425
  Prefactor  = 0.0001
  Normalizat = 1.00908
  Prefactor  = 0.968315
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.039     FROM HESSE     STATUS=OK           559 CALLS     4240 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4723        .87048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.0188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7798        .11923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3983        2.3998        .10976E-03   -1.5398    
   6  norm          .10000E-03    3.4420        .13258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    22.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3771        3.9163        .12762E-03   -1.5290    
   9  Prefactor     .10000E-03    18.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.8851        6.4695        .12744E-03   -1.5079    
  11  Prefactor     .10000E-03    65.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.8176        7.3008        .16648E-03   -1.5226    
  13  Prefactor     .10000E-03    8.8471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9454        23.024        .18096E-03   -1.5263    
  15  Prefactor     44.516        67.296        .60031E-04   -1.4373    
  16  Prefactor     .23118E-01    5.6816        .33579E-01   -1.5678    
  17  Prefactor     .10000E-03    13.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0750        .16176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2230        3.2671        .12917E-03   -1.5349    
  21  Prefactor     12.328        16.733        .11419E-03   -1.5006    
  22  Prefactor     3.5254        38.644        .21350E-03   -1.5332    
  23  Prefactor     .10000E-03    9.5324        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.9931        8.1802        .16404E-03   -1.5218    
  25  norm          8.1808        3.5323        .87545E-04   -1.5136    
  26  norm          2.4250        6.8612        .26279E-03   -1.5397    
  27  Prefactor     .10000E-03    19.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0091        .21409        .22452E-03   -.92727    
  29  Prefactor     .96832        .22344        .25832E-03   -.93793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94743e-10
Minuit parameter uncertainties:
  1  1.45958e-06
  2  1.83685e-06
  3  2.16388e-05
  4  2.48208e-06
  5  2.39991
  6  2.81983e-06
  7  1.98298e-05
  8  3.91657
  9  1.86001e-06
  10  6.46993
  11  9.1066e-05
  12  7.30189
  13  8.23064e-06
  14  21.3544
  15  67.4111
  16  0.723338
  17  3.32252e-05
  18  7.71618e-05
  19  1.20948e-06
  20  3.26727
  21  16.7396
  22  23.363
  23  0.000122591
  24  8.1817
  25  3.53241
  26  6.86343
  27  3.70791e-05
  28  0.214269
  29  0.223655
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.312e-02  7.233e-01  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.683e-01  2.237e-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.009e+00  2.143e-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: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8596/likelihoodResults_505267201_505526401_4FGL_J1350.8+3033_daily_bin1026.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) = 5406.67668516
delta logL = 0.362321569201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5406.27850969
delta logL = 0.760497042617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87936E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1142       1.0000          .0000       10.000    
     3 'Normalizat'    .93882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0176       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=   5406.279     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88265E-01    1.2994        .43964E-02    .23933E-02
   2  Index         5.1135        3.0094        .16511        .10319E-03
   3  Normalizat    .93849        .36779E-01    .45396E-01    .12060E-04
   4  Prefactor     1.0179        .41771E-01    .42391E-01    .11459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0882655
  Index      = 5.11354
  Normalizat = 0.938492
  Prefactor  = 1.01789
 **********
 **   18 **HESSE 
 **********

 FCN=   5406.279     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      269 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88265E-01    3.8201        .20217E-03   -1.5649    
   2  Index         5.1135        7.5384        .57292E-02    .22710E-01
   3  Normalizat    .93849        .15030        .23194E-03   -.95120    
   4  Prefactor     1.0179        .16674        .25280E-03   -.92136    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.81147e-11
Minuit parameter uncertainties:
  1  1.16076
  2  7.35956
  3  0.150364
  4  0.166824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8596': 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) = 5406.27850559
delta logL = 0.760501137381

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  8.827e-02  1.161e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  5.114e+00  7.360e+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:  1.018e+00  1.668e-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.385e-01  1.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 207.715 30.559
Photon Index (Free Index): 5.11 +/- 7.36
Photon Flux (Free Index): 4.96e-08 +/- 4.94e-08
Energy Flux (Free Index): 6.54e-06 +/- 8.88e-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/8596/cmap_HighResolution_505267201_505526401_4FGL_J1350.8+3033_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', comment='SUCCESS', energy_flux2='6.54e-06', dlogl='7.61e-01', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-09-08 15:15:57.545348', photon_index_error2='7.36', photon_index2='5.11', ts='0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='8.88e-06', EG='1.01', time_epoch_completed='1631139357.55', return_code='0', job_id='8596', GAL2='1.02', EG2='0.94', return_code2='102', photon_flux_error2='4.94e-08', ts2='1.63', photon_index='2.42' WHERE bin_id='1026' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:15:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 8596: <4FGL_J1350.8+3033_daily_bin1026> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1026> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:00:20 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:00:43 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:00:43 2021
Terminated at Wed Sep  8 15:15:57 2021
Results reported at Wed Sep  8 15:15:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1026 207.715 30.5588 505267201 505526401 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            937 sec.

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

