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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin6
RA = 202.573, Dec = 70.0406
tmin = 240883201, tmax = 241142401
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='631468', job_status='RUN', time_executed='2021-09-07 21:02:23.539835', time_epoch_executed='1631073743.54' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631468/ft1_4FGL_J1330.2+7002_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631468/ft2_4FGL_J1330.2+7002_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631468/ft1_4FGL_J1330.2+7002_daily_bin6.fits outfile=/scratch/kocevski/631468/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin6.fits ra=202.573 dec=70.0406 rad=12.0 tmin=240883201.0 tmax=241142401.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.28
user 1.10
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631468/ft2_4FGL_J1330.2+7002_daily_bin6.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/631468/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/631468/ft1_filtered_4FGL_J1330.2+7002_daily_bin6.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631468/ft1_filtered_4FGL_J1330.2+7002_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/631468/ft2_4FGL_J1330.2+7002_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/631468/ltcube_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.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/631468/ft2_4FGL_J1330.2+7002_daily_bin6.fits
.....................!
real 14.54
user 14.21
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631468/ft1_filtered_4FGL_J1330.2+7002_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/631468/ft2_4FGL_J1330.2+7002_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/631468/ltcube_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.fits outfile=/scratch/kocevski/631468/expmap_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.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/631468/ltcube_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.fits
.....................!
real 157.46
user 152.75
sys 3.99

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/631468/ft1_filtered_4FGL_J1330.2+7002_daily_bin6.fits scfile=/scratch/kocevski/631468/ft2_4FGL_J1330.2+7002_daily_bin6.fits outfile=/scratch/kocevski/631468/cmap_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.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.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631468/ft1_filtered_4FGL_J1330.2+7002_daily_bin6.fits scfile=/scratch/kocevski/631468/ft2_4FGL_J1330.2+7002_daily_bin6.fits outfile=/scratch/kocevski/631468/cmap_HighResolution_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.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.49
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.356       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22127E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.856       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7423       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.765       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.985       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.340       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.628       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .63222E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.347       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .81988       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93302       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.

 FCN=   5698.255     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3577 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.357        17.969        .20292E-02   -.73058E-05
   2  Prefactor     .10000E-03    1.1330        .90712E-02** at limit **
   3  Prefactor     16.038        32.938        .25009E-02    .70601E-03
   4  Prefactor     21.735        60.811        .21509E-02   -.36931E-03
   5  Prefactor     .10000E-03    6.7796        .90712E-02** at limit **
   6  Prefactor     .10000E-03    112.49        .90712E-02** at limit **
   7  norm          .10000E-03    2.4615        .90712E-02** at limit **
   8  norm          .10000E-03    1.7944        .39076E-01** at limit **
   9  Prefactor     16.533        28.704        .24625E-02   -.15020E-03
  10  Prefactor     .10000E-03    16.240        .90712E-02** at limit **
  11  Prefactor     33.847        30.308        .17217E-02   -.12068E-02
  12  Prefactor     .10000E-03    12.749        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.8258        .90712E-02** at limit **
  14  Prefactor     7.7474        19.384        .36028E-02    .93224E-03
  15  Prefactor     .10000E-03    6.5210        .90712E-02** at limit **
  16  Prefactor     10.765        8.3063        .30528E-02    .35169E-03
  17  Prefactor     26.984        15.706        .19280E-02    .23920E-03
  18  Prefactor     .10000E-03    30.853        .90712E-02** at limit **
  19  Prefactor     .10002E-03    694.94        .90712E-02** at limit **
  20  Prefactor     32.343        54.398        .17615E-02   -.78093E-04
  21  Prefactor     .10000E-03    8.5942        .90712E-02** at limit **
  22  Prefactor     21.637        28.177        .21532E-02    .65973E-03
  23  Prefactor     .10000E-03    13.494        .90712E-02** at limit **
  24  Prefactor     .10000E-03    57.132        .90712E-02** at limit **
  25  Prefactor     .10000E-03    12.788        .94302E-01** at limit **
  26  Prefactor     21.341        21.084        .21673E-02    .14907E-03
  27  Normalizat    .81984        .15404        .43869E-01   -.11141E-05
  28  Prefactor     .93306        .15551        .45424E-01   -.39245E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3567
  Prefactor  = 0.0001
  Prefactor  = 16.0382
  Prefactor  = 21.7354
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.5325
  Prefactor  = 0.0001
  Prefactor  = 33.8467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.74737
  Prefactor  = 0.0001
  Prefactor  = 10.7654
  Prefactor  = 26.9844
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 32.3434
  Prefactor  = 0.0001
  Prefactor  = 21.637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.3414
  Normalizat = 0.819839
  Prefactor  = 0.933059
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.255     FROM HESSE     STATUS=OK           505 CALLS     4082 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.357        17.969        .81167E-04   -1.4721    
   2  Prefactor     .10000E-03    1.1348        .78467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.038        32.927        .10004E-03   -1.4907    
   4  Prefactor     21.735        60.855        .86034E-04   -1.4775    
   5  Prefactor     .10000E-03    6.7858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    112.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4786        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1520        .19636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.533        28.698        .98500E-04   -1.4895    
  10  Prefactor     .10000E-03    16.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.847        30.304        .68869E-04   -1.4544    
  12  Prefactor     .10000E-03    12.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8436        .99504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7474        19.492        .72057E-03   -1.5151    
  15  Prefactor     .10000E-03    6.5731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.765        8.2994        .12211E-03   -1.5052    
  17  Prefactor     26.984        15.703        .77119E-04   -1.4669    
  18  Prefactor     .10000E-03    30.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    695.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.343        54.467        .70460E-04   -1.4570    
  21  Prefactor     .10000E-03    8.6115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.637        28.183        .86127E-04   -1.4777    
  23  Prefactor     .10000E-03    13.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    57.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    75.173        .50733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.341        20.784        .86692E-04   -1.4784    
  27  Normalizat    .81984        .18015        .22532E-03   -.99337    
  28  Prefactor     .93306        .18261        .22132E-03   -.94995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14601e-08
Minuit parameter uncertainties:
  1  17.9727
  2  3.48968e-06
  3  32.9643
  4  61.0297
  5  1.97279e-05
  6  0.000555824
  7  1.9164e-06
  8  5.07358e-06
  9  28.7224
  10  3.404e-05
  11  30.3182
  12  4.21907e-05
  13  1.3222e-05
  14  19.5079
  15  3.70574e-06
  16  8.30024
  17  15.7056
  18  0.000190231
  19  0.00800433
  20  54.5506
  21  8.84541e-05
  22  28.2004
  23  3.33532e-05
  24  2.44555e-06
  25  0.000571968
  26  20.7909
  27  0.180279
  28  0.182735
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  4.219e-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:  9.331e-01  1.827e-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:  8.198e-01  1.803e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631468/likelihoodResults_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.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) = 5698.2558558
delta logL = -0.000373381473764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5698.2554824
delta logL = 9.9544195109e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9574       1.0000          .0000       10.000    
     3 'Normalizat'    .81985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93305       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.

 FCN=   5698.255     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1026.6        .90712E-02** at limit **
   2  Index         1.9483        7.4030        .50000        .55380E-05
   3  Normalizat    .81984        .37722E-01    .43869E-01    .14745E-04
   4  Prefactor     .93306        .39520E-01    .45425E-01    .87490E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94829
  Normalizat = 0.819839
  Prefactor  = 0.933059
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.255     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1405.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9483        8.8183        .50000       -.65649    
   3  Normalizat    .81984        .47217E-01    .22532E-03   -.99337    
   4  Prefactor     .93306        .49480E-01    .22132E-03   -.94995    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35826e-09
Minuit parameter uncertainties:
  1  4.06514e-05
  2  42.5752
  3  0.0472194
  4  0.0494824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631468': 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) = 5698.25548239
delta logL = 2.60824890574e-08

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  4.065e-05  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.948e+00  4.258e+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:  9.331e-01  4.948e-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:  8.198e-01  4.722e-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/631468/cmap_HighResolution_240883201_241142401_4FGL_J1330.2+7002_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-07 21:14:35.977428', job_id='631468', GAL2='0.93', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631074475.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='6' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 631468: <4FGL_J1330.2+7002_daily_bin6> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin6 202.573 70.0406 240883201 241142401 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 :                                   729.18 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            852 sec.

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

