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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin41
RA = 202.573, Dec = 70.0406
tmin = 249955201, tmax = 250214401
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='631516', job_status='RUN', time_executed='2021-09-07 21:03:53.538275', time_epoch_executed='1631073833.54' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/631516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/631516/ft1_4FGL_J1330.2+7002_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/631516/ft1_4FGL_J1330.2+7002_daily_bin41.fits outfile=/scratch/kocevski/631516/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin41.fits ra=202.573 dec=70.0406 rad=12.0 tmin=249955201.0 tmax=250214401.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.20
user 1.05
sys 0.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.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/631516/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/631516/ft1_filtered_4FGL_J1330.2+7002_daily_bin41.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.46
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/631516/ft1_filtered_4FGL_J1330.2+7002_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/631516/ltcube_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.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/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits
.....................!
real 16.19
user 15.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/631516/ft1_filtered_4FGL_J1330.2+7002_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/631516/ltcube_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits outfile=/scratch/kocevski/631516/expmap_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.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/631516/ltcube_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits
.....................!
real 157.82
user 153.29
sys 3.92

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 229 point sources and 0 extended sources

Setting source of interest to:
4FGL J1330.2+7002 @ 202.573 70.0406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/631516/ft1_filtered_4FGL_J1330.2+7002_daily_bin41.fits scfile=/scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits outfile=/scratch/kocevski/631516/cmap_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=202.573 yref=70.0406 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/631516/ft1_filtered_4FGL_J1330.2+7002_daily_bin41.fits scfile=/scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits outfile=/scratch/kocevski/631516/cmap_HighResolution_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=202.573 yref=70.0406 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.49
user 0.33
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/631516/ft1_filtered_4FGL_J1330.2+7002_daily_bin41.fits', '/scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits', expMap='/scratch/kocevski/631516/expmap_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits', expCube='/scratch/kocevski/631516/ltcube_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/631516/Model_4FGL_J1330.2+7002_daily_bin41.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.2+7002'

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


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/631516/ft1_filtered_4FGL_J1330.2+7002_daily_bin41.fits
Spacecraft file(s): /scratch/kocevski/631516/ft2_4FGL_J1330.2+7002_daily_bin41.fits
Exposure map: /scratch/kocevski/631516/expmap_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits
Exposure cube: /scratch/kocevski/631516/ltcube_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/631516/Model_4FGL_J1330.2+7002_daily_bin41.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) = 5796.23776454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    99.589       1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.6630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.657       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45305E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9750       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.6053       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.812       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    78.209       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.565       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5796.221     FROM MIGRAD    STATUS=CONVERGED   1219 CALLS     4008 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7926        .18142E-02** at limit **
   2  Prefactor     .10000E-03    1.1350        .79154E-03** at limit **
   3  Prefactor     .10000E-03    17.514        .18142E-02** at limit **
   4  Prefactor     .10000E-03    28.425        .18142E-02** at limit **
   5  Prefactor     .10000E-03    66.082        .36285E-03** at limit **
   6  Prefactor     99.582        71.271        .40284E-04    .68296E-05
   7  norm          .10000E-03    2.0269        .10535E-02** at limit **
   8  norm          4.6630        3.2767        .55853E-03   -.16507E-04
   9  Prefactor     .10000E-03    17.815        .18142E-02** at limit **
  10  Prefactor     .10000E-03    19.478        .18142E-02** at limit **
  11  Prefactor     54.654        60.496        .54256E-04   -.67890E-05
  12  Prefactor     .10002E-03    201.68        .65645E-02** at limit **
  13  Prefactor     .19703        15.385        .19983E-02   -.15612E-03
  14  Prefactor     .10000E-03    10.555        .18142E-02** at limit **
  15  Prefactor     .10000E-03    2.8932        .12631E-02** at limit **
  16  Prefactor     1.9691        11.064        .14750E-02   -.21959E-04
  17  Prefactor     7.6034        20.288        .14542E-03   -.36745E-05
  18  Prefactor     .10000E-03    32.436        .18142E-02** at limit **
  19  Prefactor     .10000E-03    132.64        .18142E-02** at limit **
  20  Prefactor     17.777        49.824        .94898E-04   -.35940E-05
  21  Prefactor     .10000E-03    5.4129        .17289E-02** at limit **
  22  Prefactor     .10000E-03    23.442        .18142E-02** at limit **
  23  Prefactor     78.185        59.875        .45409E-04   -.72604E-05
  24  Prefactor     .10000E-03    78.738        .18142E-02** at limit **
  25  Prefactor     .10000E-03    6.6050        .18142E-02** at limit **
  26  Prefactor     20.558        22.183        .88323E-04   -.71052E-05
  27  Normalizat    1.0574        .18239        .20679E-03   -.20947E-03
  28  Prefactor     .76235        .18187        .24542E-03   -.12595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 99.582
  norm       = 0.0001
  norm       = 4.663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.6538
  Prefactor  = 0.000100022
  Prefactor  = 0.197032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.96906
  Prefactor  = 7.60345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.1845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5583
  Normalizat = 1.05744
  Prefactor  = 0.762353
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.221     FROM HESSE     STATUS=OK           497 CALLS     4505 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.1350        .15831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.085        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     99.582        71.268        .80568E-05   -1.3709    
   7  norm          .10000E-03    2.0271        .21070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6630        3.2766        .22341E-04   -1.5276    
   9  Prefactor     .10000E-03    17.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.654        60.487        .10851E-04   -1.4228    
  12  Prefactor     .10002E-03    210.26        .26258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19703        15.267        .79934E-04   -1.5619    
  14  Prefactor     .10000E-03    10.557        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8932        .25261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9691        11.006        .58999E-04   -1.5427    
  17  Prefactor     7.6034        20.275        .58167E-05   -1.5156    
  18  Prefactor     .10000E-03    32.445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    132.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.777        49.829        .37959E-05   -1.4864    
  21  Prefactor     .10000E-03    5.4131        .34579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     78.185        59.864        .90819E-05   -1.3937    
  24  Prefactor     .10000E-03    78.743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.6057        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     20.558        22.182        .17665E-04   -1.4801    
  27  Normalizat    1.0574        .18142        .41359E-04   -.91130    
  28  Prefactor     .76235        .18184        .98167E-05   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01351e-10
Minuit parameter uncertainties:
  1  8.85782e-06
  2  1.44547e-06
  3  3.17163e-05
  4  3.24515e-05
  5  0.000567132
  6  71.3289
  7  5.42744e-06
  8  3.27671
  9  1.82637e-05
  10  6.28669e-06
  11  60.5554
  12  0.00428034
  13  3.46882
  14  2.32505e-05
  15  2.11243e-06
  16  9.31295
  17  20.2936
  18  4.47285e-05
  19  0.000109541
  20  49.9462
  21  4.36723e-06
  22  5.75145e-05
  23  59.9106
  24  8.67297e-05
  25  1.16571e-05
  26  22.1911
  27  0.181524
  28  0.181979
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  7.624e-01  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  1.057e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/631516/likelihoodResults_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.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) = 5796.2208515
delta logL = -2.24371224249e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5796.2208515
delta logL = -2.24359473577e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96358E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9666       1.0000          .0000       10.000    
     3 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76235       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5796.221     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      234 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    .17821        .12149    ** at limit **
   2  Index         2.0610        5.9249        .50000       -.13519E-05
   3  Normalizat    1.0574        .38591E-03    .40084E-01    .99132E-05
   4  Prefactor     .76235        .39711E-03    .43225E-01    .18409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.06103
  Normalizat = 1.05744
  Prefactor  = 0.762353
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.221     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      277 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    .21094        .11037       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0610        6.1187        .50000       -.62833    
   3  Normalizat    1.0574        .39897E-03    .20679E-03   -.91130    
   4  Prefactor     .76235        .41042E-03    .24542E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.31151e-12
Minuit parameter uncertainties:
  1  8.92509e-05
  2  9.59682
  3  0.000398967
  4  0.000410425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/631516': 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) = 5796.220829
delta logL = 5.97383404966e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  7.624e-01  4.104e-04  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  1.057e+00  3.990e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.573 70.041

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/631516/cmap_HighResolution_249955201_250214401_4FGL_J1330.2+7002_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-03', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-07 21:16:49.916006', job_id='631516', GAL2='0.76', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631074609.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='41' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 21:16:49 PDT 2021


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

Job <4FGL_J1330.2+7002_daily_bin41> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 21:00:28 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:01:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 21:01:21 2021
Terminated at Tue Sep  7 21:16:50 2021
Results reported at Tue Sep  7 21:16:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin41 202.573 70.0406 249955201 250214401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   774.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             290.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            982 sec.

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

