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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin90
RA = 207.715, Dec = 30.5588
tmin = 262656001, tmax = 262915201
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='1866', job_status='RUN', time_executed='2021-09-08 14:43:20.638884', time_epoch_executed='1631137400.64' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1866/ft1_4FGL_J1350.8+3033_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1866/ft2_4FGL_J1350.8+3033_daily_bin90.fits


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

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

Done.
real 1.45
user 1.28
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1866/ft2_4FGL_J1350.8+3033_daily_bin90.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/1866/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/1866/ft1_filtered_4FGL_J1350.8+3033_daily_bin90.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1866/ft1_filtered_4FGL_J1350.8+3033_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/1866/ft2_4FGL_J1350.8+3033_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/1866/ltcube_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.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/1866/ft2_4FGL_J1350.8+3033_daily_bin90.fits
.....................!
real 19.16
user 18.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1866/ft1_filtered_4FGL_J1350.8+3033_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/1866/ft2_4FGL_J1350.8+3033_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/1866/ltcube_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.fits outfile=/scratch/kocevski/1866/expmap_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.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/1866/ltcube_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.fits
.....................!
real 195.20
user 187.99
sys 4.34

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/1866/ft1_filtered_4FGL_J1350.8+3033_daily_bin90.fits scfile=/scratch/kocevski/1866/ft2_4FGL_J1350.8+3033_daily_bin90.fits outfile=/scratch/kocevski/1866/cmap_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.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/1866/ft1_filtered_4FGL_J1350.8+3033_daily_bin90.fits scfile=/scratch/kocevski/1866/ft2_4FGL_J1350.8+3033_daily_bin90.fits outfile=/scratch/kocevski/1866/cmap_HighResolution_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.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.57
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0873       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.354       1.0000         .10000E-03   10000.    
     5 'norm      '    13.567       1.0000         .10000E-03   10000.    
     6 'norm      '    .27945       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9177       1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.976       1.0000         .10000E-03   10000.    
    12 'norm      '    6.2807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.015       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11173E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9162       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4277       1.0000         .10000E-03   10000.    
    18 'norm      '    15.461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .65710       1.0000         .10000E-03   10000.    
    24 'norm      '    2.8148       1.0000         .10000E-03   10000.    
    25 'norm      '    5.7526       1.0000         .10000E-03   10000.    
    26 'norm      '    11.966       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .58504E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3191       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .48591       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=   4524.149     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3727 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0876        6.2683        .11077E-05    .93824E-04
   2  Prefactor     26.887        40.355       -.49730E-05    .37142E-04
   3  Prefactor     .10000E-03    41.488        .84207E-06** at limit **
   4  norm          12.357        7.2538        .15702E-06    .37814E-04
   5  norm          13.525        8.7141        .52413E-06    .63864E-03
   6  norm          .35876        19.862       -.15098E-05    .20226E-03
   7  norm          5.4417        17.337        .14574E-06    .35464E-06
   8  Prefactor     .10000E-03    2.4648       -.14765E-06** at limit **
   9  Prefactor     3.9258        14.924       -.46537E-06    .23677E-04
  10  norm          .10000E-03    3.1337        .74340E-08** at limit **
  11  Prefactor     36.939        68.598        .39606E-05    .11456E-04
  12  norm          6.2817        10.561        .14184E-06   -.37675E-06
  13  Prefactor     36.021        23.193        .14346E-07    .88946E-05
  14  Prefactor     .10000E-03    19.489        .17413E-06** at limit **
  15  Prefactor     .10000E-03    23.142       -.42851E-06** at limit **
  16  Prefactor     3.9165        3.3662        .38284E-07   -.75261E-06
  17  Prefactor     3.4295        11.548        .21818E-05    .11915E-04
  18  norm          15.461        15.884        .57409E-07   -.32537E-05
  19  Prefactor     .10000E-03    7.1043        .21198E-07** at limit **
  20  norm          .10000E-03    1.8729        .70785E-07** at limit **
  21  Prefactor     .10000E-03    10.966        .54187E-06** at limit **
  22  Prefactor     .10000E-03    4.8810        .26140E-07** at limit **
  23  Prefactor     .65167        3.8485        .14283E-06   -.35696E-04
  24  norm          2.8115        10.669        .23721E-05    .78803E-07
  25  norm          5.7528        2.8372        .14287E-07   -.45842E-05
  26  norm          11.965        9.7601       -.11341E-08   -.10532E-04
  27  Prefactor     .10000E-03    278.24        .67418E-05** at limit **
  28  Normalizat    1.3193        .21244       -.56507E-06    .40002E-05
  29  Prefactor     .48564        .21203        .60585E-07   -.16971E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.08763
  Prefactor  = 26.8866
  Prefactor  = 0.0001
  norm       = 12.3565
  norm       = 13.5246
  norm       = 0.358758
  norm       = 5.44171
  Prefactor  = 0.0001
  Prefactor  = 3.92577
  norm       = 0.0001
  Prefactor  = 36.9389
  norm       = 6.28171
  Prefactor  = 36.0208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.91654
  Prefactor  = 3.42953
  norm       = 15.4613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.651671
  norm       = 2.8115
  norm       = 5.75282
  norm       = 11.965
  Prefactor  = 0.0001
  Normalizat = 1.31926
  Prefactor  = 0.485639
 **********
 **   18 **HESSE 
 **********

 FCN=   4524.149     FROM HESSE     STATUS=OK           565 CALLS     4292 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0876        6.2595        .18153E-03   -1.5304    
   2  Prefactor     26.887        41.679        .77326E-04   -1.4670    
   3  Prefactor     .10000E-03    42.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.357        7.2424        .11397E-03   -1.5005    
   5  norm          13.525        12.635        .92349E-04   -1.4972    
   6  norm          .35876        185.62        .36240E-02   -1.5588    
   7  norm          5.4417        17.316        .17229E-03   -1.5241    
   8  Prefactor     .10000E-03    2.4867        .10263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9258        15.023        .20383E-03   -1.5312    
  10  norm          .10000E-03    3.1405        .11607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.939        68.521        .65909E-04   -1.4492    
  12  norm          6.2817        10.543        .16017E-03   -1.5207    
  13  Prefactor     36.021        23.268        .66780E-04   -1.4507    
  14  Prefactor     .10000E-03    19.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9165        3.3663        .11037E-03   -1.5312    
  17  Prefactor     3.4295        11.542        .10924E-02   -1.5338    
  18  norm          15.461        15.908        .10186E-03   -1.4921    
  19  Prefactor     .10000E-03    7.1075        .17510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8891        .89861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8850        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .65167        6.7678        .23971E-02   -1.5547    
  24  norm          2.8115        10.666        .12122E-02   -1.5373    
  25  norm          5.7528        2.8376        .77081E-04   -1.5228    
  26  norm          11.965        9.7606        .11580E-03   -1.5016    
  27  Prefactor     .10000E-03    282.93        .21077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3193        .24153        .20172E-03   -.82993    
  29  Prefactor     .48564        .23843        .33852E-03   -1.1264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09806e-08
Minuit parameter uncertainties:
  1  6.26046
  2  41.7237
  3  5.79426e-05
  4  7.24296
  5  12.6371
  6  16.3698
  7  17.3324
  8  5.03349e-06
  9  15.0377
  10  1.64392e-07
  11  68.6678
  12  10.5457
  13  23.274
  14  4.0397e-06
  15  4.88531e-06
  16  3.36643
  17  11.5498
  18  15.9126
  19  1.83642e-07
  20  1.55534e-07
  21  5.04054e-07
  22  1.25247e-07
  23  4.20048
  24  10.6731
  25  2.83766
  26  9.76194
  27  0.000465886
  28  0.24174
  29  0.238918
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  3.917e+00  3.366e+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:  4.856e-01  2.389e-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.319e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.71
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.18e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.02e-05 +/- 8.78e-06

TS (Fixed Index): 2.71
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1866/likelihoodResults_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.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) = 4524.015424
delta logL = 0.13308613525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4524.01249153
delta logL = 0.136018601612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8736       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8806       1.0000          .0000       10.000    
     3 'Normalizat'    1.3040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49642       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=   4524.012     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      231 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8736        54.202        .59944E-02   -.75141E-03
   2  Index         2.8806        6.4382        .20442       -.84552E-04
   3  Normalizat    1.3040        .70609E-01    .32734E-01   -.79153E-05
   4  Prefactor     .49644        .66187E-01    .75667E-01    .37567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.87363
  Index      = 2.88062
  Normalizat = 1.30396
  Prefactor  = 0.496441
 **********
 **   18 **HESSE 
 **********

 FCN=   4524.012     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8736        3.6372        .87996E-04   -1.5369    
   2  Index         2.8806        1.0035        .69940E-02   -.43772    
   3  Normalizat    1.3040        .22138        .20269E-03   -.83448    
   4  Prefactor     .49644        .23323        .33509E-03   -1.1214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42921e-10
Minuit parameter uncertainties:
  1  3.63747
  2  1.01192
  3  0.221542
  4  0.233686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1866': 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) = 4524.01249153
delta logL = 0.136018608267

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.874e+00  3.637e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.881e+00  1.012e+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:  4.964e-01  2.337e-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.304e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.99
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.88 +/- 1.01
Photon Flux (Free Index): 4.38e-08 +/- 4.07e-08
Energy Flux (Free Index): 9.32e-06 +/- 7.57e-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/1866/cmap_HighResolution_262656001_262915201_4FGL_J1350.8+3033_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', photon_flux='3.18e-08', energy_flux2='9.32e-06', photon_flux_error='2.73e-08', dlogl='1.36e-01', energy_flux='1.02e-05', photon_flux2='4.38e-08', job_status='DONE', time_completed='2021-09-08 14:54:52.450286', photon_index_error2='1.01', photon_index2='2.88', ts='2.71', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='7.57e-06', EG='1.32', time_epoch_completed='1631138092.45', return_code='0', job_id='1866', GAL2='0.50', EG2='1.30', return_code2='0', energy_flux_error='8.78e-06', photon_flux_error2='4.07e-08', ts2='2.99', photon_index='2.42' WHERE bin_id='90' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:54:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 1866: <4FGL_J1350.8+3033_daily_bin90> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin90> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  8 14:40:23 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:41:07 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:41:07 2021
Terminated at Wed Sep  8 14:54:52 2021
Results reported at Wed Sep  8 14:54:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin90 207.715 30.5588 262656001 262915201 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 :                                   681.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            869 sec.

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

