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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin2
RA = 202.573, Dec = 70.0406
tmin = 239846401, tmax = 240105601
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='631463', job_status='RUN', time_executed='2021-09-07 21:01:04.850078', time_epoch_executed='1631073664.85' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631463/ft1_4FGL_J1330.2+7002_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631463/ft2_4FGL_J1330.2+7002_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631463/ft1_4FGL_J1330.2+7002_daily_bin2.fits outfile=/scratch/kocevski/631463/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin2.fits ra=202.573 dec=70.0406 rad=12.0 tmin=239846401.0 tmax=240105601.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.94
user 1.31
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631463/ft2_4FGL_J1330.2+7002_daily_bin2.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/631463/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/631463/ft1_filtered_4FGL_J1330.2+7002_daily_bin2.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631463/ft1_filtered_4FGL_J1330.2+7002_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/631463/ft2_4FGL_J1330.2+7002_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/631463/ltcube_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.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/631463/ft2_4FGL_J1330.2+7002_daily_bin2.fits
.....................!
real 18.76
user 18.16
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631463/ft1_filtered_4FGL_J1330.2+7002_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/631463/ft2_4FGL_J1330.2+7002_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/631463/ltcube_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.fits outfile=/scratch/kocevski/631463/expmap_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.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/631463/ltcube_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.fits
.....................!
real 196.20
user 187.73
sys 5.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/631463/ft1_filtered_4FGL_J1330.2+7002_daily_bin2.fits scfile=/scratch/kocevski/631463/ft2_4FGL_J1330.2+7002_daily_bin2.fits outfile=/scratch/kocevski/631463/cmap_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631463/ft1_filtered_4FGL_J1330.2+7002_daily_bin2.fits scfile=/scratch/kocevski/631463/ft2_4FGL_J1330.2+7002_daily_bin2.fits outfile=/scratch/kocevski/631463/cmap_HighResolution_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.379       1.0000         .10000E-03   10000.    
     6 'Prefactor '    91.541       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    121.56       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.517       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.638       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.260       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94585       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91292       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=   5152.538     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     3529 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.329       -.38508E-05** at limit **
   2  Prefactor     .10000E-03    3.0340        .40542E-07** at limit **
   3  Prefactor     13.704        54.754       -.38479E-04   -.25701E-04
   4  Prefactor     .10000E-03    33.773        .10285E-04** at limit **
   5  Prefactor     11.387        25.817       -.72788E-05   -.40390E-05
   6  Prefactor     91.613        112.12        .59984E-04    .17315E-04
   7  norm          .10000E-03    5.2409       -.11507E-07** at limit **
   8  norm          4.8112        4.0150       -.10721E-06   -.26462E-03
   9  Prefactor     .10000E-03    70.099        .58999E-05** at limit **
  10  Prefactor     .10000E-03    19.136       -.13246E-04** at limit **
  11  Prefactor     .10000E-03    22.571        .11553E-04** at limit **
  12  Prefactor     .10000E-03    10.848        .67112E-05** at limit **
  13  Prefactor     .10000E-03    5.1151        .10372E-06** at limit **
  14  Prefactor     .10000E-03    6.1052       -.47231E-07** at limit **
  15  Prefactor     .10000E-03    9.4255       -.80129E-06** at limit **
  16  Prefactor     .10000E-03    3.0788        .45327E-07** at limit **
  17  Prefactor     32.773        18.815       -.11672E-06   -.21680E-04
  18  Prefactor     121.56        67.749       -.22056E-05    .10034E-04
  19  Prefactor     .10000E-03    301.15       -.11577E-04** at limit **
  20  Prefactor     59.516        59.326       -.80936E-06   -.91734E-07
  21  Prefactor     .10000E-03    12.174       -.74670E-05** at limit **
  22  Prefactor     25.640        31.072       -.24356E-06   -.29341E-05
  23  Prefactor     .10000E-03    16.493       -.37508E-06** at limit **
  24  Prefactor     .10000E-03    36.097       -.16003E-04** at limit **
  25  Prefactor     27.262        22.507       -.53707E-06   -.27726E-04
  26  Prefactor     .10000E-03    14.207        .10049E-04** at limit **
  27  Normalizat    .94558        .18096        .33907E-06   -.10772E-05
  28  Prefactor     .91316        .17804       -.18720E-06    .25139E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7039
  Prefactor  = 0.0001
  Prefactor  = 11.3875
  Prefactor  = 91.6131
  norm       = 0.0001
  norm       = 4.81125
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7734
  Prefactor  = 121.556
  Prefactor  = 0.0001
  Prefactor  = 59.5159
  Prefactor  = 0.0001
  Prefactor  = 25.6402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.262
  Prefactor  = 0.0001
  Normalizat = 0.945584
  Prefactor  = 0.913159
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.538     FROM HESSE     STATUS=OK           509 CALLS     4038 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0937        .12207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.704        54.604        .10817E-03   -1.4967    
   4  Prefactor     .10000E-03    33.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.387        25.873        .11876E-03   -1.5033    
   6  Prefactor     91.613        112.07        .21000E-03   -1.3791    
   7  norm          .10000E-03    5.3434        .16036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8112        4.0266        .12556E-03   -1.5269    
   9  Prefactor     .10000E-03    70.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3086        .31658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1134        .17322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0912        .12299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.773        18.818        .69995E-04   -1.4562    
  18  Prefactor     121.56        67.737        .36503E-04   -1.3498    
  19  Prefactor     .10000E-03    301.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.516        59.333        .52006E-04   -1.4163    
  21  Prefactor     .10000E-03    12.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.640        31.094        .79116E-04   -1.4695    
  23  Prefactor     .10000E-03    16.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    36.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.262        22.555        .76730E-04   -1.4663    
  26  Prefactor     .10000E-03    14.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .94558        .21335        .23615E-03   -.94876    
  28  Prefactor     .91316        .20941        .23986E-03   -.95683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64699e-11
Minuit parameter uncertainties:
  1  5.61138e-06
  2  1.4616e-06
  3  54.7969
  4  5.91545e-06
  5  25.8989
  6  112.328
  7  2.76739e-06
  8  4.02685
  9  0.000153335
  10  1.3084e-06
  11  4.78041e-06
  12  5.43724e-07
  13  1.18802e-05
  14  1.91039e-06
  15  2.05187e-05
  16  4.70716e-07
  17  18.8217
  18  67.78
  19  4.54898e-06
  20  59.3925
  21  9.00251e-06
  22  31.1138
  23  1.37677e-06
  24  6.07632e-06
  25  22.562
  26  4.12705e-06
  27  0.213545
  28  0.209599
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  5.437e-07  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.132e-01  2.096e-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.456e-01  2.135e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631463/likelihoodResults_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.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) = 5152.5383596
delta logL = -0.000437370222244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5152.53792541
delta logL = -3.18095590046e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9343       1.0000          .0000       10.000    
     3 'Normalizat'    .94602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91272       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=   5152.538     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10142E-03    74.789        .18142E-02** at limit **
   2  Index         1.8798        5.9995        .50000        .17976E-04
   3  Normalizat    .94558        .11010E-01    .23615E-03    .10302E-04
   4  Prefactor     .91316        .11069E-01    .23986E-03    .77731E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101422
  Index      = 1.87984
  Normalizat = 0.945584
  Prefactor  = 0.913159
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.538     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10142E-03    323.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8798        8.7184        .50000       -.67389    
   3  Normalizat    .94558        .23526E-01    .94459E-05   -.94876    
   4  Prefactor     .91316        .23651E-01    .95945E-05   -.95683    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26099e-08
Minuit parameter uncertainties:
  1  0.043124
  2  406.486
  3  0.0235265
  4  0.0236516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631463': 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) = 5152.53792185
delta logL = 3.83444785257e-07

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.014e-04  4.312e-02  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.880e+00  4.065e+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:  9.132e-01  2.365e-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:  9.456e-01  2.353e-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/631463/cmap_HighResolution_239846401_240105601_4FGL_J1330.2+7002_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2021-09-07 21:15:04.778492', job_id='631463', GAL2='0.91', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631074504.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='2' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:15:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 631463: <4FGL_J1330.2+7002_daily_bin2> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin2> 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) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:00:44 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:44 2021
Terminated at Tue Sep  7 21:15:05 2021
Results reported at Tue Sep  7 21:15:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin2 202.573 70.0406 239846401 240105601 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 :                                   829.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            881 sec.

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

