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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1156
RA = 202.573, Dec = 70.0406
tmin = 538963201, tmax = 539222401
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='650472', job_status='RUN', time_executed='2021-09-07 21:52:38.825243', time_epoch_executed='1631076758.83' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650472/ft1_4FGL_J1330.2+7002_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650472/ft2_4FGL_J1330.2+7002_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650472/ft1_4FGL_J1330.2+7002_daily_bin1156.fits outfile=/scratch/kocevski/650472/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1156.fits ra=202.573 dec=70.0406 rad=12.0 tmin=538963201.0 tmax=539222401.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 3.87
user 3.60
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650472/ft1_filtered_4FGL_J1330.2+7002_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/650472/ft2_4FGL_J1330.2+7002_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/650472/ltcube_538963201_539222401_4FGL_J1330.2+7002_daily_bin1156.fits outfile=/scratch/kocevski/650472/expmap_538963201_539222401_4FGL_J1330.2+7002_daily_bin1156.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/650472/ltcube_538963201_539222401_4FGL_J1330.2+7002_daily_bin1156.fits
.....................!
real 157.27
user 153.12
sys 3.58

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/650472/ft1_filtered_4FGL_J1330.2+7002_daily_bin1156.fits scfile=/scratch/kocevski/650472/ft2_4FGL_J1330.2+7002_daily_bin1156.fits outfile=/scratch/kocevski/650472/cmap_538963201_539222401_4FGL_J1330.2+7002_daily_bin1156.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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650472/ft1_filtered_4FGL_J1330.2+7002_daily_bin1156.fits scfile=/scratch/kocevski/650472/ft2_4FGL_J1330.2+7002_daily_bin1156.fits outfile=/scratch/kocevski/650472/cmap_HighResolution_538963201_539222401_4FGL_J1330.2+7002_daily_bin1156.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.51
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.664       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.540       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4619       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3184       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.224       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0482       1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.883       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    59.832       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1283       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .55404       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=   4536.060     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3441 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.812       -.10809E-05** at limit **
   2  Prefactor     .10000E-03    1.3785       -.23980E-07** at limit **
   3  Prefactor     .10000E-03    22.533        .10244E-05** at limit **
   4  Prefactor     .10000E-03    16.213        .14464E-05** at limit **
   5  Prefactor     28.829        22.455        .77641E-07   -.67441E-04
   6  Prefactor     .10000E-03    52.576        .14619E-05** at limit **
   7  norm          13.664        6.3156        .17563E-06    .16461E-04
   8  norm          .10000E-03    .88528       -.72830E-08** at limit **
   9  Prefactor     .10000E-03    17.964       -.41247E-06** at limit **
  10  Prefactor     25.540        73.359       -.36654E-05   -.47503E-04
  11  Prefactor     .10000E-03    14.645       -.52216E-06** at limit **
  12  Prefactor     24.277        42.030        .11599E-05   -.22426E-06
  13  Prefactor     .10000E-03    8.5521        .31021E-06** at limit **
  14  Prefactor     49.549        27.339       -.11688E-05   -.15363E-03
  15  Prefactor     1.4643        23.375        .17059E-04   -.49913E-04
  16  Prefactor     5.7059        8.3923        .12920E-05    .25760E-04
  17  Prefactor     5.3174        19.841        .26214E-05    .49953E-04
  18  Prefactor     18.225        47.021       -.49927E-05   -.44159E-04
  19  Prefactor     .10000E-03    232.45        .13708E-05** at limit **
  20  Prefactor     .10000E-03    21.583       -.31211E-06** at limit **
  21  Prefactor     .10000E-03    6.1494        .42937E-09** at limit **
  22  Prefactor     7.0466        27.635        .57454E-06    .54535E-06
  23  Prefactor     51.896        42.078        .16106E-07    .38231E-04
  24  Prefactor     .10000E-03    54.987       -.15758E-05** at limit **
  25  Prefactor     .10000E-03    5.7805        .19731E-07** at limit **
  26  Prefactor     59.835        38.000        .10458E-06   -.47880E-05
  27  Normalizat    1.1283        .17722       -.20634E-05   -.41206E-04
  28  Prefactor     .55406        .16277        .10443E-05   -.16064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8288
  Prefactor  = 0.0001
  norm       = 13.6638
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5405
  Prefactor  = 0.0001
  Prefactor  = 24.2774
  Prefactor  = 0.0001
  Prefactor  = 49.5493
  Prefactor  = 1.46426
  Prefactor  = 5.70589
  Prefactor  = 5.31737
  Prefactor  = 18.2246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.04658
  Prefactor  = 51.8963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.8349
  Normalizat = 1.12829
  Prefactor  = 0.554059
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.060     FROM HESSE     STATUS=OK           509 CALLS     3950 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3828        .77223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.829        22.488        .74619E-04   -1.4634    
   6  Prefactor     .10000E-03    52.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.664        6.3226        .10836E-03   -1.4969    
   8  norm          .10000E-03    .88854        .61879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.540        73.532        .79281E-04   -1.4697    
  11  Prefactor     .10000E-03    14.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.277        42.019        .81264E-04   -1.4722    
  13  Prefactor     .10000E-03    8.8795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.549        27.396        .56975E-04   -1.4299    
  15  Prefactor     1.4643        23.620        .17790E-02   -1.5466    
  16  Prefactor     5.7059        8.3773        .84071E-03   -1.5230    
  17  Prefactor     5.3174        19.814        .87137E-03   -1.5247    
  18  Prefactor     18.225        47.156        .93821E-04   -1.4854    
  19  Prefactor     .10000E-03    232.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.1505        .16312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0466        27.634        .15110E-03   -1.5177    
  23  Prefactor     51.896        42.065        .55680E-04   -1.4266    
  24  Prefactor     .10000E-03    55.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.7869        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     59.835        38.003        .25935E-03   -1.4159    
  27  Normalizat    1.1283        .20225        .19997E-03   -.88849    
  28  Prefactor     .55406        .18458        .26703E-03   -1.0956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20333e-10
Minuit parameter uncertainties:
  1  1.83683e-05
  2  1.86315e-06
  3  4.58071e-05
  4  5.91934e-05
  5  22.495
  6  0.000108282
  7  6.32296
  8  6.9286e-07
  9  2.15769e-05
  10  73.7946
  11  2.6578e-05
  12  42.0699
  13  3.07751e-05
  14  27.4025
  15  11.767
  16  8.379
  17  19.8384
  18  47.2521
  19  0.000256192
  20  1.34611e-05
  21  7.05299e-07
  22  27.6841
  23  42.0892
  24  1.27854e-05
  25  4.60308e-06
  26  38.0188
  27  0.202385
  28  0.184784
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  5.541e-01  1.848e-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:  1.128e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650472/likelihoodResults_538963201_539222401_4FGL_J1330.2+7002_daily_bin1156.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): 0
logL (Free Index) = 4536.05393904
delta logL = 0.00562697279111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4536.05254941
delta logL = 0.00701660348932

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.543       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8402       1.0000          .0000       10.000    
     3 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55278       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=   4536.053     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      237 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.547        47.363        .77757E-04   -.28201E-03
   2  Index         1.8400        1.0627        .12585E-01   -.13977E-03
   3  Normalizat    1.1306        .18927        .19981E-03    .26050E-03
   4  Prefactor     .55281        .18237        .26732E-03    .22812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5471
  Index      = 1.83996
  Normalizat = 1.13063
  Prefactor  = 0.552806
 **********
 **   18 **HESSE 
 **********

 FCN=   4536.053     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.547        46.259        .15551E-04   -1.4677    
   2  Index         1.8400        1.0384        .50341E-03   -.68414    
   3  Normalizat    1.1306        .18926        .39961E-04   -.88774    
   4  Prefactor     .55281        .18244        .10693E-04   -1.0961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74723e-09
Minuit parameter uncertainties:
  1  46.3215
  2  1.0512
  3  0.189372
  4  0.182638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650472': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4536.05254938
delta logL = 0.00701663956806

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.655e+01  4.632e+01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.840e+00  1.051e+00  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:  5.528e-01  1.826e-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:  1.131e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/650472/cmap_HighResolution_538963201_539222401_4FGL_J1330.2+7002_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-07 22:03:51.923990', job_id='650472', GAL2='0.55', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631077431.92', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='7.02e-03', ts2='0.58', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1156' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 22:03:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 650472: <4FGL_J1330.2+7002_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1156> 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) <bullet0095>, 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:03:52 2021
Results reported at Tue Sep  7 22:03:52 2021

Your job looked like:

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

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

