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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1363
RA = 202.573, Dec = 70.0406
tmin = 592617601, tmax = 592876801
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='654836', job_status='RUN', time_executed='2021-09-07 21:57:25.670194', time_epoch_executed='1631077045.67' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1363'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654836/ft1_4FGL_J1330.2+7002_daily_bin1363.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654836/ft1_4FGL_J1330.2+7002_daily_bin1363.fits outfile=/scratch/kocevski/654836/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1363.fits ra=202.573 dec=70.0406 rad=12.0 tmin=592617601.0 tmax=592876801.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.51
user 3.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654836/ft1_filtered_4FGL_J1330.2+7002_daily_bin1363.fits" evtable="EVENTS" scfile=/scratch/kocevski/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits sctable="SC_DATA" outfile=/scratch/kocevski/654836/ltcube_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.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/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits
.....................!
real 13.02
user 12.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654836/ft1_filtered_4FGL_J1330.2+7002_daily_bin1363.fits evtable="EVENTS" scfile=/scratch/kocevski/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits sctable="SC_DATA" expcube=/scratch/kocevski/654836/ltcube_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.fits outfile=/scratch/kocevski/654836/expmap_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.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/654836/ltcube_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.fits
.....................!
real 192.63
user 187.88
sys 4.29

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/654836/ft1_filtered_4FGL_J1330.2+7002_daily_bin1363.fits scfile=/scratch/kocevski/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits outfile=/scratch/kocevski/654836/cmap_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654836/ft1_filtered_4FGL_J1330.2+7002_daily_bin1363.fits scfile=/scratch/kocevski/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits outfile=/scratch/kocevski/654836/cmap_HighResolution_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.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.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/654836/ft1_filtered_4FGL_J1330.2+7002_daily_bin1363.fits', '/scratch/kocevski/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits', expMap='/scratch/kocevski/654836/expmap_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.fits', expCube='/scratch/kocevski/654836/ltcube_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/654836/Model_4FGL_J1330.2+7002_daily_bin1363.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/654836/ft1_filtered_4FGL_J1330.2+7002_daily_bin1363.fits
Spacecraft file(s): /scratch/kocevski/654836/ft2_4FGL_J1330.2+7002_daily_bin1363.fits
Exposure map: /scratch/kocevski/654836/expmap_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.fits
Exposure cube: /scratch/kocevski/654836/ltcube_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/654836/Model_4FGL_J1330.2+7002_daily_bin1363.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) = 6631.79016903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.606       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    60.153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.867       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    39.914       1.0000         .10000E-03   10000.    
     8 'norm      '    5.5484       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.7566       1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.112       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27704       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7178       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.206       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.727       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.844       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1348       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .67968       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=   6631.775     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3499 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.607        12.407       -.55149E-07    .20858E-04
   2  Prefactor     .10000E-03    3.0470       -.72044E-07** at limit **
   3  Prefactor     .10000E-03    48.898        .63298E-06** at limit **
   4  Prefactor     60.158        55.246        .22531E-05    .29137E-05
   5  Prefactor     10.871        17.559        .92022E-07   -.26956E-04
   6  Prefactor     .10000E-03    33.358        .20376E-04** at limit **
   7  norm          39.916        8.3812        .11063E-05    .44725E-04
   8  norm          5.5486        3.5211       -.12787E-06   -.11552E-03
   9  Prefactor     .10000E-03    12.151       -.42279E-05** at limit **
  10  Prefactor     9.7010        60.491       -.73775E-04    .11801E-04
  11  Prefactor     57.114        52.232        .44357E-06    .62143E-05
  12  Prefactor     25.190        21.870        .16365E-05    .38735E-04
  13  Prefactor     .40342        4.3946       -.57268E-06    .47857E-03
  14  Prefactor     .10000E-03    4.3949        .13009E-06** at limit **
  15  Prefactor     6.5357        14.659        .56875E-05    .25777E-03
  16  Prefactor     .10000E-03    3.3079        .63506E-08** at limit **
  17  Prefactor     .10000E-03    7.4925       -.20219E-06** at limit **
  18  Prefactor     .10000E-03    31.246       -.15366E-04** at limit **
  19  Prefactor     .10000E-03    188.89        .14409E-05** at limit **
  20  Prefactor     .10000E-03    59.569       -.24335E-04** at limit **
  21  Prefactor     .10000E-03    12.403        .44428E-05** at limit **
  22  Prefactor     .10000E-03    7.3372        .21457E-06** at limit **
  23  Prefactor     28.208        29.637       -.43460E-06    .52790E-05
  24  Prefactor     23.726        39.993       -.12089E-05   -.49548E-06
  25  Prefactor     .10000E-03    3.3416        .10171E-08** at limit **
  26  Prefactor     28.844        21.933       -.12833E-06    .23969E-05
  27  Normalizat    1.1345        .16030        .32911E-06    .21963E-03
  28  Prefactor     .67991        .15873        .54653E-06    .11025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.158
  Prefactor  = 10.8705
  Prefactor  = 0.0001
  norm       = 39.9162
  norm       = 5.54859
  Prefactor  = 0.0001
  Prefactor  = 9.70095
  Prefactor  = 57.1138
  Prefactor  = 25.1904
  Prefactor  = 0.403416
  Prefactor  = 0.0001
  Prefactor  = 6.53567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.2082
  Prefactor  = 23.7261
  Prefactor  = 0.0001
  Prefactor  = 28.8445
  Normalizat = 1.13447
  Prefactor  = 0.679913
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.775     FROM HESSE     STATUS=OK           519 CALLS     4018 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.607        12.410        .11282E-03   -1.4998    
   2  Prefactor     .10000E-03    3.1108        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    49.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     60.158        55.279        .51732E-04   -1.4155    
   5  Prefactor     10.871        17.585        .12153E-03   -1.5048    
   6  Prefactor     .10000E-03    33.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          39.916        8.3991        .63445E-04   -1.4444    
   8  norm          5.5486        3.5239        .11708E-03   -1.5237    
   9  Prefactor     .10000E-03    12.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.7010        60.818        .12829E-03   -1.5085    
  11  Prefactor     57.114        52.233        .53083E-04   -1.4195    
  12  Prefactor     25.190        21.870        .79814E-04   -1.4704    
  13  Prefactor     .40342        51.071        .22768E-02   -1.5581    
  14  Prefactor     .10000E-03    4.4005        .16672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5357        19.710        .15481E-03   -1.5197    
  16  Prefactor     .10000E-03    3.3350        .14462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    188.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    59.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.208        29.648        .75434E-04   -1.4645    
  24  Prefactor     23.726        40.013        .82234E-04   -1.4733    
  25  Prefactor     .10000E-03    3.3432        .14539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.844        21.935        .74598E-04   -1.4633    
  27  Normalizat    1.1345        .18937        .21504E-03   -.88653    
  28  Prefactor     .67991        .18577        .27459E-03   -1.0432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57312e-09
Minuit parameter uncertainties:
  1  12.4125
  2  1.16766e-05
  3  5.87533e-05
  4  55.3265
  5  17.5932
  6  1.26244e-05
  7  8.39935
  8  3.52398
  9  2.35974e-06
  10  48.6522
  11  52.2747
  12  21.8769
  13  9.08491
  14  2.65933e-05
  15  19.7292
  16  5.63483e-08
  17  5.42958e-06
  18  0.000103956
  19  1.26375e-05
  20  7.42948e-06
  21  1.3091e-05
  22  1.83277e-06
  23  29.6634
  24  40.0581
  25  1.03019e-06
  26  21.9406
  27  0.189483
  28  0.185942
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.519e+01  2.188e+01  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:  6.799e-01  1.859e-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.134e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.22
Ra Dec: 202.573 70.041
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.44e-08 +/- 1.25e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 9.38e-06

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) = 6628.56167123
delta logL = 3.21290833124

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6628.50381994
delta logL = 3.27075962519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.055       1.0000         .10000E-03   10000.    
     2 'Index     '    .55773       1.0000          .0000       10.000    
     3 'Normalizat'    1.1423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67878       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=   6628.504     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 20.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.045        34.078       -.14559E-04    .73880E-03
   2  Index         .55738        .87693       -.86682E-04   -.12408E-03
   3  Normalizat    1.1423        .15233       -.34455E-06    .68793E-04
   4  Prefactor     .67877        .15526        .74959E-06    .18643E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0445
  Index      = 0.557376
  Normalizat = 1.14228
  Prefactor  = 0.67877
 **********
 **   18 **HESSE 
 **********

 FCN=   6628.504     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.045        29.522        .10684E-03   -1.4958    
   2  Index         .55738        .76360        .12881E-01   -1.0941    
   3  Normalizat    1.1423        .17553        .21435E-03   -.88406    
   4  Prefactor     .67877        .17855        .27479E-03   -1.0436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80359e-10
Minuit parameter uncertainties:
  1  29.5523
  2  0.778452
  3  0.175621
  4  0.178701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654836': 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) = 6628.50381981
delta logL = 3.27075975131

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.404e+01  2.955e+01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  5.574e-01  7.785e-01  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:  6.788e-01  1.787e-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.142e+00  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.74
Ra Dec: 202.573 70.041
Photon Index (Free Index): 0.56 +/- 0.78
Photon Flux (Free Index): 3.85e-09 +/- 4.08e-09
Energy Flux (Free Index): 1.24e-04 +/- 1.29e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/654836/cmap_HighResolution_592617601_592876801_4FGL_J1330.2+7002_daily_bin1363.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-08', energy_flux2='1.24e-04', photon_flux_error='1.25e-08', dlogl='3.27e+00', energy_flux='1.08e-05', photon_flux2='3.85e-09', job_status='DONE', time_completed='2021-09-07 22:12:04.725105', photon_index_error2='0.78', photon_index2='0.56', ts='9.22', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='1.29e-04', EG='1.13', time_epoch_completed='1631077924.73', return_code='0', job_id='654836', GAL2='0.68', EG2='1.14', return_code2='0', energy_flux_error='9.38e-06', photon_flux_error2='4.08e-09', ts2='15.74', photon_index='1.97' WHERE bin_id='1363' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 22:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 654836: <4FGL_J1330.2+7002_daily_bin1363> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1363> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 21:55:41 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:57:04 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:57:04 2021
Terminated at Tue Sep  7 22:12:05 2021
Results reported at Tue Sep  7 22:12:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1363 202.573 70.0406 592617601 592876801 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 :                                   870.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             355.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            984 sec.

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

