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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin75
RA = 202.573, Dec = 70.0406
tmin = 258768001, tmax = 259027201
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='632874', job_status='RUN', time_executed='2021-09-07 21:10:06.189617', time_epoch_executed='1631074206.19' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632874

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632874/ft1_4FGL_J1330.2+7002_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632874/ft1_4FGL_J1330.2+7002_daily_bin75.fits outfile=/scratch/kocevski/632874/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin75.fits ra=202.573 dec=70.0406 rad=12.0 tmin=258768001.0 tmax=259027201.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.15
user 0.98
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.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/632874/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/632874/ltcube_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.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/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits
.....................!
real 12.42
user 12.05
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/632874/ltcube_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.fits outfile=/scratch/kocevski/632874/expmap_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.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/632874/ltcube_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.fits
.....................!
real 192.82
user 187.89
sys 4.46

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 229 point sources and 0 extended sources

Setting source of interest to:
4FGL J1330.2+7002 @ 202.573 70.0406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits scfile=/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits outfile=/scratch/kocevski/632874/cmap_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.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=202.573 yref=70.0406 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/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits scfile=/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits outfile=/scratch/kocevski/632874/cmap_HighResolution_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.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=202.573 yref=70.0406 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/632874/Model_4FGL_J1330.2+7002_daily_bin75.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/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits.....................!
real 49.37
user 47.92
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits', '/scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits', expMap='/scratch/kocevski/632874/expmap_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.fits', expCube='/scratch/kocevski/632874/ltcube_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/632874/Model_4FGL_J1330.2+7002_daily_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.2+7002'

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.366e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/632874/ft1_filtered_4FGL_J1330.2+7002_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/632874/ft2_4FGL_J1330.2+7002_daily_bin75.fits
Exposure map: /scratch/kocevski/632874/expmap_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.fits
Exposure cube: /scratch/kocevski/632874/ltcube_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/632874/Model_4FGL_J1330.2+7002_daily_bin75.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) = 4042.97182566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11258E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9447       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.322       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2351       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39547E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.085       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .83215E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6611       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0406       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0659       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4042.891     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     2992 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.632       -.55928E-07** at limit **
   2  Prefactor     10.229        6.4462       -.94348E-07   -.43440E-04
   3  Prefactor     .10000E-03    23.907       -.76707E-08** at limit **
   4  Prefactor     .10000E-03    245.85       -.27651E-07** at limit **
   5  Prefactor     .10000E-03    41.538        .52068E-06** at limit **
   6  Prefactor     .10000E-03    34.389       -.16040E-06** at limit **
   7  norm          .10000E-03    5.5865       -.18903E-06** at limit **
   8  norm          3.9452        3.9471       -.24118E-06    .14610E-03
   9  Prefactor     11.329        37.981       -.10117E-05    .32079E-05
  10  Prefactor     .10000E-03    45.201        .69674E-07** at limit **
  11  Prefactor     29.514        52.797        .19938E-05    .54360E-04
  12  Prefactor     .10000E-03    12.805       -.17980E-07** at limit **
  13  Prefactor     7.2393        6.2829       -.69326E-06    .16685E-03
  14  Prefactor     .10000E-03    8.0100       -.29866E-07** at limit **
  15  Prefactor     .10000E-03    14.540        .58919E-06** at limit **
  16  Prefactor     .10000E-03    6.1354       -.13061E-06** at limit **
  17  Prefactor     .10025E-03    39.504        .88276E-06** at limit **
  18  Prefactor     29.089        37.716       -.25192E-06   -.36476E-05
  19  Prefactor     .10010E-03    6332.3        .23889E-04** at limit **
  20  Prefactor     .10000E-03    50.250       -.43973E-06** at limit **
  21  Prefactor     .10000E-03    8.6260       -.52860E-07** at limit **
  22  Prefactor     .10000E-03    355.25        .34424E-04** at limit **
  23  Prefactor     3.6702        327.82       -.20432E-05    .16118E-04
  24  Prefactor     .10000E-03    66.886       -.32994E-06** at limit **
  25  Prefactor     .10000E-03    16.682       -.20262E-06** at limit **
  26  Prefactor     .10000E-03    18.493       -.94718E-07** at limit **
  27  Normalizat    1.0403        .21165        .22911E-05    .52401E-04
  28  Prefactor     1.0659        .21509        .16660E-05    .34257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.2285
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.94523
  Prefactor  = 11.3287
  Prefactor  = 0.0001
  Prefactor  = 29.5138
  Prefactor  = 0.0001
  Prefactor  = 7.23928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100254
  Prefactor  = 29.0892
  Prefactor  = 0.0001001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.67022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04035
  Prefactor  = 1.06593
 **********
 **   18 **HESSE 
 **********

 FCN=   4042.891     FROM HESSE     STATUS=OK           521 CALLS     3513 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.229        6.4483        .12460E-03   -1.5068    
   3  Prefactor     .10000E-03    23.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    246.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.6831        .14682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9452        3.9473        .12213E-03   -1.5311    
   9  Prefactor     11.329        37.995        .11906E-03   -1.5035    
  10  Prefactor     .10000E-03    45.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.514        53.366        .73753E-04   -1.4621    
  12  Prefactor     .10000E-03    12.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2393        6.3007        .13891E-03   -1.5170    
  14  Prefactor     .10000E-03    8.0219        .17576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1625        .15382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10025E-03    45.870        .94474E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.089        37.716        .74288E-04   -1.4629    
  19  Prefactor     .10010E-03    6326.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    342.91        .74191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.6702        324.73        .21111E-03   -1.5325    
  24  Prefactor     .10000E-03    66.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0403        .24685        .23626E-03   -.91691    
  28  Prefactor     1.0659        .24957        .23973E-03   -.90563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86743e-10
Minuit parameter uncertainties:
  1  4.07242e-05
  2  6.44873
  3  3.86748e-05
  4  0.0019932
  5  0.000491651
  6  1.32615e-05
  7  5.55887e-05
  8  3.94757
  9  38.0761
  10  7.84606e-05
  11  53.4523
  12  1.05462e-05
  13  6.3013
  14  1.98186e-05
  15  2.75785e-05
  16  3.11439e-05
  17  0.00683224
  18  37.7464
  19  0.0342094
  20  5.79933e-07
  21  1.65034e-05
  22  0.000508743
  23  69.4369
  24  5.52571e-06
  25  0.000101247
  26  2.81507e-05
  27  0.247124
  28  0.249839
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  1.055e-05  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.066e+00  2.498e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  1.040e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 4.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632874/likelihoodResults_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.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) = 4042.89109114
delta logL = -0.000367525336515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4042.89072352
delta logL = 9.01309249457e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9359       1.0000          .0000       10.000    
     3 'Normalizat'    1.0403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0659       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+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=   4042.891     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      242 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10349E-03    7.4536        .18142E-01** at limit **
   2  Index         1.8403        6.7130        .50000        .14555E-04
   3  Normalizat    1.0403        .36592E-02    .23626E-03   -.19488E-05
   4  Prefactor     1.0659        .37716E-02    .23973E-03    .58567E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103495
  Index      = 1.84026
  Normalizat = 1.04035
  Prefactor  = 1.06593
 **********
 **   18 **HESSE 
 **********

 FCN=   4042.891     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10349E-03    108.69        .23934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8403        7.2339        .50000       -.68406    
   3  Normalizat    1.0403        .14092E-01    .94503E-05   -.91691    
   4  Prefactor     1.0659        .14525E-01    .95892E-05   -.90563    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.56629e-09
Minuit parameter uncertainties:
  1  0.0390496
  2  361.539
  3  0.0140924
  4  0.0145251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632874': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4042.89072319
delta logL = 4.20522155764e-07

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.035e-04  3.905e-02  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.840e+00  3.615e+02  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.066e+00  1.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  1.040e+00  1.409e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.573 70.041

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/632874/cmap_HighResolution_258768001_259027201_4FGL_J1330.2+7002_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-03', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2021-09-07 21:21:37.982666', job_id='632874', GAL2='1.07', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631074897.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='75' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:21:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 632874: <4FGL_J1330.2+7002_daily_bin75> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin75> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 21:05:25 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:05:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 21:05:58 2021
Terminated at Tue Sep  7 21:21:38 2021
Results reported at Tue Sep  7 21:21:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin75 202.573 70.0406 258768001 259027201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   692.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            973 sec.

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

