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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1035
RA = 207.715, Dec = 30.5588
tmin = 507600001, tmax = 507859201
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='8609', job_status='RUN', time_executed='2021-09-08 15:02:50.912352', time_epoch_executed='1631138570.91' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8609

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8609/ft1_4FGL_J1350.8+3033_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8609/ft2_4FGL_J1350.8+3033_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8609/ft1_4FGL_J1350.8+3033_daily_bin1035.fits outfile=/scratch/kocevski/8609/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1035.fits ra=207.715 dec=30.5588 rad=12.0 tmin=507600001.0 tmax=507859201.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.63
user 3.35
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8609/ft1_filtered_4FGL_J1350.8+3033_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/8609/ft2_4FGL_J1350.8+3033_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/8609/ltcube_507600001_507859201_4FGL_J1350.8+3033_daily_bin1035.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/8609/ft2_4FGL_J1350.8+3033_daily_bin1035.fits
.....................!
real 15.81
user 15.28
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8609/ft1_filtered_4FGL_J1350.8+3033_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/8609/ft2_4FGL_J1350.8+3033_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/8609/ltcube_507600001_507859201_4FGL_J1350.8+3033_daily_bin1035.fits outfile=/scratch/kocevski/8609/expmap_507600001_507859201_4FGL_J1350.8+3033_daily_bin1035.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/8609/ltcube_507600001_507859201_4FGL_J1350.8+3033_daily_bin1035.fits
.....................!
real 192.81
user 185.84
sys 6.20

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/8609/ft1_filtered_4FGL_J1350.8+3033_daily_bin1035.fits scfile=/scratch/kocevski/8609/ft2_4FGL_J1350.8+3033_daily_bin1035.fits outfile=/scratch/kocevski/8609/cmap_507600001_507859201_4FGL_J1350.8+3033_daily_bin1035.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.59
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8609/ft1_filtered_4FGL_J1350.8+3033_daily_bin1035.fits scfile=/scratch/kocevski/8609/ft2_4FGL_J1350.8+3033_daily_bin1035.fits outfile=/scratch/kocevski/8609/cmap_HighResolution_507600001_507859201_4FGL_J1350.8+3033_daily_bin1035.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.58
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4789       1.0000         .10000E-03   10000.    
     5 'norm      '    .14825E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5462       1.0000         .10000E-03   10000.    
     7 'norm      '    5.8597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5832       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.226       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7143       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4602       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.082       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7690       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1694       1.0000         .10000E-03   10000.    
    20 'norm      '    7.0417       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.703       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .28720E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5739       1.0000         .10000E-03   10000.    
    24 'norm      '    .55878E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    8.4937       1.0000         .10000E-03   10000.    
    26 'norm      '    6.7293       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88386       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0006       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=   5529.788     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3799 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4388        5.2374        .85998E-06    .52803E-04
   2  Prefactor     .10000E-03    11.191        .44908E-07** at limit **
   3  Prefactor     .10000E-03    10.758       -.27906E-06** at limit **
   4  norm          2.4777        4.2481        .26051E-06    .14307E-04
   5  norm          .10000E-03    2.2919       -.47084E-06** at limit **
   6  norm          1.5370        4.0896        .79194E-06    .13257E-03
   7  norm          5.8614        16.067        .30441E-06   -.37319E-05
   8  Prefactor     5.5808        3.7165        .22715E-07    .20220E-03
   9  Prefactor     12.214        14.576        .14587E-06    .75211E-04
  10  norm          .10000E-03    7.2423       -.80553E-07** at limit **
  11  Prefactor     .10000E-03    28.940       -.82781E-08** at limit **
  12  norm          5.7193        9.9533        .48827E-06   -.10784E-04
  13  Prefactor     6.4609        15.605        .42673E-06    .10772E-05
  14  Prefactor     .10000E-03    19.779       -.70479E-07** at limit **
  15  Prefactor     41.089        62.776        .27536E-06    .50302E-05
  16  Prefactor     .10000E-03    1.1484       -.13539E-09** at limit **
  17  Prefactor     .10000E-03    10.090        .16312E-06** at limit **
  18  norm          3.7661        11.363        .60770E-06   -.14029E-04
  19  Prefactor     6.1406        18.828        .55491E-06    .11076E-03
  20  norm          7.0422        3.8633       -.44589E-07   -.12960E-04
  21  Prefactor     20.745        17.692       -.60152E-06    .29367E-04
  22  Prefactor     .10000E-03    57.284       -.33718E-06** at limit **
  23  Prefactor     8.5747        4.8189        .90037E-06   -.21469E-03
  24  norm          .10257E-03    13.406       -.10912E-07** at limit **
  25  norm          8.4938        3.2880        .23832E-07   -.14127E-05
  26  norm          6.7299        7.5698       -.16177E-07    .97091E-05
  27  Prefactor     .10000E-03    42.903        .12393E-06** at limit **
  28  Normalizat    .88371        .18285       -.56755E-06    .81849E-04
  29  Prefactor     1.0007        .19115       -.29749E-06    .43803E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.43882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4777
  norm       = 0.0001
  norm       = 1.537
  norm       = 5.86144
  Prefactor  = 5.5808
  Prefactor  = 12.2141
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.71929
  Prefactor  = 6.46092
  Prefactor  = 0.0001
  Prefactor  = 41.0891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76609
  Prefactor  = 6.14055
  norm       = 7.04218
  Prefactor  = 20.7455
  Prefactor  = 0.0001
  Prefactor  = 8.57466
  norm       = 0.000102569
  norm       = 8.49378
  norm       = 6.72988
  Prefactor  = 0.0001
  Normalizat = 0.883714
  Prefactor  = 1.00069
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.788     FROM HESSE     STATUS=OK           571 CALLS     4370 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4388        5.1964        .23698E-03   -1.5396    
   2  Prefactor     .10000E-03    11.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4777        4.2237        .19189E-03   -1.5393    
   5  norm          .10000E-03    7.4458        .19969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5370        3.9575        .23205E-03   -1.5460    
   7  norm          5.8614        16.053        .16590E-03   -1.5224    
   8  Prefactor     5.5808        3.7052        .10040E-03   -1.5235    
   9  Prefactor     12.214        14.496        .11456E-03   -1.5009    
  10  norm          .10000E-03    7.2982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7193        9.9154        .16803E-03   -1.5230    
  13  Prefactor     6.4609        15.653        .15790E-03   -1.5200    
  14  Prefactor     .10000E-03    19.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.089        63.137        .62540E-04   -1.4425    
  16  Prefactor     .10000E-03    1.1527        .77805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7661        11.332        .20795E-03   -1.5320    
  19  Prefactor     6.1406        18.837        .16163E-03   -1.5212    
  20  norm          7.0422        3.8618        .10427E-03   -1.5177    
  21  Prefactor     20.745        17.743        .88028E-04   -1.4797    
  22  Prefactor     .10000E-03    58.167        .39750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5747        4.7343        .56411E-03   -1.5122    
  24  norm          .10257E-03    14.831        .85973E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.4938        3.2914        .81132E-04   -1.5125    
  26  norm          6.7299        7.5655        .15468E-03   -1.5189    
  27  Prefactor     .10000E-03    43.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88371        .21532        .23936E-03   -.97035    
  29  Prefactor     1.0007        .22574        .25510E-03   -.92706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9739e-10
Minuit parameter uncertainties:
  1  5.19737
  2  3.33504e-05
  3  7.85397e-05
  4  4.22418
  5  3.48679e-05
  6  3.95815
  7  16.0649
  8  3.7053
  9  14.4999
  10  2.24522e-06
  11  4.37504e-06
  12  9.91827
  13  15.6629
  14  1.05926e-05
  15  63.2404
  16  8.53512e-07
  17  3.47863e-05
  18  11.3383
  19  18.855
  20  3.86193
  21  17.7477
  22  2.01336e-05
  23  4.73449
  24  0.0123484
  25  3.29151
  26  7.56655
  27  9.59582e-05
  28  0.215529
  29  0.225954
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  8.535e-07  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.001e+00  2.260e-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.837e-01  2.155e-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: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8609/likelihoodResults_507600001_507859201_4FGL_J1350.8+3033_daily_bin1035.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) = 5529.79172678
delta logL = -0.00407615886525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5529.78765043
delta logL = 1.93130290427e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4030       1.0000          .0000       10.000    
     3 'Normalizat'    .88372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0007       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5529.788     FROM MIGRAD    STATUS=FAILED        99 CALLS      246 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.421        .78291E-02** at limit **
   2  Index         1.9650        5.3536        .50000       -.58443E-05
   3  Normalizat    .88371        .15363E-01    .23936E-03    .13879E-03
   4  Prefactor     1.0007        .17413E-01    .25510E-03    .14831E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5529.788     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      402 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.421        .21712E-03** at limit **
   2  Index         1.9650        5.3536        .19444E-04   -.58443E-05
   3  Normalizat    .88371        .15363E-01    .13026E-06    .13879E-03
   4  Prefactor     1.0007        .17413E-01    .10332E-06    .14831E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5529.788     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      434 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    150.33        .83105E-03** at limit **
   2  Index         1.9652        5.8065        .50000        .13188E-06
   3  Normalizat    .88371        .52610E-01    .95743E-05    .13845E-03
   4  Prefactor     1.0007        .59626E-01    .10204E-04    .14796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9652
  Normalizat = 0.883714
  Prefactor  = 1.00069
 **********
 **   18 **HESSE 
 **********

 FCN=   5529.788     FROM HESSE     STATUS=OK            29 CALLS      463 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3751        .16621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9652        7.8677        .50000       -.65223    
   3  Normalizat    .88371        .19370        .19149E-05   -.97035    
   4  Prefactor     1.0007        .21954        .20408E-05   -.92706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52367e-11
Minuit parameter uncertainties:
  1  2.26789e-05
  2  95.0098
  3  0.193851
  4  0.21974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8609': 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) = 5529.78764534
delta logL = 5.27912015968e-06

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  2.268e-05  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  1.965e+00  9.501e+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.001e+00  2.197e-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.837e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-08 15:16:55.346676', job_id='8609', GAL2='1.00', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631139415.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1035' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:16:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 8609: <4FGL_J1350.8+3033_daily_bin1035> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1035 207.715 30.5588 507600001 507859201 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 :                                   772.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            995 sec.

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

