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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin13
RA = 202.573, Dec = 70.0406
tmin = 242697601, tmax = 242956801
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='631478', job_status='RUN', time_executed='2021-09-07 21:03:14.106718', time_epoch_executed='1631073794.11' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631478/ft1_4FGL_J1330.2+7002_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631478/ft2_4FGL_J1330.2+7002_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631478/ft1_4FGL_J1330.2+7002_daily_bin13.fits outfile=/scratch/kocevski/631478/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin13.fits ra=202.573 dec=70.0406 rad=12.0 tmin=242697601.0 tmax=242956801.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.20
user 1.00
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631478/ft1_filtered_4FGL_J1330.2+7002_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/631478/ft2_4FGL_J1330.2+7002_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/631478/ltcube_242697601_242956801_4FGL_J1330.2+7002_daily_bin13.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/631478/ft2_4FGL_J1330.2+7002_daily_bin13.fits
.....................!
real 13.41
user 13.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631478/ft1_filtered_4FGL_J1330.2+7002_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/631478/ft2_4FGL_J1330.2+7002_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/631478/ltcube_242697601_242956801_4FGL_J1330.2+7002_daily_bin13.fits outfile=/scratch/kocevski/631478/expmap_242697601_242956801_4FGL_J1330.2+7002_daily_bin13.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/631478/ltcube_242697601_242956801_4FGL_J1330.2+7002_daily_bin13.fits
.....................!
real 156.63
user 151.57
sys 4.71

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/631478/ft1_filtered_4FGL_J1330.2+7002_daily_bin13.fits scfile=/scratch/kocevski/631478/ft2_4FGL_J1330.2+7002_daily_bin13.fits outfile=/scratch/kocevski/631478/cmap_242697601_242956801_4FGL_J1330.2+7002_daily_bin13.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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631478/ft1_filtered_4FGL_J1330.2+7002_daily_bin13.fits scfile=/scratch/kocevski/631478/ft2_4FGL_J1330.2+7002_daily_bin13.fits outfile=/scratch/kocevski/631478/cmap_HighResolution_242697601_242956801_4FGL_J1330.2+7002_daily_bin13.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.209       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.067       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.201       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.478       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .91492       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.252       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.860       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50891E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1499       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.766       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.033       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.9997       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94058       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0402       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=   6548.916     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3433 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.463        .24229E-05** at limit **
   2  Prefactor     .10000E-03    2.6000        .81965E-08** at limit **
   3  Prefactor     .10000E-03    11.034       -.91940E-06** at limit **
   4  Prefactor     56.215        59.775        .20485E-05    .14408E-04
   5  Prefactor     .10000E-03    8.3851        .18405E-06** at limit **
   6  Prefactor     58.075        54.852        .15770E-05    .34793E-05
   7  norm          .10000E-03    2.3949        .10883E-07** at limit **
   8  norm          1.1672        3.1946       -.70996E-06   -.10705E-02
   9  Prefactor     31.207        36.541       -.60543E-05    .64042E-07
  10  Prefactor     .10000E-03    30.420       -.28102E-05** at limit **
  11  Prefactor     .10000E-03    15.356       -.27645E-05** at limit **
  12  Prefactor     30.479        24.298       -.23791E-05    .39941E-04
  13  Prefactor     .10000E-03    1.2498        .54681E-08** at limit **
  14  Prefactor     .10000E-03    5.1588        .51472E-07** at limit **
  15  Prefactor     .10000E-03    4.1847        .84697E-08** at limit **
  16  Prefactor     .90262        4.5100       -.17333E-05    .31990E-03
  17  Prefactor     39.249        20.369        .34861E-05    .14418E-03
  18  Prefactor     26.858        35.596        .14274E-05    .45830E-05
  19  Prefactor     .10000E-03    689.77       -.20604E-03** at limit **
  20  Prefactor     .10000E-03    23.759       -.31167E-05** at limit **
  21  Prefactor     2.1498        12.629       -.18228E-05   -.22523E-03
  22  Prefactor     .10000E-03    5.9735        .14367E-07** at limit **
  23  Prefactor     28.770        36.494       -.41814E-05    .64743E-05
  24  Prefactor     .10000E-03    22.631        .62897E-05** at limit **
  25  Prefactor     11.039        20.235       -.75503E-05   -.25751E-03
  26  Prefactor     5.9581        58.085        .79122E-04    .17728E-04
  27  Normalizat    .94043        .15450        .93027E-06    .11679E-03
  28  Prefactor     1.0402        .16307       -.20908E-05    .25468E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.2148
  Prefactor  = 0.0001
  Prefactor  = 58.0749
  norm       = 0.0001
  norm       = 1.16716
  Prefactor  = 31.2075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.902619
  Prefactor  = 39.2494
  Prefactor  = 26.8583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.14978
  Prefactor  = 0.0001
  Prefactor  = 28.7696
  Prefactor  = 0.0001
  Prefactor  = 11.039
  Prefactor  = 5.95806
  Normalizat = 0.940433
  Prefactor  = 1.04015
 **********
 **   18 **HESSE 
 **********

 FCN=   6548.916     FROM HESSE     STATUS=OK           511 CALLS     3944 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6302        .12739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.215        59.806        .53506E-04   -1.4207    
   5  Prefactor     .10000E-03    8.4022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     58.075        54.877        .52647E-04   -1.4182    
   7  norm          .10000E-03    2.4138        .12226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1672        3.1854        .22929E-03   -1.5492    
   9  Prefactor     31.207        36.559        .71732E-04   -1.4590    
  10  Prefactor     .10000E-03    30.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.479        24.296        .72575E-04   -1.4603    
  13  Prefactor     .10000E-03    1.2551        .88313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1667        .17950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.2105        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .90262        18.863        .31822E-02   -1.5518    
  17  Prefactor     39.249        20.345        .63976E-04   -1.4454    
  18  Prefactor     26.858        35.596        .77298E-04   -1.4671    
  19  Prefactor     .10000E-03    687.41        .19178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1498        12.617        .28102E-03   -1.5415    
  22  Prefactor     .10000E-03    5.9750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.770        36.522        .74699E-04   -1.4635    
  24  Prefactor     .10000E-03    22.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.039        20.074        .12062E-03   -1.5043    
  26  Prefactor     5.9581        57.228        .16393E-03   -1.5220    
  27  Normalizat    .94043        .17740        .23456E-03   -.95054    
  28  Prefactor     1.0402        .18738        .23640E-03   -.91403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7714e-09
Minuit parameter uncertainties:
  1  2.51805e-06
  2  2.22101e-06
  3  1.15177e-06
  4  59.8695
  5  6.69783e-06
  6  54.9251
  7  3.29231e-06
  8  3.18587
  9  36.5853
  10  2.86556e-05
  11  5.13277e-06
  12  24.304
  13  2.02169e-06
  14  9.0881e-06
  15  3.35688e-06
  16  8.25501
  17  20.3482
  18  35.6239
  19  0.000401675
  20  5.05071e-06
  21  10.4193
  22  1.90562e-06
  23  36.5502
  24  6.83578e-06
  25  20.0867
  26  36.9767
  27  0.177513
  28  0.187494
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  3.048e+01  2.430e+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:  1.040e+00  1.875e-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:  9.404e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.25
Ra Dec: 202.573 70.041
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.74e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.04e-05

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) = 6547.91183154
delta logL = 1.00461217194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6547.77861833
delta logL = 1.13782538014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.097       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2493       1.0000          .0000       10.000    
     3 'Normalizat'    .95057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0345       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=   6547.779     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.132        36.501        .29213E-03    .42807E-06
   2  Index         1.2490        .43612        .92269E-02   -.25468E-05
   3  Normalizat    .95046        .17104        .23339E-03   -.24307E-04
   4  Prefactor     1.0345        .18126        .23688E-03    .66182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1323
  Index      = 1.249
  Normalizat = 0.950457
  Prefactor  = 1.03452
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.779     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.132        36.696        .11685E-04   -1.4334    
   2  Index         1.2490        .43851        .36908E-03   -.84836    
   3  Normalizat    .95046        .17120        .93356E-05   -.94709    
   4  Prefactor     1.0345        .18143        .94753E-05   -.91588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71236e-11
Minuit parameter uncertainties:
  1  36.714
  2  0.439802
  3  0.1713
  4  0.181539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631478': 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) = 6547.77861714
delta logL = 1.13782657919

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  4.713e+01  3.671e+01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.249e+00  4.398e-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:  1.035e+00  1.815e-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:  9.505e-01  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.53
Ra Dec: 202.573 70.041
Photon Index (Free Index): 1.25 +/- 0.44
Photon Flux (Free Index): 8.56e-09 +/- 7.69e-09
Energy Flux (Free Index): 6.16e-05 +/- 7.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/631478/cmap_HighResolution_242697601_242956801_4FGL_J1330.2+7002_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-08', energy_flux2='6.16e-05', photon_flux_error='1.39e-08', dlogl='1.14e+00', energy_flux='1.31e-05', photon_flux2='8.56e-09', job_status='DONE', time_completed='2021-09-07 21:14:39.256461', photon_index_error2='0.44', photon_index2='1.25', ts='6.25', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='7.20e-05', EG='0.94', time_epoch_completed='1631074479.26', return_code='0', job_id='631478', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='7.69e-09', ts2='8.53', photon_index='1.97' WHERE bin_id='13' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:14:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 631478: <4FGL_J1330.2+7002_daily_bin13> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin13> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 21:00:25 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:00:49 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:00:49 2021
Terminated at Tue Sep  7 21:14:40 2021
Results reported at Tue Sep  7 21:14:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin13 202.573 70.0406 242697601 242956801 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 :                                   683.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            855 sec.

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

