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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1492
RA = 202.693, Dec = 29.5536
tmin = 626054401, tmax = 626313601
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='725704', job_status='RUN', time_executed='2021-09-08 00:58:56.896813', time_epoch_executed='1631087936.9' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725704

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725704/ft1_4FGL_J1330.7+2933_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725704/ft2_4FGL_J1330.7+2933_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725704/ft1_4FGL_J1330.7+2933_daily_bin1492.fits outfile=/scratch/kocevski/725704/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1492.fits ra=202.693 dec=29.5536 rad=12.0 tmin=626054401.0 tmax=626313601.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 4.13
user 3.86
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725704/ft1_filtered_4FGL_J1330.7+2933_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/725704/ft2_4FGL_J1330.7+2933_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/725704/ltcube_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.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/725704/ft2_4FGL_J1330.7+2933_daily_bin1492.fits
.....................!
real 16.96
user 16.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725704/ft1_filtered_4FGL_J1330.7+2933_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/725704/ft2_4FGL_J1330.7+2933_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/725704/ltcube_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.fits outfile=/scratch/kocevski/725704/expmap_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.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/725704/ltcube_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.fits
.....................!
real 194.68
user 188.67
sys 5.32

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/725704/ft1_filtered_4FGL_J1330.7+2933_daily_bin1492.fits scfile=/scratch/kocevski/725704/ft2_4FGL_J1330.7+2933_daily_bin1492.fits outfile=/scratch/kocevski/725704/cmap_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.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.79
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725704/ft1_filtered_4FGL_J1330.7+2933_daily_bin1492.fits scfile=/scratch/kocevski/725704/ft2_4FGL_J1330.7+2933_daily_bin1492.fits outfile=/scratch/kocevski/725704/cmap_HighResolution_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.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.80
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725704/ft1_filtered_4FGL_J1330.7+2933_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/725704/ft2_4FGL_J1330.7+2933_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725704/Model_4FGL_J1330.7+2933_daily_bin1492.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/725704/ft1_filtered_4FGL_J1330.7+2933_daily_bin1492.fits.....................!
real 51.75
user 48.59
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .97347E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3845       1.0000         .10000E-03   10000.    
     5 'norm      '    16.450       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.5267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11687E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.7951       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7764       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.453       1.0000         .10000E-03   10000.    
    15 'norm      '    10.928       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0346       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8114       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6468       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2447       1.0000         .10000E-03   10000.    
    23 'norm      '    1.0459       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.660       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95269       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0732       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=   5886.123     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3110 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3207       -.71835E-06** at limit **
   2  Prefactor     36.262        44.123       -.10893E-04   -.53279E-04
   3  Prefactor     .10000E-03    5.8843       -.14055E-06** at limit **
   4  Prefactor     2.3843        4.2952       -.53437E-06   -.98153E-04
   5  norm          16.446        5.8827        .37321E-06    .23604E-04
   6  Prefactor     .10000E-03    49.272       -.28856E-06** at limit **
   7  norm          4.5280        3.6198       -.54493E-07   -.16647E-04
   8  Prefactor     .10000E-03    16.109        .10966E-05** at limit **
   9  norm          .10000E-03    3.9688        .13361E-06** at limit **
  10  norm          6.7864        7.1639        .22170E-06   -.38235E-04
  11  norm          2.7851        9.4423       -.64599E-06   -.71751E-04
  12  norm          .10000E-03    8.0660        .37211E-06** at limit **
  13  Prefactor     .10000E-03    2.1707       -.76943E-07** at limit **
  14  Prefactor     10.438        15.417        .36486E-07   -.13683E-03
  15  norm          10.930        7.1594       -.17394E-06   -.20914E-03
  16  Prefactor     .10000E-03    20.655        .31093E-06** at limit **
  17  norm          3.0308        4.8100        .81522E-06   -.10462E-02
  18  Prefactor     7.8123        12.756       -.13173E-06   -.12836E-05
  19  Prefactor     .10000E-03    6.0727        .66062E-08** at limit **
  20  Prefactor     .10000E-03    17.228       -.15569E-05** at limit **
  21  Prefactor     1.6456        4.4087       -.34287E-06   -.13868E-03
  22  Prefactor     5.2435        11.557        .33621E-06   -.26217E-03
  23  norm          1.0447        6.3351       -.70025E-06   -.17218E-03
  24  Prefactor     18.659        6.2519       -.59438E-07    .38162E-04
  25  Normalizat    .95261        .17487        .11209E-06    .35659E-04
  26  Prefactor     1.0734        .19428        .24476E-06    .28873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.2616
  Prefactor  = 0.0001
  Prefactor  = 2.38427
  norm       = 16.446
  Prefactor  = 0.0001
  norm       = 4.52803
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.78643
  norm       = 2.78509
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.438
  norm       = 10.9303
  Prefactor  = 0.0001
  norm       = 3.0308
  Prefactor  = 7.81226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.64559
  Prefactor  = 5.24347
  norm       = 1.04475
  Prefactor  = 18.6594
  Normalizat = 0.952611
  Prefactor  = 1.07337
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.123     FROM HESSE     STATUS=OK           466 CALLS     3576 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.262        44.282        .66543E-04   -1.4503    
   3  Prefactor     .10000E-03    22.295        .35880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3843        4.2627        .20632E-03   -1.5399    
   5  norm          16.446        5.8853        .98750E-04   -1.4897    
   6  Prefactor     .10000E-03    49.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5280        3.6066        .12567E-03   -1.5282    
   8  Prefactor     .10000E-03    16.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.9954        .29122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.7864        7.5751        .11606E-03   -1.5187    
  11  norm          2.7851        10.006        .24423E-03   -1.5374    
  12  norm          .10000E-03    8.0900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5188        .20660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.438        15.232        .61963E-03   -1.5062    
  15  norm          10.930        7.3675        .60597E-03   -1.5047    
  16  Prefactor     .10000E-03    20.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0308        9.1453        .11647E-02   -1.5360    
  18  Prefactor     7.8123        12.745        .14347E-03   -1.5149    
  19  Prefactor     .10000E-03    6.0772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6456        4.4200        .24620E-03   -1.5451    
  22  Prefactor     5.2435        11.853        .87758E-03   -1.5250    
  23  norm          1.0447        6.6695        .36956E-03   -1.5504    
  24  Prefactor     18.659        6.2271        .92719E-04   -1.4844    
  25  Normalizat    .95261        .20850        .24042E-03   -.94635    
  26  Prefactor     1.0734        .23101        .26680E-03   -.90322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32174e-09
Minuit parameter uncertainties:
  1  4.36118e-06
  2  44.3225
  3  0.000126102
  4  4.26328
  5  5.88554
  6  5.95966e-05
  7  3.60678
  8  1.61401e-05
  9  5.57031e-05
  10  7.57613
  11  10.012
  12  2.02452e-06
  13  8.37015e-06
  14  15.2378
  15  7.36811
  16  2.3172e-06
  17  9.14956
  18  12.7495
  19  2.65874e-07
  20  1.87354e-05
  21  4.42083
  22  11.8585
  23  5.28
  24  6.22731
  25  0.208676
  26  0.231225
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  7.812e+00  1.275e+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:  1.073e+00  2.312e-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:  9.526e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/725704/likelihoodResults_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.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) = 5886.12138142
delta logL = 0.00116884457657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5886.12086922
delta logL = 0.00168104241948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3843       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5328       1.0000          .0000       10.000    
     3 'Normalizat'    .95040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0746       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=   5886.121     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      250 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3790        15.741        .14759E-03   -.17516E-03
   2  Index         2.5380        1.6588        .11345E-01   -.62498E-04
   3  Normalizat    .95035        .19932        .24067E-03   -.13616E-02
   4  Prefactor     1.0750        .22943        .26662E-03   -.12753E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.37899
  Index      = 2.53804
  Normalizat = 0.95035
  Prefactor  = 1.07501
 **********
 **   18 **HESSE 
 **********

 FCN=   5886.121     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3790        14.500        .59038E-05   -1.5165    
   2  Index         2.5380        1.5304        .45378E-03   -.51484    
   3  Normalizat    .95035        .19869        .48134E-04   -.94713    
   4  Prefactor     1.0750        .22912        .53325E-04   -.90269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29342e-09
Minuit parameter uncertainties:
  1  14.5065
  2  1.56383
  3  0.198844
  4  0.229333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725704': 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) = 5886.12085452
delta logL = 0.00169574898882

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  7.379e+00  1.451e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.538e+00  1.564e+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:  1.075e+00  2.293e-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:  9.504e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
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/725704/cmap_HighResolution_626054401_626313601_4FGL_J1330.7+2933_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-08 01:11:22.036988', job_id='725704', GAL2='1.08', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631088682.04', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.70e-03', ts2='0.55', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1492' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 725704: <4FGL_J1330.7+2933_daily_bin1492> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1492> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 00:55:39 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:56:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:56:13 2021
Terminated at Wed Sep  8 01:11:22 2021
Results reported at Wed Sep  8 01:11:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1492 202.693 29.5536 626054401 626313601 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 :                                   708.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            943 sec.

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

