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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1170
RA = 202.573, Dec = 70.0406
tmin = 542592001, tmax = 542851201
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='650508', job_status='RUN', time_executed='2021-09-07 21:56:55.517580', time_epoch_executed='1631077015.52' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650508

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650508/ft1_4FGL_J1330.2+7002_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650508/ft1_4FGL_J1330.2+7002_daily_bin1170.fits outfile=/scratch/kocevski/650508/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1170.fits ra=202.573 dec=70.0406 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.71
user 6.45
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650508/ft1_filtered_4FGL_J1330.2+7002_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/650508/ltcube_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.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/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits
.....................!
real 12.72
user 12.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650508/ft1_filtered_4FGL_J1330.2+7002_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/650508/ltcube_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.fits outfile=/scratch/kocevski/650508/expmap_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.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/650508/ltcube_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.fits
.....................!
real 190.04
user 185.16
sys 4.38

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/650508/ft1_filtered_4FGL_J1330.2+7002_daily_bin1170.fits scfile=/scratch/kocevski/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits outfile=/scratch/kocevski/650508/cmap_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650508/ft1_filtered_4FGL_J1330.2+7002_daily_bin1170.fits scfile=/scratch/kocevski/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits outfile=/scratch/kocevski/650508/cmap_HighResolution_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.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.55
user 0.41
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/650508/ft1_filtered_4FGL_J1330.2+7002_daily_bin1170.fits', '/scratch/kocevski/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits', expMap='/scratch/kocevski/650508/expmap_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.fits', expCube='/scratch/kocevski/650508/ltcube_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/650508/Model_4FGL_J1330.2+7002_daily_bin1170.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/650508/ft1_filtered_4FGL_J1330.2+7002_daily_bin1170.fits
Spacecraft file(s): /scratch/kocevski/650508/ft2_4FGL_J1330.2+7002_daily_bin1170.fits
Exposure map: /scratch/kocevski/650508/expmap_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.fits
Exposure cube: /scratch/kocevski/650508/ltcube_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/650508/Model_4FGL_J1330.2+7002_daily_bin1170.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) = 1369.69282656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    4.5475       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    164.11       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13173E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43231E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2498       1.0000         .10000E-03   10000.    
    14 'Prefactor '    173.79       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.498       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50012E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    74.226       1.0000         .10000E-03   10000.    
    23 'Prefactor '    66.450       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    88.213       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11031E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .60015       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79190       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.

 FCN=   1369.633     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3443 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.912        .41718E-08** at limit **
   2  Prefactor     4.5476        5.5049        .10887E-06   -.98043E-06
   3  Prefactor     .10000E-03    128.18       -.14911E-06** at limit **
   4  Prefactor     164.13        169.70        .17659E-05    .27564E-05
   5  Prefactor     .10000E-03    44.107       -.62376E-07** at limit **
   6  Prefactor     .10000E-03    121.36       -.16537E-06** at limit **
   7  norm          .10000E-03    4.5160        .74415E-07** at limit **
   8  norm          4.9744        6.9795        .33056E-06    .11948E-04
   9  Prefactor     .10000E-03    147.17        .95462E-07** at limit **
  10  Prefactor     .10001E-03    1121.5        .78494E-05** at limit **
  11  Prefactor     .10000E-03    56.028        .14503E-06** at limit **
  12  Prefactor     .10000E-03    547.52        .10069E-04** at limit **
  13  Prefactor     5.2297        16.890        .61718E-05    .83576E-06
  14  Prefactor     173.90        145.00       -.86357E-05    .11574E-04
  15  Prefactor     .10000E-03    35.594       -.69656E-06** at limit **
  16  Prefactor     21.512        31.929        .11175E-05   -.56155E-05
  17  Prefactor     .10000E-03    21.588        .40712E-07** at limit **
  18  Prefactor     .10001E-03    1414.8       -.15755E-04** at limit **
  19  Prefactor     .10000E-03    449.52       -.28409E-06** at limit **
  20  Prefactor     .10000E-03    112.15       -.20515E-06** at limit **
  21  Prefactor     .10000E-03    18.342        .51025E-09** at limit **
  22  Prefactor     74.227        92.645        .77762E-06   -.14169E-05
  23  Prefactor     66.450        72.162        .26747E-06   -.13380E-05
  24  Prefactor     .10000E-03    58.777        .83717E-07** at limit **
  25  Prefactor     88.227        60.249        .29239E-05   -.11342E-04
  26  Prefactor     .10000E-03    242.80        .14242E-05** at limit **
  27  Normalizat    .60024        .33344       -.69187E-05    .35160E-04
  28  Prefactor     .79178        .30335        .19903E-05   -.66026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.54757
  Prefactor  = 0.0001
  Prefactor  = 164.131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.97439
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.22971
  Prefactor  = 173.897
  Prefactor  = 0.0001
  Prefactor  = 21.5123
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.2271
  Prefactor  = 66.4503
  Prefactor  = 0.0001
  Prefactor  = 88.227
  Prefactor  = 0.0001
  Normalizat = 0.600235
  Prefactor  = 0.791776
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.633     FROM HESSE     STATUS=OK           505 CALLS     3948 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.914        .14869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5476        5.5029        .92955E-04   -1.5281    
   3  Prefactor     .10000E-03    128.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     164.13        170.12        .15742E-03   -1.3139    
   5  Prefactor     .10000E-03    44.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    121.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.5193        .76825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9744        7.0364        .10709E-03   -1.5262    
   9  Prefactor     .10000E-03    147.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    1117.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    56.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    550.87        .21228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2297        16.980        .87715E-03   -1.5251    
  14  Prefactor     173.90        147.13        .15305E-03   -1.3063    
  15  Prefactor     .10000E-03    35.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.512        31.929        .86386E-04   -1.4780    
  17  Prefactor     .10000E-03    21.597        .16801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    1436.9        .19202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    449.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    112.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.342        .15486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     74.227        92.652        .46603E-04   -1.3983    
  23  Prefactor     66.450        72.162        .49235E-04   -1.4076    
  24  Prefactor     .10000E-03    58.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     88.227        60.061        .42779E-04   -1.3827    
  26  Prefactor     .10000E-03    242.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .60024        .37962        .26060E-03   -1.0797    
  28  Prefactor     .79178        .35388        .21757E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25652e-10
Minuit parameter uncertainties:
  1  1.0077e-05
  2  5.50346
  3  0.000181674
  4  170.632
  5  1.53319e-06
  6  8.43588e-05
  7  4.82832e-06
  8  7.03762
  9  0.000373915
  10  0.008277
  11  7.60483e-05
  12  0.00253786
  13  16.9958
  14  147.439
  15  9.91609e-05
  16  31.9541
  17  6.71174e-06
  18  0.00880463
  19  0.000489255
  20  0.000248622
  21  2.71109e-06
  22  92.8328
  23  72.2577
  24  7.1541e-05
  25  60.1022
  26  0.000336673
  27  0.381285
  28  0.354903
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.000e-04  2.538e-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.918e-01  3.549e-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:  6.002e-01  3.813e-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.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650508/likelihoodResults_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.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) = 1369.63339194
delta logL = -8.49491266308e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1369.63338359
delta logL = -1.40864131026e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23432E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9463       1.0000          .0000       10.000    
     3 'Normalizat'    .60023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79178       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=   1369.633     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      249 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    9821.6        .90712E-02** at limit **
   2  Index         2.0594        8.3577        .50000       -.24670E-05
   3  Normalizat    .60023        .37217E-01    .58913E-01   -.85297E-05
   4  Prefactor     .79178        .35644E-01    .43610E-01   -.13465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010058
  Index      = 2.05935
  Normalizat = 0.600231
  Prefactor  = 0.79178
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.633     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      282 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10058E-03    6394.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0594        6.9093        .50000       -.62874    
   3  Normalizat    .60023        .75020E-01    .26061E-03   -1.0797    
   4  Prefactor     .79178        .71931E-01    .21756E-03   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25627e-08
Minuit parameter uncertainties:
  1  0.393714
  2  36.2834
  3  0.0750325
  4  0.0719396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650508': 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) = 1369.6333834
delta logL = 4.87095803692e-08

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.006e-04  3.937e-01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  2.059e+00  3.628e+01  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.918e-01  7.194e-02  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:  6.002e-01  7.503e-02  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/650508/cmap_HighResolution_542592001_542851201_4FGL_J1330.2+7002_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-02', job_status='DONE', photon_flux_upper_limit='4.54e-07', time_completed='2021-09-07 22:04:56.142001', job_id='650508', GAL2='0.79', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1631077496.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1170' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 22:04:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 650508: <4FGL_J1330.2+7002_daily_bin1170> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1170> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 21:50:44 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 21:53:13 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:53:13 2021
Terminated at Tue Sep  7 22:04:56 2021
Results reported at Tue Sep  7 22:04:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1170 202.573 70.0406 542592001 542851201 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 :                                   476.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            852 sec.

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

