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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin56
RA = 202.693, Dec = 29.5536
tmin = 253843201, tmax = 254102401
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='704080', job_status='RUN', time_executed='2021-09-07 23:46:12.806853', time_epoch_executed='1631083572.81' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/704080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/704080/ft1_4FGL_J1330.7+2933_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/704080/ft1_4FGL_J1330.7+2933_daily_bin56.fits outfile=/scratch/kocevski/704080/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin56.fits ra=202.693 dec=29.5536 rad=12.0 tmin=253843201.0 tmax=254102401.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.48
user 1.32
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.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/704080/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/704080/ltcube_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.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/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits
.....................!
real 14.83
user 14.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/704080/ltcube_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.fits outfile=/scratch/kocevski/704080/expmap_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.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/704080/ltcube_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.fits
.....................!
real 194.06
user 187.76
sys 5.76

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1330.7+2933 @ 202.693 29.5536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits scfile=/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits outfile=/scratch/kocevski/704080/cmap_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.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.693 yref=29.5536 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits scfile=/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits outfile=/scratch/kocevski/704080/cmap_HighResolution_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.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.693 yref=29.5536 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/704080/Model_4FGL_J1330.7+2933_daily_bin56.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/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits.....................!
real 43.36
user 42.00
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits', '/scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits', expMap='/scratch/kocevski/704080/expmap_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.fits', expCube='/scratch/kocevski/704080/ltcube_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/704080/Model_4FGL_J1330.7+2933_daily_bin56.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.7+2933'

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.755e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/704080/ft1_filtered_4FGL_J1330.7+2933_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/704080/ft2_4FGL_J1330.7+2933_daily_bin56.fits
Exposure map: /scratch/kocevski/704080/expmap_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.fits
Exposure cube: /scratch/kocevski/704080/ltcube_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/704080/Model_4FGL_J1330.7+2933_daily_bin56.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) = 4950.4858033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55766       1.0000         .10000E-03   10000.    
     5 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.682       1.0000         .10000E-03   10000.    
     7 'norm      '    8.2868       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.034       1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3460       1.0000         .10000E-03   10000.    
    11 'norm      '    16.582       1.0000         .10000E-03   10000.    
    12 'norm      '    32.932       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.192       1.0000         .10000E-03   10000.    
    15 'norm      '    .12562E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.264       1.0000         .10000E-03   10000.    
    17 'norm      '    9.8573       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .24918       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8658       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2026       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72815       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4950.370     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3127 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3569       -.24292E-07** at limit **
   2  Prefactor     .10000E-03    35.542        .36899E-06** at limit **
   3  Prefactor     7.4463        7.0791       -.65060E-07   -.33402E-04
   4  Prefactor     .55772        6.5483       -.10657E-05   -.19898E-03
   5  norm          .10000E-03    1.7814        .35839E-06** at limit **
   6  Prefactor     44.644        32.105        .10426E-06   -.42267E-04
   7  norm          8.2858        4.7343        .10312E-07   -.12877E-03
   8  Prefactor     10.044        20.141       -.68362E-06   -.73269E-05
   9  norm          .10000E-03    5.0675        .40733E-06** at limit **
  10  norm          2.3499        8.7796        .12214E-06    .11106E-04
  11  norm          16.581        15.473       -.58652E-07   -.63890E-04
  12  norm          32.925        23.553       -.65456E-06   -.11234E-03
  13  Prefactor     .10000E-03    2.0592       -.25090E-06** at limit **
  14  Prefactor     23.185        21.045       -.11271E-06   -.56689E-04
  15  norm          .10000E-03    26.571       -.28307E-05** at limit **
  16  Prefactor     19.332        75.023        .29710E-05   -.51936E-05
  17  norm          9.8477        8.1775       -.10137E-05   -.47152E-03
  18  Prefactor     .10000E-03    7.1795        .60104E-08** at limit **
  19  Prefactor     .10000E-03    14.288        .86304E-07** at limit **
  20  Prefactor     41.057        59.640       -.67784E-06    .16229E-04
  21  Prefactor     .24158        4.9298       -.11746E-05    .24858E-03
  22  Prefactor     5.8626        15.165        .16239E-06   -.22212E-04
  23  norm          .10000E-03    1.9289        .33589E-07** at limit **
  24  Prefactor     .10000E-03    .92767        .75921E-08** at limit **
  25  Normalizat    1.2029        .21757       -.39882E-05   -.61626E-04
  26  Prefactor     .72793        .23269        .45403E-05   -.19760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44625
  Prefactor  = 0.55772
  norm       = 0.0001
  Prefactor  = 44.644
  norm       = 8.28577
  Prefactor  = 10.044
  norm       = 0.0001
  norm       = 2.34995
  norm       = 16.5808
  norm       = 32.9252
  Prefactor  = 0.0001
  Prefactor  = 23.1848
  norm       = 0.0001
  Prefactor  = 19.3324
  norm       = 9.84768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.057
  Prefactor  = 0.241582
  Prefactor  = 5.86259
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20289
  Prefactor  = 0.727926
 **********
 **   18 **HESSE 
 **********

 FCN=   4950.370     FROM HESSE     STATUS=OK           462 CALLS     3589 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3573        .17326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.4463        7.0766        .14698E-03   -1.5162    
   4  Prefactor     .55772        6.5964        .33895E-03   -1.5559    
   5  norm          .10000E-03    1.7994        .91953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     44.644        31.737        .59978E-04   -1.4371    
   7  norm          8.2858        4.7329        .11038E-03   -1.5132    
   8  Prefactor     10.044        19.846        .12650E-03   -1.5074    
   9  norm          .10000E-03    5.1652        .15439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3499        8.2115        .21046E-03   -1.5401    
  11  norm          16.581        14.713        .98357E-04   -1.4893    
  12  norm          32.925        23.490        .69826E-04   -1.4560    
  13  Prefactor     .10000E-03    2.0753        .98228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.185        20.860        .83175E-04   -1.4745    
  15  norm          .10000E-03    28.645        .27676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.332        74.774        .91254E-04   -1.4828    
  17  norm          9.8477        8.0145        .12763E-03   -1.5080    
  18  Prefactor     .10000E-03    7.1906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.057        59.707        .62499E-04   -1.4426    
  21  Prefactor     .24158        26.305        .21335E-02   -1.5610    
  22  Prefactor     5.8626        15.177        .16581E-03   -1.5224    
  23  norm          .10000E-03    1.9373        .95433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .92919        .66181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2029        .22714        .21238E-03   -.86514    
  26  Prefactor     .72793        .23807        .29817E-03   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33585e-09
Minuit parameter uncertainties:
  1  3.72065e-06
  2  3.14238e-05
  3  7.07735
  4  3.83631
  5  1.90251e-05
  6  31.7492
  7  4.7331
  8  19.8593
  9  2.42606e-05
  10  8.2154
  11  14.7167
  12  23.4964
  13  8.81019e-06
  14  20.867
  15  0.000187448
  16  75.1401
  17  8.01533
  18  9.87342e-06
  19  1.77943e-05
  20  59.7938
  21  5.04297
  22  15.1865
  23  1.38414e-06
  24  6.69924e-07
  25  0.227328
  26  0.238403
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  9.873e-06  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  7.279e-01  2.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.203e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/704080/likelihoodResults_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.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) = 4950.37061088
delta logL = -0.000661172647597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4950.36994969
delta logL = 2.16168700717e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4370       1.0000          .0000       10.000    
     3 'Normalizat'    1.2029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+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=   4950.370     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      243 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    166.47        .18142E-02** at limit **
   2  Index         2.3347        8.8182        .50000        .10571E-04
   3  Normalizat    1.2029        .21560E-01    .21238E-03   -.29977E-05
   4  Prefactor     .72793        .24236E-01    .29818E-03    .15251E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101763
  Index      = 2.33467
  Normalizat = 1.20289
  Prefactor  = 0.72793
 **********
 **   18 **HESSE 
 **********

 FCN=   4950.370     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10176E-03    652.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3347        6.1451        .50000       -.56222    
   3  Normalizat    1.2029        .47161E-01    .84952E-05   -.86514    
   4  Prefactor     .72793        .52994E-01    .11927E-04   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.55898e-08
Minuit parameter uncertainties:
  1  0.0685661
  2  1784.57
  3  0.0471628
  4  0.0529972
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/704080': 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) = 4950.3699495
delta logL = 2.13820385397e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.018e-04  6.857e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.335e+00  1.785e+03  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  7.279e-01  5.300e-02  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.203e+00  4.716e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

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/704080/cmap_HighResolution_253843201_254102401_4FGL_J1330.7+2933_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-09-07 23:56:47.581572', job_id='704080', GAL2='0.73', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631084207.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='56' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 23:56:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 704080: <4FGL_J1330.7+2933_daily_bin56> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin56> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 23:40:28 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:44:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:44:04 2021
Terminated at Tue Sep  7 23:56:48 2021
Results reported at Tue Sep  7 23:56:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin56 202.693 29.5536 253843201 254102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.7+2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            980 sec.

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

