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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin683
RA = 207.715, Dec = 30.5588
tmin = 416361601, tmax = 416620801
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='5789', job_status='RUN', time_executed='2021-09-08 14:51:51.091199', time_epoch_executed='1631137911.09' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5789/ft1_4FGL_J1350.8+3033_daily_bin683.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5789/ft2_4FGL_J1350.8+3033_daily_bin683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5789/ft1_4FGL_J1350.8+3033_daily_bin683.fits outfile=/scratch/kocevski/5789/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin683.fits ra=207.715 dec=30.5588 rad=12.0 tmin=416361601.0 tmax=416620801.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 5.14
user 4.86
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5789/ft1_filtered_4FGL_J1350.8+3033_daily_bin683.fits" evtable="EVENTS" scfile=/scratch/kocevski/5789/ft2_4FGL_J1350.8+3033_daily_bin683.fits sctable="SC_DATA" outfile=/scratch/kocevski/5789/ltcube_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.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/5789/ft2_4FGL_J1350.8+3033_daily_bin683.fits
.....................!
real 13.13
user 12.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5789/ft1_filtered_4FGL_J1350.8+3033_daily_bin683.fits evtable="EVENTS" scfile=/scratch/kocevski/5789/ft2_4FGL_J1350.8+3033_daily_bin683.fits sctable="SC_DATA" expcube=/scratch/kocevski/5789/ltcube_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.fits outfile=/scratch/kocevski/5789/expmap_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.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/5789/ltcube_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.fits
.....................!
real 193.26
user 187.71
sys 4.60

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/5789/ft1_filtered_4FGL_J1350.8+3033_daily_bin683.fits scfile=/scratch/kocevski/5789/ft2_4FGL_J1350.8+3033_daily_bin683.fits outfile=/scratch/kocevski/5789/cmap_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5789/ft1_filtered_4FGL_J1350.8+3033_daily_bin683.fits scfile=/scratch/kocevski/5789/ft2_4FGL_J1350.8+3033_daily_bin683.fits outfile=/scratch/kocevski/5789/cmap_HighResolution_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6803       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.369       1.0000         .10000E-03   10000.    
     4 'norm      '    1.5409       1.0000         .10000E-03   10000.    
     5 'norm      '    10.542       1.0000         .10000E-03   10000.    
     6 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2007       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.835       1.0000         .10000E-03   10000.    
    10 'norm      '    8.6388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.447       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.441       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6936       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9672       1.0000         .10000E-03   10000.    
    18 'norm      '    1.5984       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.3591       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1246       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    35.984       1.0000         .10000E-03   10000.    
    25 'norm      '    6.5928       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.757       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3144       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69460       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=   6540.755     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3691 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6805        4.2322       -.10716E-06   -.48950E-06
   2  Prefactor     22.690        29.983       -.17499E-05    .60832E-05
   3  Prefactor     28.367        23.998       -.97404E-06    .73027E-05
   4  norm          1.5414        4.2985       -.66773E-06   -.24868E-04
   5  norm          10.542        5.6249        .82171E-06    .36489E-04
   6  norm          .10000E-03    2.8728        .70541E-07** at limit **
   7  norm          1.1763        67.512       -.95302E-05   -.22968E-04
   8  Prefactor     .10000E-03    3.1966        .18772E-06** at limit **
   9  Prefactor     14.826        20.886       -.37730E-05   -.66245E-05
  10  norm          8.6376        8.3176        .29861E-05    .10442E-03
  11  Prefactor     .10000E-03    23.130       -.96580E-06** at limit **
  12  norm          25.203        12.276        .47436E-06    .64164E-04
  13  Prefactor     24.440        20.704       -.15928E-05    .28783E-04
  14  Prefactor     .10000E-03    40.091       -.31064E-05** at limit **
  15  Prefactor     24.444        57.607        .44132E-05    .24620E-05
  16  Prefactor     2.6940        3.4990        .33758E-06   -.82313E-03
  17  Prefactor     3.9688        12.188       -.55874E-06   -.76371E-05
  18  norm          1.5982        4.8641       -.12510E-06   -.52796E-03
  19  Prefactor     .10000E-03    27.007       -.16671E-05** at limit **
  20  norm          3.3590        3.2535       -.15254E-07   -.43878E-04
  21  Prefactor     6.1210        11.408       -.37027E-06   -.11243E-03
  22  Prefactor     .10000E-03    32.969        .67137E-05** at limit **
  23  Prefactor     .10000E-03    1.8486       -.43752E-07** at limit **
  24  norm          35.983        19.960        .61403E-07   -.77016E-04
  25  norm          6.5929        2.5179        .22960E-08    .39689E-05
  26  norm          .10000E-03    3.4028        .10577E-07** at limit **
  27  Prefactor     23.758        39.005        .95823E-06    .15674E-05
  28  Normalizat    1.3143        .18240        .59671E-06   -.28466E-04
  29  Prefactor     .69459        .18758       -.65828E-06    .47013E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6805
  Prefactor  = 22.6895
  Prefactor  = 28.3666
  norm       = 1.54138
  norm       = 10.5422
  norm       = 0.0001
  norm       = 1.17627
  Prefactor  = 0.0001
  Prefactor  = 14.826
  norm       = 8.63759
  Prefactor  = 0.0001
  norm       = 25.2026
  Prefactor  = 24.4401
  Prefactor  = 0.0001
  Prefactor  = 24.4443
  Prefactor  = 2.69399
  Prefactor  = 3.96875
  norm       = 1.59818
  Prefactor  = 0.0001
  norm       = 3.359
  Prefactor  = 6.12095
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.9833
  norm       = 6.59288
  norm       = 0.0001
  Prefactor  = 23.7578
  Normalizat = 1.31431
  Prefactor  = 0.694585
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.755     FROM HESSE     STATUS=OK           565 CALLS     4256 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6805        4.2046        .19846E-03   -1.5381    
   2  Prefactor     22.690        29.893        .84087E-04   -1.4755    
   3  Prefactor     28.367        23.883        .75219E-04   -1.4642    
   4  norm          1.5414        4.2283        .25820E-03   -1.5460    
   5  norm          10.542        5.6106        .12265E-03   -1.5058    
   6  norm          .10000E-03    2.8752        .13375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1763        69.725        .41423E-03   -1.5491    
   8  Prefactor     .10000E-03    3.2531        .28078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.826        20.847        .10399E-03   -1.4938    
  10  norm          8.6376        8.3252        .13638E-03   -1.5120    
  11  Prefactor     .10000E-03    23.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.203        12.277        .79794E-04   -1.4703    
  13  Prefactor     24.440        20.707        .81017E-04   -1.4719    
  14  Prefactor     .10000E-03    40.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.444        57.832        .81026E-04   -1.4719    
  16  Prefactor     2.6940        4.0063        .93480E-03   -1.5380    
  17  Prefactor     3.9688        12.194        .20251E-03   -1.5310    
  18  norm          1.5982        13.240        .16770E-02   -1.5455    
  19  Prefactor     .10000E-03    27.768        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.3590        3.2437        .13739E-03   -1.5341    
  21  Prefactor     6.1210        11.395        .16223E-03   -1.5213    
  22  Prefactor     .10000E-03    33.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6779        .21154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          35.983        19.938        .66809E-04   -1.4508    
  25  norm          6.5929        2.5212        .76854E-04   -1.5194    
  26  norm          .10000E-03    3.4160        .14568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.758        39.083        .82183E-04   -1.4733    
  28  Normalizat    1.3143        .22086        .22581E-03   -.83140    
  29  Prefactor     .69459        .22277        .32139E-03   -1.0374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97773e-09
Minuit parameter uncertainties:
  1  4.20502
  2  29.9126
  3  23.8909
  4  4.22914
  5  5.61084
  6  3.10003e-06
  7  18.134
  8  5.96294e-05
  9  20.8577
  10  8.32633
  11  3.67008e-05
  12  12.2786
  13  20.7133
  14  0.00010269
  15  57.9651
  16  4.0067
  17  12.2016
  18  9.20259
  19  9.60828e-06
  20  3.24385
  21  11.3992
  22  5.36554e-05
  23  1.10587e-05
  24  19.9413
  25  2.52119
  26  1.54225e-06
  27  39.1254
  28  0.221017
  29  0.223056
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.694e+00  4.007e+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:  6.946e-01  2.231e-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.314e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/5789/likelihoodResults_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.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) = 6540.75036082
delta logL = 0.00487973645886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6540.74976095
delta logL = 0.00547961096163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5787       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5188       1.0000          .0000       10.000    
     3 'Normalizat'    1.3114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69668       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=   6540.750     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5786        4.1695        .17966E-03    .16668E-03
   2  Index         2.5188        1.0297        .12224E-01    .61025E-04
   3  Normalizat    1.3115        .20566        .22602E-03   -.15257E-03
   4  Prefactor     .69663        .21792        .32097E-03   -.11419E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57856
  Index      = 2.51878
  Normalizat = 1.31147
  Prefactor  = 0.696629
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.750     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5786        4.0307        .71864E-05   -1.5387    
   2  Index         2.5188        .99540        .48895E-03   -.51927    
   3  Normalizat    1.3115        .20579        .45204E-04   -.83225    
   4  Prefactor     .69663        .21797        .12839E-04   -1.0366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7419e-10
Minuit parameter uncertainties:
  1  4.03112
  2  1.00434
  3  0.205918
  4  0.21824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5789': 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) = 6540.7497609
delta logL = 0.00547965872465

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.579e+00  4.031e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.519e+00  1.004e+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:  6.966e-01  2.182e-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.311e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/5789/cmap_HighResolution_416361601_416620801_4FGL_J1350.8+3033_daily_bin683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2021-09-08 15:05:46.993819', job_id='5789', GAL2='0.70', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1631138746.99', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='5.48e-03', ts2='0.60', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='683' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 5789: <4FGL_J1350.8+3033_daily_bin683> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin683 207.715 30.5588 416361601 416620801 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 :                                   829.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            914 sec.

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

