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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin5
RA = 202.573, Dec = 70.0406
tmin = 240624001, tmax = 240883201
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='631467', job_status='RUN', time_executed='2021-09-07 21:02:08.624150', time_epoch_executed='1631073728.62' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631467

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631467/ft1_4FGL_J1330.2+7002_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631467/ft2_4FGL_J1330.2+7002_daily_bin5.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631467/ft1_filtered_4FGL_J1330.2+7002_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/631467/ft2_4FGL_J1330.2+7002_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/631467/ltcube_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.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/631467/ft2_4FGL_J1330.2+7002_daily_bin5.fits
.....................!
real 13.12
user 12.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631467/ft1_filtered_4FGL_J1330.2+7002_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/631467/ft2_4FGL_J1330.2+7002_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/631467/ltcube_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.fits outfile=/scratch/kocevski/631467/expmap_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.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/631467/ltcube_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.fits
.....................!
real 155.28
user 150.95
sys 3.94

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/631467/ft1_filtered_4FGL_J1330.2+7002_daily_bin5.fits scfile=/scratch/kocevski/631467/ft2_4FGL_J1330.2+7002_daily_bin5.fits outfile=/scratch/kocevski/631467/cmap_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.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/631467/ft1_filtered_4FGL_J1330.2+7002_daily_bin5.fits scfile=/scratch/kocevski/631467/ft2_4FGL_J1330.2+7002_daily_bin5.fits outfile=/scratch/kocevski/631467/cmap_HighResolution_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.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.33
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    159.33       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .19647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.311       1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.007       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.7155       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6328       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.376       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    368.69       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.934       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.607       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13906E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76215       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0817       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=   5782.908     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3518 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.256        .20426E-04** at limit **
   2  Prefactor     .10000E-03    2.0539       -.45166E-07** at limit **
   3  Prefactor     .10000E-03    20.753       -.56500E-05** at limit **
   4  Prefactor     12.224        33.682       -.49745E-05   -.73823E-06
   5  Prefactor     .10000E-03    9.6126       -.60574E-05** at limit **
   6  Prefactor     159.33        105.48        .42695E-05    .24824E-04
   7  norm          .10000E-03    2.2975       -.23639E-06** at limit **
   8  norm          .19859        1.6087       -.79126E-06   -.69481E-03
   9  Prefactor     26.311        26.921        .19765E-06    .92073E-05
  10  Prefactor     74.009        73.090        .23303E-05    .15186E-04
  11  Prefactor     .10000E-03    13.624        .31116E-05** at limit **
  12  Prefactor     .10000E-03    54.778       -.63166E-05** at limit **
  13  Prefactor     6.7165        4.4768       -.23775E-05   -.17258E-03
  14  Prefactor     7.6376        15.030       -.58331E-06   -.11131E-04
  15  Prefactor     .10000E-03    5.8743        .50223E-06** at limit **
  16  Prefactor     8.9175        8.6994       -.14590E-07   -.55425E-04
  17  Prefactor     21.372        19.847       -.31857E-06    .15480E-04
  18  Prefactor     .10000E-03    16.467        .59744E-05** at limit **
  19  Prefactor     368.67        441.59       -.12630E-04    .59164E-06
  20  Prefactor     .10000E-03    23.045       -.85267E-05** at limit **
  21  Prefactor     .10000E-03    6.8993       -.15249E-05** at limit **
  22  Prefactor     11.939        30.028        .54857E-05    .58216E-05
  23  Prefactor     44.597        47.518       -.10882E-04    .14001E-04
  24  Prefactor     .10000E-03    56.067       -.95068E-05** at limit **
  25  Prefactor     .10000E-03    7.1043       -.60168E-06** at limit **
  26  Prefactor     .10000E-03    8.3877        .50229E-05** at limit **
  27  Normalizat    .76200        .16863        .59258E-06    .95239E-04
  28  Prefactor     1.0819        .16845        .11492E-05    .41815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2239
  Prefactor  = 0.0001
  Prefactor  = 159.334
  norm       = 0.0001
  norm       = 0.198589
  Prefactor  = 26.3113
  Prefactor  = 74.0092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.71651
  Prefactor  = 7.63763
  Prefactor  = 0.0001
  Prefactor  = 8.91749
  Prefactor  = 21.3722
  Prefactor  = 0.0001
  Prefactor  = 368.668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9388
  Prefactor  = 44.5968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.762001
  Prefactor  = 1.08186
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.908     FROM HESSE     STATUS=OK           517 CALLS     4035 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0652        .10642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.224        33.694        .11456E-03   -1.5009    
   5  Prefactor     .10000E-03    9.6352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     159.33        105.62        .31945E-04   -1.3177    
   7  norm          .10000E-03    2.3256        .11255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .19859        3.2931        .18820E-02   -1.5619    
   9  Prefactor     26.311        26.925        .78099E-04   -1.4682    
  10  Prefactor     74.009        73.099        .46671E-04   -1.3985    
  11  Prefactor     .10000E-03    13.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    55.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7165        4.4990        .12303E-03   -1.5190    
  14  Prefactor     7.6376        15.004        .14515E-03   -1.5155    
  15  Prefactor     .10000E-03    5.9146        .17984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9175        8.6980        .13423E-03   -1.5111    
  17  Prefactor     21.372        19.841        .86632E-04   -1.4783    
  18  Prefactor     .10000E-03    16.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     368.67        441.73        .10613E-03   -1.1844    
  20  Prefactor     .10000E-03    23.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.939        30.115        .11596E-03   -1.5017    
  23  Prefactor     44.597        47.527        .60028E-04   -1.4371    
  24  Prefactor     .10000E-03    56.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.289        .39216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.3848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76200        .19497        .24926E-03   -1.0149    
  28  Prefactor     1.0819        .19528        .22123E-03   -.90049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4118e-10
Minuit parameter uncertainties:
  1  0.000466186
  2  4.62915e-06
  3  3.68345e-05
  4  33.7467
  5  1.43623e-05
  6  105.743
  7  3.38685e-06
  8  1.61707
  9  26.9371
  10  73.1879
  11  8.75408e-07
  12  3.27737e-05
  13  4.49925
  14  15.0118
  15  7.87269e-05
  16  8.69922
  17  19.8469
  18  2.08322e-05
  19  445.875
  20  8.37246e-07
  21  3.20383e-06
  22  30.1529
  23  47.5677
  24  0.000118216
  25  2.69269e-05
  26  2.07937e-06
  27  0.195145
  28  0.195412
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  3.277e-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:  1.082e+00  1.954e-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:  7.620e-01  1.951e-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: 4.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/631467/likelihoodResults_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.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) = 5782.90817794
delta logL = -8.60416766955e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5782.90809206
delta logL = -1.59335286298e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1839       1.0000          .0000       10.000    
     3 'Normalizat'    .76200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0819       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=   5782.908     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.303        .90712E-02** at limit **
   2  Index         2.2062        5.1140        .50000       -.23769E-05
   3  Normalizat    .76200        .16573E-02    .43112E-01    .60067E-04
   4  Prefactor     1.0819        .17334E-02    .38320E-01    .46881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.20623
  Normalizat = 0.762001
  Prefactor  = 1.08186
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.908     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1302.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2062        8.8876        .50000       -.59288    
   3  Normalizat    .76200        .17506E-01    .24926E-03   -1.0149    
   4  Prefactor     1.0819        .18317E-01    .22123E-03   -.90049    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13676e-07
Minuit parameter uncertainties:
  1  0.00417307
  2  537.81
  3  0.0175065
  4  0.0183168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631467': 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) = 5782.90809169
delta logL = 2.09367499338e-07

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  4.173e-03  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  2.206e+00  5.378e+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.082e+00  1.832e-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:  7.620e-01  1.751e-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/631467/cmap_HighResolution_240624001_240883201_4FGL_J1330.2+7002_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2021-09-07 21:14:35.695872', job_id='631467', GAL2='1.08', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631074475.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.09e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='5' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 631467: <4FGL_J1330.2+7002_daily_bin5> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin5> 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) <bullet0071>, 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_bin5 202.573 70.0406 240624001 240883201 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 :                                   745.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            852 sec.

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

