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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1157
RA = 202.573, Dec = 70.0406
tmin = 539222401, tmax = 539481601
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='650475', job_status='RUN', time_executed='2021-09-07 21:54:45.968115', time_epoch_executed='1631076885.97' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650475

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650475/ft1_4FGL_J1330.2+7002_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650475/ft2_4FGL_J1330.2+7002_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650475/ft1_4FGL_J1330.2+7002_daily_bin1157.fits outfile=/scratch/kocevski/650475/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1157.fits ra=202.573 dec=70.0406 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.87
user 5.37
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/650475/ft2_4FGL_J1330.2+7002_daily_bin1157.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/650475/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/650475/ft1_filtered_4FGL_J1330.2+7002_daily_bin1157.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/650475/ft1_filtered_4FGL_J1330.2+7002_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/650475/ft2_4FGL_J1330.2+7002_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/650475/ltcube_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.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/650475/ft2_4FGL_J1330.2+7002_daily_bin1157.fits
.....................!
real 15.31
user 14.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650475/ft1_filtered_4FGL_J1330.2+7002_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/650475/ft2_4FGL_J1330.2+7002_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/650475/ltcube_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.fits outfile=/scratch/kocevski/650475/expmap_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.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/650475/ltcube_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.fits
.....................!
real 190.58
user 186.27
sys 3.79

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/650475/ft1_filtered_4FGL_J1330.2+7002_daily_bin1157.fits scfile=/scratch/kocevski/650475/ft2_4FGL_J1330.2+7002_daily_bin1157.fits outfile=/scratch/kocevski/650475/cmap_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650475/ft1_filtered_4FGL_J1330.2+7002_daily_bin1157.fits scfile=/scratch/kocevski/650475/ft2_4FGL_J1330.2+7002_daily_bin1157.fits outfile=/scratch/kocevski/650475/cmap_HighResolution_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9467       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    255.35       1.0000         .10000E-03   10000.    
     7 'norm      '    11.693       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40787E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23603       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45444E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    68.574       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .56267       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1614       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3405.049     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     2896 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.167       -.86829E-05** at limit **
   2  Prefactor     2.9463        3.5119       -.83762E-06   -.83773E-04
   3  Prefactor     22.992        1.0520       -.12964E-06    .47864E-03
   4  Prefactor     38.129        1.1673       -.15816E-06    .11024E-02
   5  Prefactor     .10333E-03    35.248        .10864E-04** at limit **
   6  Prefactor     255.35        1.0078        .64587E-08   -.25699E-03
   7  norm          11.692        6.5947       -.71095E-06   -.21176E-03
   8  norm          .10000E-03    2.5069        .29277E-05** at limit **
   9  Prefactor     38.169        6.8038       -.14527E-05    .84929E-02
  10  Prefactor     .23557E-03    21.161        .56166E-05** at limit **
  11  Prefactor     .10028E-03    20.870       -.24753E-05** at limit **
  12  Prefactor     .10028E-03    11.597        .11738E-04** at limit **
  13  Prefactor     37.073        1.2671        .82600E-07    .28467E-02
  14  Prefactor     .10000E-03    11.478       -.94821E-06** at limit **
  15  Prefactor     .10007E-03    21.336       -.38113E-05** at limit **
  16  Prefactor     10.079        6.8537       -.50131E-05   -.12976E-01
  17  Prefactor     .10528E-03    820.45       -.15328E-04** at limit **
  18  Prefactor     .10014E-03    14.172        .16006E-04** at limit **
  19  Prefactor     .11653E-03    2.3857        .26314E-05** at limit **
  20  Prefactor     .10008E-03    9.6377       -.72887E-05** at limit **
  21  Prefactor     .10070E-03    92.924        .45310E-04** at limit **
  22  Prefactor     .10011E-03    9.7686       -.75101E-05** at limit **
  23  Prefactor     68.576        1.1311        .12559E-06   -.11455E-02
  24  Prefactor     .10047E-03    11.468       -.87519E-05** at limit **
  25  Prefactor     .10075E-03    17.534       -.15180E-05** at limit **
  26  Prefactor     .10010E-03    21.802        .20745E-05** at limit **
  27  Normalizat    .56280        .23294        .21623E-05   -.25571E-04
  28  Prefactor     1.1617        .23844       -.81593E-05   -.51240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.94632
  Prefactor  = 22.9918
  Prefactor  = 38.1294
  Prefactor  = 0.000103327
  Prefactor  = 255.352
  norm       = 11.6921
  norm       = 0.0001
  Prefactor  = 38.1689
  Prefactor  = 0.000235571
  Prefactor  = 0.000100279
  Prefactor  = 0.000100281
  Prefactor  = 37.0732
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  Prefactor  = 10.0787
  Prefactor  = 0.000105284
  Prefactor  = 0.000100144
  Prefactor  = 0.000116527
  Prefactor  = 0.000100085
  Prefactor  = 0.000100704
  Prefactor  = 0.000100108
  Prefactor  = 68.5764
  Prefactor  = 0.000100472
  Prefactor  = 0.000100747
  Prefactor  = 0.000100102
  Normalizat = 0.562801
  Prefactor  = 1.1617
 **********
 **   18 **HESSE 
 **********

 FCN=   3405.049     FROM HESSE     STATUS=OK           573 CALLS     3469 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9463        3.5172        .59148E-02   -1.5365    
   3  Prefactor     22.992        63.001        .20884E-02   -1.4749    
   4  Prefactor     38.129        75.180        .16229E-02   -1.4472    
   5  Prefactor     .10333E-03    66.347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     255.35        189.47        .63394E-03   -1.2498    
   7  norm          11.692        6.6217        .29288E-02   -1.5024    
   8  norm          .10000E-03    2.4463        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.169        88.972        .16203E-02   -1.4472    
  10  Prefactor     .23557E-03    394.95        .97351E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10028E-03    45.423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10028E-03    27.425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.073        11.000        .16459E-02   -1.4489    
  14  Prefactor     .10000E-03    11.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10007E-03    21.467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.079        9.6536        .31555E-02   -1.5073    
  17  Prefactor     .10528E-03    28.069        .10141       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10014E-03    26.882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11653E-03    423.48        .10602E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10008E-03    31.731        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10070E-03    100.67        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10011E-03    31.736        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     68.576        69.573        .12118E-02   -1.4050    
  24  Prefactor     .10047E-03    33.045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10075E-03    46.261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10010E-03    56.179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .56280        .21938        .64541E-01   -1.0959    
  28  Prefactor     1.1617        .21918        .35613E-01   -.87518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16311e-06
Minuit parameter uncertainties:
  1  7.1697e-05
  2  3.51743
  3  63.1843
  4  75.3681
  5  0.0297479
  6  189.931
  7  6.62209
  8  1.28485e-05
  9  89.2841
  10  0.465891
  11  0.00712259
  12  0.0055579
  13  11.0002
  14  1.87493e-05
  15  0.00253404
  16  9.65513
  17  0.0243681
  18  0.00393649
  19  0.168521
  20  0.00327803
  21  0.0168594
  22  0.00371002
  23  69.6559
  24  0.00790514
  25  0.0117695
  26  0.00478827
  27  0.219723
  28  0.219352
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.003e-04  5.558e-03  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.162e+00  2.194e-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:  5.628e-01  2.197e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650475/likelihoodResults_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.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) = 3405.04898517
delta logL = -0.000173230537257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3405.04881269
delta logL = -7.49828814151e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1057       1.0000          .0000       10.000    
     3 'Normalizat'    .56280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1617       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=   3405.049     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      269 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    86.884        .18142E-02** at limit **
   2  Index         2.0354        5.2973        .50000        .17339E-04
   3  Normalizat    .56280        .97560E-02    .28561E-03   -.48063E-03
   4  Prefactor     1.1617        .10065E-01    .20965E-03   -.69145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101733
  Index      = 2.03539
  Normalizat = 0.5628
  Prefactor  = 1.16169
 **********
 **   18 **HESSE 
 **********

 FCN=   3405.049     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    378.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0354        7.1047        .50000       -.63468    
   3  Normalizat    .56280        .20726E-01    .57121E-04   -1.0959    
   4  Prefactor     1.1617        .21384E-01    .41930E-04   -.87518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.76603e-09
Minuit parameter uncertainties:
  1  0.0515386
  2  264.087
  3  0.0207268
  4  0.0213837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650475': 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) = 3405.04881223
delta logL = -2.92564436677e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  1.162e+00  2.138e-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:  5.628e-01  2.073e-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/650475/cmap_HighResolution_539222401_539481601_4FGL_J1330.2+7002_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.59e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-07 22:06:08.098772', job_id='650475', GAL2='1.16', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1631077568.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-2.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1157' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 22:06:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 650475: <4FGL_J1330.2+7002_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1157> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 21:50:42 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:52:28 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:52:28 2021
Terminated at Tue Sep  7 22:06:08 2021
Results reported at Tue Sep  7 22:06:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1157 202.573 70.0406 539222401 539481601 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 :                                   654.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            926 sec.

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

