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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1058
RA = 202.693, Dec = 29.5536
tmin = 513561601, tmax = 513820801
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='722829', job_status='RUN', time_executed='2021-09-08 00:49:19.366058', time_epoch_executed='1631087359.37' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722829/ft1_4FGL_J1330.7+2933_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722829/ft2_4FGL_J1330.7+2933_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722829/ft1_4FGL_J1330.7+2933_daily_bin1058.fits outfile=/scratch/kocevski/722829/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1058.fits ra=202.693 dec=29.5536 rad=12.0 tmin=513561601.0 tmax=513820801.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.76
user 3.49
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722829/ft1_filtered_4FGL_J1330.7+2933_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/722829/ft2_4FGL_J1330.7+2933_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/722829/ltcube_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.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/722829/ft2_4FGL_J1330.7+2933_daily_bin1058.fits
.....................!
real 17.04
user 16.51
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722829/ft1_filtered_4FGL_J1330.7+2933_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/722829/ft2_4FGL_J1330.7+2933_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/722829/ltcube_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.fits outfile=/scratch/kocevski/722829/expmap_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.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/722829/ltcube_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.fits
.....................!
real 194.53
user 188.48
sys 5.17

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/722829/ft1_filtered_4FGL_J1330.7+2933_daily_bin1058.fits scfile=/scratch/kocevski/722829/ft2_4FGL_J1330.7+2933_daily_bin1058.fits outfile=/scratch/kocevski/722829/cmap_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722829/ft1_filtered_4FGL_J1330.7+2933_daily_bin1058.fits scfile=/scratch/kocevski/722829/ft2_4FGL_J1330.7+2933_daily_bin1058.fits outfile=/scratch/kocevski/722829/cmap_HighResolution_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722829/ft1_filtered_4FGL_J1330.7+2933_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/722829/ft2_4FGL_J1330.7+2933_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722829/Model_4FGL_J1330.7+2933_daily_bin1058.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/722829/ft1_filtered_4FGL_J1330.7+2933_daily_bin1058.fits.....................!
real 48.32
user 46.25
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    69.153       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.7667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.848       1.0000         .10000E-03   10000.    
     7 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4942       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.811       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7778       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    14.713       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .96088E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95487       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=   5644.404     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3090 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.420       -.14524E-06** at limit **
   2  Prefactor     69.129        67.186        .26887E-06   -.23407E-04
   3  Prefactor     5.7658        6.0730        .21837E-05    .91646E-03
   4  Prefactor     .10000E-03    2.9465       -.89610E-07** at limit **
   5  norm          2.8372        4.2612        .34181E-06    .12961E-03
   6  Prefactor     12.863        25.671        .97093E-06    .19840E-04
   7  norm          .10000E-03    1.6559       -.75220E-06** at limit **
   8  Prefactor     .10000E-03    19.102       -.12483E-06** at limit **
   9  norm          .10000E-03    1.4611       -.24683E-08** at limit **
  10  norm          .10000E-03    1.3580       -.87159E-07** at limit **
  11  norm          .10000E-03    1.8766       -.51167E-07** at limit **
  12  norm          .10000E-03    5.5459       -.86113E-07** at limit **
  13  Prefactor     9.0416        5.8612        .42820E-06    .17206E-03
  14  Prefactor     9.4939        20.764        .59621E-06    .37184E-04
  15  norm          .10000E-03    2.0906       -.10993E-06** at limit **
  16  Prefactor     .10000E-03    48.541        .38406E-06** at limit **
  17  norm          7.9589        8.7683        .28868E-06    .93364E-04
  18  Prefactor     1.9048        51.441        .28006E-05    .12328E-04
  19  Prefactor     .10000E-03    7.2328       -.93729E-07** at limit **
  20  Prefactor     26.965        75.488        .43825E-05    .77014E-04
  21  Prefactor     1.7793        4.7049        .17523E-05    .34077E-03
  22  Prefactor     .10000E-03    7.6426       -.27348E-06** at limit **
  23  norm          14.712        7.9395        .42573E-06    .51961E-03
  24  Prefactor     .10014E-03    3.2906       -.14891E-05** at limit **
  25  Normalizat    1.1402        .22551       -.82157E-05    .54539E-03
  26  Prefactor     .95555        .22649        .88922E-05    .27231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 69.1289
  Prefactor  = 5.7658
  Prefactor  = 0.0001
  norm       = 2.83716
  Prefactor  = 12.8634
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.04163
  Prefactor  = 9.4939
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.95891
  Prefactor  = 1.90484
  Prefactor  = 0.0001
  Prefactor  = 26.9654
  Prefactor  = 1.77927
  Prefactor  = 0.0001
  norm       = 14.712
  Prefactor  = 0.000100145
  Normalizat = 1.14018
  Prefactor  = 0.95555
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.404     FROM HESSE     STATUS=OK           454 CALLS     3544 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     69.129        67.144        .24135E-03   -1.4043    
   3  Prefactor     5.7658        6.2900        .83627E-03   -1.5228    
   4  Prefactor     .10000E-03    2.9609        .12593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8372        4.2259        .17427E-03   -1.5371    
   6  Prefactor     12.863        25.546        .11175E-03   -1.4991    
   7  norm          .10000E-03    2.7238        .18690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4624        .88676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3622        .85446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8798        .10051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.5479        .17280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0416        5.8362        .11516E-03   -1.5106    
  14  Prefactor     9.4939        20.663        .13006E-03   -1.5092    
  15  norm          .10000E-03    2.0943        .10602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9589        8.7560        .14213E-03   -1.5144    
  18  Prefactor     1.9048        50.841        .30227E-03   -1.5432    
  19  Prefactor     .10000E-03    7.2369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.965        75.574        .77369E-04   -1.4669    
  21  Prefactor     1.7793        4.6636        .24709E-03   -1.5441    
  22  Prefactor     .10000E-03    7.6788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          14.712        7.8404        .10442E-03   -1.4941    
  24  Prefactor     .10014E-03    21.666        .24432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1402        .23033        .23493E-03   -.88472    
  26  Prefactor     .95555        .23382        .27750E-03   -.94226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63456e-09
Minuit parameter uncertainties:
  1  1.5057e-05
  2  67.2174
  3  6.29073
  4  2.28146e-06
  5  4.22631
  6  25.5681
  7  9.20954e-06
  8  1.72338e-05
  9  2.93398e-07
  10  3.57588e-06
  11  3.63845e-06
  12  4.57333e-06
  13  5.83653
  14  20.6782
  15  4.7475e-06
  16  7.10652e-05
  17  8.75744
  18  19.7
  19  1.75837e-05
  20  75.8445
  21  4.66454
  22  5.50352e-06
  23  7.84096
  24  0.00354208
  25  0.230534
  26  0.234063
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.905e+00  1.970e+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.556e-01  2.341e-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.140e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722829/likelihoodResults_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.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) = 5644.19792539
delta logL = 0.206038962527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5644.18223788
delta logL = 0.221726474719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0680       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6614       1.0000          .0000       10.000    
     3 'Normalizat'    1.0985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98157       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.

 FCN=   5644.182     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      254 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0710        92.801        .71823E-02    .69991E-03
   2  Index         3.6586        6.7300        .14027        .11548E-03
   3  Normalizat    1.0985        .45981E-01    .38061E-01    .37091E-05
   4  Prefactor     .98180        .49827E-01    .46036E-01    .11009E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.07102
  Index      = 3.65862
  Normalizat = 1.09855
  Prefactor  = 0.981802
 **********
 **   18 **HESSE 
 **********

 FCN=   5644.182     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0710        232.45        .15753E-03   -1.5420    
   2  Index         3.6586        5.8460        .82910E-02   -.27160    
   3  Normalizat    1.0985        .20317        .23859E-03   -.89798    
   4  Prefactor     .98180        .22143        .27414E-03   -.93339    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05665e-06
Minuit parameter uncertainties:
  1  44.0571
  2  10.6839
  3  0.203319
  4  0.22163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722829': 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) = 5644.18223203
delta logL = 0.221732330183

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.071e+00  4.406e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.659e+00  1.068e+01  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.818e-01  2.216e-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.099e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/722829/cmap_HighResolution_513561601_513820801_4FGL_J1330.7+2933_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-08 01:00:47.927840', job_id='722829', GAL2='0.98', fit_tolerance='1e-08', EG2='1.10', EG='1.14', time_epoch_completed='1631088047.93', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.22e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1058' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:00:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 722829: <4FGL_J1330.7+2933_daily_bin1058> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1058> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:33 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:35 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:45:35 2021
Terminated at Wed Sep  8 01:00:48 2021
Results reported at Wed Sep  8 01:00:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1058 202.693 29.5536 513561601 513820801 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 :                                   670.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             263.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            915 sec.

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

