/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 9 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 = 7389
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin386
RA = 202.693, Dec = 29.5536
tmin = 339379201, tmax = 339638401
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='708726', job_status='RUN', time_executed='2021-09-07 23:56:15.672514', time_epoch_executed='1631084175.67' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='386'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708726

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708726/ft1_4FGL_J1330.7+2933_daily_bin386.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708726/ft1_4FGL_J1330.7+2933_daily_bin386.fits outfile=/scratch/kocevski/708726/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin386.fits ra=202.693 dec=29.5536 rad=12.0 tmin=339379201.0 tmax=339638401.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.96
user 5.66
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708726/ft1_filtered_4FGL_J1330.7+2933_daily_bin386.fits" evtable="EVENTS" scfile=/scratch/kocevski/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits sctable="SC_DATA" outfile=/scratch/kocevski/708726/ltcube_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.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/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits
.....................!
real 14.40
user 14.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708726/ft1_filtered_4FGL_J1330.7+2933_daily_bin386.fits evtable="EVENTS" scfile=/scratch/kocevski/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits sctable="SC_DATA" expcube=/scratch/kocevski/708726/ltcube_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.fits outfile=/scratch/kocevski/708726/expmap_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.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/708726/ltcube_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.fits
.....................!
real 192.42
user 186.73
sys 5.25

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/708726/ft1_filtered_4FGL_J1330.7+2933_daily_bin386.fits scfile=/scratch/kocevski/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits outfile=/scratch/kocevski/708726/cmap_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708726/ft1_filtered_4FGL_J1330.7+2933_daily_bin386.fits scfile=/scratch/kocevski/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits outfile=/scratch/kocevski/708726/cmap_HighResolution_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.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.57
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/708726/ft1_filtered_4FGL_J1330.7+2933_daily_bin386.fits', '/scratch/kocevski/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits', expMap='/scratch/kocevski/708726/expmap_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.fits', expCube='/scratch/kocevski/708726/ltcube_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/708726/Model_4FGL_J1330.7+2933_daily_bin386.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/708726/ft1_filtered_4FGL_J1330.7+2933_daily_bin386.fits
Spacecraft file(s): /scratch/kocevski/708726/ft2_4FGL_J1330.7+2933_daily_bin386.fits
Exposure map: /scratch/kocevski/708726/expmap_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.fits
Exposure cube: /scratch/kocevski/708726/ltcube_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/708726/Model_4FGL_J1330.7+2933_daily_bin386.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) = 5973.1417327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.659       1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.3110       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12256E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.9037       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .48079       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    35.344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.207       1.0000         .10000E-03   10000.    
    17 'norm      '    .55867E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.908       1.0000         .10000E-03   10000.    
    23 'norm      '    5.7769       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8390       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2710       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91394       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=   5973.140     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3976 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.660        17.522        .11240E-06    .25729E-06
   2  Prefactor     66.322        68.122        .30907E-06    .10955E-04
   3  Prefactor     11.694        7.8228       -.58932E-07    .17631E-04
   4  Prefactor     .10000E-03    2.0529        .57437E-08** at limit **
   5  norm          6.3391        5.4204       -.80310E-06    .23727E-04
   6  Prefactor     .10000E-03    7.8347       -.10153E-05** at limit **
   7  norm          5.3109        3.5253       -.97034E-07    .11665E-03
   8  Prefactor     .10000E-03    9.0891        .20793E-06** at limit **
   9  norm          .10000E-03    4.0216        .10475E-06** at limit **
  10  norm          5.9012        4.5899        .52192E-06   -.19385E-04
  11  norm          .10000E-03    4.7623       -.93224E-07** at limit **
  12  norm          .10000E-03    7.0820       -.40426E-07** at limit **
  13  Prefactor     .48195        3.0371       -.66456E-06   -.43799E-03
  14  Prefactor     .10000E-03    7.9247        .93519E-06** at limit **
  15  norm          35.354        10.884        .33079E-05   -.62228E-04
  16  Prefactor     40.201        57.658       -.57808E-05    .10218E-03
  17  norm          .10002E-03    5.4251       -.24046E-05** at limit **
  18  Prefactor     22.672        25.280       -.33740E-06    .64108E-04
  19  Prefactor     .10000E-03    22.252       -.55358E-06** at limit **
  20  Prefactor     .10000E-03    74.634        .56705E-05** at limit **
  21  Prefactor     .10000E-03    1.9373       -.25088E-08** at limit **
  22  Prefactor     37.907        27.404       -.33866E-06   -.39829E-04
  23  norm          5.7769        5.2717       -.45314E-06    .25998E-05
  24  Prefactor     4.8390        3.7622        .16767E-07   -.27492E-04
  25  Normalizat    1.2709        .20339       -.13658E-07    .31088E-03
  26  Prefactor     .91399        .21542       -.28318E-06    .20586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.66
  Prefactor  = 66.3224
  Prefactor  = 11.6937
  Prefactor  = 0.0001
  norm       = 6.33911
  Prefactor  = 0.0001
  norm       = 5.31089
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 5.90115
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.481955
  Prefactor  = 0.0001
  norm       = 35.354
  Prefactor  = 40.2011
  norm       = 0.000100022
  Prefactor  = 22.6721
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 37.9067
  norm       = 5.77694
  Prefactor  = 4.83902
  Normalizat = 1.27095
  Prefactor  = 0.91399
 **********
 **   18 **HESSE 
 **********

 FCN=   5973.140     FROM HESSE     STATUS=OK           468 CALLS     4444 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.660        17.520        .88121E-04   -1.4799    
   2  Prefactor     66.322        68.113        .49282E-04   -1.4077    
   3  Prefactor     11.694        7.8224        .11715E-03   -1.5024    
   4  Prefactor     .10000E-03    2.0592        .10814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3391        5.4248        .15589E-03   -1.5204    
   6  Prefactor     .10000E-03    7.8278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3109        3.5269        .11457E-03   -1.5247    
   8  Prefactor     .10000E-03    9.1200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.222        .29568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9012        4.5194        .13272E-03   -1.5222    
  11  norm          .10000E-03    4.7826        .16408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.0859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .48195        5.3892        .23810E-02   -1.5569    
  14  Prefactor     .10000E-03    7.9404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          35.354        11.165        .67408E-04   -1.4518    
  16  Prefactor     40.201        56.931        .63215E-04   -1.4439    
  17  norm          .10002E-03    8.5620        .61966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.672        25.446        .84118E-04   -1.4755    
  19  Prefactor     .10000E-03    22.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    74.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9510        .10501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     37.907        27.465        .32548E-03   -1.4476    
  23  norm          5.7769        5.2785        .16435E-03   -1.5227    
  24  Prefactor     4.8390        3.7625        .12821E-03   -1.5268    
  25  Normalizat    1.2709        .24727        .24704E-03   -.84438    
  26  Prefactor     .91399        .26027        .31288E-03   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79427e-10
Minuit parameter uncertainties:
  1  17.5245
  2  68.1935
  3  7.82309
  4  1.0897e-06
  5  5.42521
  6  3.94223e-05
  7  3.52701
  8  3.04093e-06
  9  0.000396307
  10  4.51971
  11  1.16682e-05
  12  2.03509e-05
  13  3.2233
  14  1.02373e-05
  15  11.1661
  16  57.0082
  17  0.000866141
  18  25.4585
  19  1.955e-05
  20  0.000463016
  21  1.73662e-06
  22  27.4743
  23  5.27894
  24  3.76266
  25  0.247504
  26  0.26062
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.267e+01  2.546e+01  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:  9.140e-01  2.606e-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.271e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/708726/likelihoodResults_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.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) = 5972.27022186
delta logL = 0.870164424801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5972.246606
delta logL = 0.893780282904

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6847       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6674       1.0000          .0000       10.000    
     3 'Normalizat'    1.1832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98243       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5972.247     FROM MIGRAD    STATUS=FAILED        82 CALLS      290 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6866        112.79        .11299E-03    .39990E-02
   2  Index         3.6675        3.9176        .41703E-02    .10633E-02
   3  Normalizat    1.1833        .23868        .25446E-03    .11517E-02
   4  Prefactor     .98243        .26412        .30311E-03    .79412E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5972.247     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      381 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6866        112.79        .18706E-03    .39990E-02
   2  Index         3.6675        3.9176        .90949E-03    .10633E-02
   3  Normalizat    1.1833        .23868        .11126E-03    .11517E-02
   4  Prefactor     .98243        .26412        .12001E-03    .79412E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5972.247     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      412 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6870        13.203        .45195E-05    .72446E-04
   2  Index         3.6674        1.1774        .16681E-03    .15811E-04
   3  Normalizat    1.1833        .24885        .50893E-04   -.72823E-05
   4  Prefactor     .98243        .26559        .60623E-04   -.44633E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68695
  Index      = 3.6674
  Normalizat = 1.18326
  Prefactor  = 0.982431
 **********
 **   18 **HESSE 
 **********

 FCN=   5972.247     FROM HESSE     STATUS=OK            23 CALLS      435 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6870        12.851        .90389E-06   -1.5231    
   2  Index         3.6674        1.1465        .66725E-05   -.26978    
   3  Normalizat    1.1833        .24886        .10179E-04   -.87122    
   4  Prefactor     .98243        .26554        .12125E-04   -.93317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68929e-12
Minuit parameter uncertainties:
  1  12.8576
  2  1.15762
  3  0.249109
  4  0.265897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708726': 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) = 5972.24660577
delta logL = 0.893780520812

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.687e+00  1.286e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.667e+00  1.158e+00  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:  9.824e-01  2.659e-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.183e+00  2.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 202.693 29.554
Photon Index (Free Index): 3.67 +/- 1.16
Photon Flux (Free Index): 1.15e-07 +/- 7.87e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.27e-05

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/708726/cmap_HighResolution_339379201_339638401_4FGL_J1330.7+2933_daily_bin386.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='8.94e-01', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-08 00:09:14.724489', photon_index_error2='1.16', photon_index2='3.67', ts='0.96', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.27e-05', EG='1.27', time_epoch_completed='1631084954.72', return_code='0', job_id='708726', GAL2='0.98', EG2='1.18', return_code2='0', photon_flux_error2='7.87e-08', ts2='2.94', photon_index='2.45' WHERE bin_id='386' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:09:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 708726: <4FGL_J1330.7+2933_daily_bin386> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin386> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 23:55:27 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:55:59 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:55:59 2021
Terminated at Wed Sep  8 00:09:15 2021
Results reported at Wed Sep  8 00:09:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin386 202.693 29.5536 339379201 339638401 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            828 sec.

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

