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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1158
RA = 207.715, Dec = 30.5588
tmin = 539481601, tmax = 539740801
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='8795', job_status='RUN', time_executed='2021-09-08 15:04:18.724922', time_epoch_executed='1631138658.72' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8795/ft1_4FGL_J1350.8+3033_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8795/ft2_4FGL_J1350.8+3033_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8795/ft1_4FGL_J1350.8+3033_daily_bin1158.fits outfile=/scratch/kocevski/8795/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1158.fits ra=207.715 dec=30.5588 rad=12.0 tmin=539481601.0 tmax=539740801.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.19
user 4.89
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8795/ft1_filtered_4FGL_J1350.8+3033_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/8795/ft2_4FGL_J1350.8+3033_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/8795/ltcube_539481601_539740801_4FGL_J1350.8+3033_daily_bin1158.fits outfile=/scratch/kocevski/8795/expmap_539481601_539740801_4FGL_J1350.8+3033_daily_bin1158.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/8795/ltcube_539481601_539740801_4FGL_J1350.8+3033_daily_bin1158.fits
.....................!
real 191.35
user 186.03
sys 4.91

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/8795/ft1_filtered_4FGL_J1350.8+3033_daily_bin1158.fits scfile=/scratch/kocevski/8795/ft2_4FGL_J1350.8+3033_daily_bin1158.fits outfile=/scratch/kocevski/8795/cmap_539481601_539740801_4FGL_J1350.8+3033_daily_bin1158.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.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8795/ft1_filtered_4FGL_J1350.8+3033_daily_bin1158.fits scfile=/scratch/kocevski/8795/ft2_4FGL_J1350.8+3033_daily_bin1158.fits outfile=/scratch/kocevski/8795/cmap_HighResolution_539481601_539740801_4FGL_J1350.8+3033_daily_bin1158.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.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4588       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1167       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7426       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    53.688       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.329       1.0000         .10000E-03   10000.    
    10 'norm      '    12.199       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.323       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.598       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    99.545       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0089       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33174E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    35.024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.3283       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.226       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9145       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.2934       1.0000         .10000E-03   10000.    
    26 'norm      '    .31721       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80698       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1780       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=   3140.647     FROM MIGRAD    STATUS=CONVERGED   1289 CALLS     4271 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4595        5.2229        .13491E-03    .14536E-04
   2  Prefactor     .10000E-03    14.146        .18142E-02** at limit **
   3  Prefactor     1.1203        59.571        .22268E-02    .34395E-04
   4  norm          2.7427        4.4113        .14422E-03   -.11509E-04
   5  norm          .10000E-03    2.3214        .83094E-03** at limit **
   6  norm          .10000E-03    3.5627        .10324E-02** at limit **
   7  norm          53.686        34.619        .54740E-04   -.19730E-05
   8  Prefactor     .10000E-03    1.8538        .74252E-03** at limit **
   9  Prefactor     16.336        20.740        .99116E-04   -.81438E-05
  10  norm          12.200        10.601        .11469E-03   -.12985E-04
  11  Prefactor     .10000E-03    54.129        .18142E-02** at limit **
  12  norm          18.326        14.283        .93566E-04   -.27825E-04
  13  Prefactor     18.612        26.720        .92872E-04   -.50189E-05
  14  Prefactor     .10000E-03    12.082        .18142E-02** at limit **
  15  Prefactor     99.743        119.79        .20146E-03    .10976E-04
  16  Prefactor     4.0100        4.9472        .13295E-03   -.32963E-04
  17  Prefactor     .10038E-03    152.56        .48368E-02** at limit **
  18  norm          35.034        26.973        .67715E-04   -.78909E-05
  19  Prefactor     .10000E-03    12.682        .18142E-02** at limit **
  20  norm          7.3280        6.5900        .12965E-03   -.13679E-04
  21  Prefactor     27.220        21.561        .76778E-04    .38499E-05
  22  Prefactor     .10000E-03    25.135        .18142E-02** at limit **
  23  Prefactor     2.9178        5.9232        .17894E-03    .16772E-04
  24  norm          .10000E-03    24.885        .18142E-02** at limit **
  25  norm          9.2933        4.6892        .83264E-04   -.16043E-04
  26  norm          .35156        225.64        .40840E-02   -.60024E-04
  27  Prefactor     .10000E-03    41.546        .18142E-02** at limit **
  28  Normalizat    .80637        .33624        .27086E-03    .18741E-04
  29  Prefactor     1.1783        .34274        .25880E-03   -.11871E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.45951
  Prefactor  = 0.0001
  Prefactor  = 1.1203
  norm       = 2.74268
  norm       = 0.0001
  norm       = 0.0001
  norm       = 53.6856
  Prefactor  = 0.0001
  Prefactor  = 16.3365
  norm       = 12.2002
  Prefactor  = 0.0001
  norm       = 18.3259
  Prefactor  = 18.6121
  Prefactor  = 0.0001
  Prefactor  = 99.7429
  Prefactor  = 4.01003
  Prefactor  = 0.000100381
  norm       = 35.0338
  Prefactor  = 0.0001
  norm       = 7.32798
  Prefactor  = 27.2199
  Prefactor  = 0.0001
  Prefactor  = 2.91779
  norm       = 0.0001
  norm       = 9.29327
  norm       = 0.351557
  Prefactor  = 0.0001
  Normalizat = 0.806374
  Prefactor  = 1.17827
 **********
 **   18 **HESSE 
 **********

 FCN=   3140.647     FROM HESSE     STATUS=OK           527 CALLS     4798 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4595        5.2225        .53965E-05   -1.5286    
   2  Prefactor     .10000E-03    14.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.1203        59.454        .89071E-04   -1.5496    
   4  norm          2.7427        4.4068        .57688E-05   -1.5377    
   5  norm          .10000E-03    2.3216        .16619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5628        .20647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          53.686        34.611        .21896E-05   -1.4241    
   8  Prefactor     .10000E-03    1.8538        .14850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.336        20.727        .39646E-05   -1.4899    
  10  norm          12.200        10.601        .45877E-05   -1.5009    
  11  Prefactor     .10000E-03    54.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.326        14.280        .37426E-05   -1.4852    
  13  Prefactor     18.612        26.697        .37149E-05   -1.4845    
  14  Prefactor     .10000E-03    12.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     99.743        119.64        .80586E-05   -1.3707    
  16  Prefactor     4.0100        4.9458        .53182E-05   -1.5307    
  17  Prefactor     .10038E-03    155.45        .96735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          35.034        26.963        .27086E-05   -1.4523    
  19  Prefactor     .10000E-03    12.682        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3280        6.5849        .51862E-05   -1.5166    
  21  Prefactor     27.220        21.486        .30711E-05   -1.4664    
  22  Prefactor     .10000E-03    25.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9178        5.9217        .71578E-05   -1.5366    
  24  norm          .10000E-03    24.889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.2933        4.6890        .33306E-05   -1.5098    
  26  norm          .35156        223.07        .16336E-03   -1.5589    
  27  Prefactor     .10000E-03    41.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80637        .33426        .10834E-04   -.99833    
  29  Prefactor     1.1783        .34267        .51759E-04   -.87003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22927e-09
Minuit parameter uncertainties:
  1  5.22303
  2  9.63511e-06
  3  16.3389
  4  4.4073
  5  3.68318e-06
  6  2.09817e-06
  7  34.6244
  8  6.95081e-06
  9  20.7363
  10  10.6022
  11  0.000119535
  12  14.283
  13  26.7139
  14  6.0522e-06
  15  119.928
  16  4.94635
  17  0.015436
  18  26.9719
  19  1.40403e-05
  20  6.58557
  21  21.492
  22  5.57964e-05
  23  5.92287
  24  3.9717e-05
  25  4.68914
  26  17.7754
  27  2.62902e-05
  28  0.335118
  29  0.343322
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  4.010e+00  4.946e+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:  1.178e+00  3.433e-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:  8.064e-01  3.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.29e-05

TS (Fixed Index): 1.12
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8795/likelihoodResults_539481601_539740801_4FGL_J1350.8+3033_daily_bin1158.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) = 3140.57617145
delta logL = 0.070527832177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3140.57458683
delta logL = 0.0721124539718

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8915       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1085       1.0000          .0000       10.000    
     3 'Normalizat'    .81378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1715       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=   3140.575     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      254 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9050        326.44        .45467E-02    .98935E-04
   2  Index         2.1105        5.5274        .22283        .80817E-04
   3  Normalizat    .81379        .15595        .43790E-01   -.38262E-03
   4  Prefactor     1.1715        .18206        .58653E-01   -.45016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.90505
  Index      = 2.11045
  Normalizat = 0.81379
  Prefactor  = 1.17148
 **********
 **   18 **HESSE 
 **********

 FCN=   3140.575     FROM HESSE     STATUS=OK            29 CALLS      283 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9050        5.9398        .14181E-03   -1.5265    
   2  Index         2.1105        .75364        .83825E-02   -.61617    
   3  Normalizat    .81379        .28894        .26970E-03   -.99559    
   4  Prefactor     1.1715        .32846        .25937E-03   -.87213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86181e-10
Minuit parameter uncertainties:
  1  5.94054
  2  0.757987
  3  0.28949
  4  0.329037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8795': 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) = 3140.57457926
delta logL = 0.072120029326

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.171e+00  3.290e-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:  8.138e-01  2.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.11 +/- 0.76
Photon Flux (Free Index): 2.79e-08 +/- 3.62e-08
Energy Flux (Free Index): 1.50e-05 +/- 2.38e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='1.50e-05', photon_flux_error='4.01e-08', dlogl='7.21e-02', energy_flux='1.05e-05', photon_flux2='2.79e-08', job_status='DONE', time_completed='2021-09-08 15:16:09.850361', photon_index_error2='0.76', photon_index2='2.11', ts='1.12', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='2.38e-05', EG='0.81', time_epoch_completed='1631139369.85', return_code='0', job_id='8795', GAL2='1.17', EG2='0.81', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='3.62e-08', ts2='1.26', photon_index='2.42' WHERE bin_id='1158' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 8795: <4FGL_J1350.8+3033_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1158 207.715 30.5588 539481601 539740801 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            936 sec.

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

