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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin505
RA = 203.02, Dec = -5.1611
tmin = 370224001, tmax = 370483201
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='737348', job_status='RUN', time_executed='2021-09-08 01:40:16.979873', time_epoch_executed='1631090416.98' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737348

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737348/ft1_4FGL_J1332.0-0509_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737348/ft1_4FGL_J1332.0-0509_daily_bin505.fits outfile=/scratch/kocevski/737348/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin505.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.32
user 15.77
sys 0.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.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/737348/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.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.45
user 0.31
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/737348/ltcube_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.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/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits
.....................!
real 13.21
user 12.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/737348/ltcube_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.fits outfile=/scratch/kocevski/737348/expmap_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.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/737348/ltcube_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.fits
.....................!
real 192.32
user 186.34
sys 5.54

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.0-0509 @ 203.02 -5.1611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits scfile=/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits outfile=/scratch/kocevski/737348/cmap_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.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=203.02 yref=-5.1611 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.63
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits scfile=/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits outfile=/scratch/kocevski/737348/cmap_HighResolution_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.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=203.02 yref=-5.1611 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737348/Model_4FGL_J1332.0-0509_daily_bin505.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/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits.................................!
real 16.67
user 15.20
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits', '/scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits', expMap='/scratch/kocevski/737348/expmap_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.fits', expCube='/scratch/kocevski/737348/ltcube_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/737348/Model_4FGL_J1332.0-0509_daily_bin505.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.0-0509'

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/737348/ft1_filtered_4FGL_J1332.0-0509_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/737348/ft2_4FGL_J1332.0-0509_daily_bin505.fits
Exposure map: /scratch/kocevski/737348/expmap_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.fits
Exposure cube: /scratch/kocevski/737348/ltcube_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/737348/Model_4FGL_J1332.0-0509_daily_bin505.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 417.854015618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 414.119185742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17771       1.0000         .10000E-03   10000.    
     2 'norm      '    .16051E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    386.58       1.0000         .10000E-03   10000.    
     5 'norm      '    112.87       1.0000         .10000E-03   10000.    
     6 'norm      '    .33249       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20723E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .87352E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6369       1.0000         .10000E-03   10000.    
    11 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2065       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2422       1.0000         .10000E-03   10000.    
    14 'norm      '    258.33       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0233       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42306E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7417       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4128       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .75200E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10468E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4198       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .53943       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   414.1062     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      576 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    122.10       -.77151E-05** at limit **
   2  norm          .10000E-03    69.826        .36309E-05** at limit **
   3  norm          1.1280        1.1146        .25658E-05   -.34358E-03
   4  Prefactor     382.50        102.04       -.59708E-03    .60786E-01
   5  norm          113.19        12.681       -.44546E-04   -.17428E-01
   6  norm          .10000E-03    101.90       -.68354E-05** at limit **
   7  Prefactor     .10101E-03    391.09        .65792E-03** at limit **
   8  Prefactor     19.475        18.590       -.41136E-03   -.57907E-02
   9  Prefactor     .10000E-03    155.86       -.12736E-04** at limit **
  10  Prefactor     .51666E-02    1139.4       -.45007E-02   -.14979E-02
  11  norm          .10000E-03    7.3782       -.82400E-06** at limit **
  12  norm          .10461E-03    482.02        .76579E-03** at limit **
  13  norm          .23971E-01    953.73       -.20600E-02   -.35306E-02
  14  norm          261.09        60.097        .39546E-03   -.19561E-01
  15  Prefactor     .13783E-01    2081.4        .10121E-01    .23640E-02
  16  Prefactor     .10000E-03    55.572        .23137E-05** at limit **
  17  Prefactor     3.7417        1.0092         .0000         .0000    
  18  norm          .44209E-03    1181.8       -.35955E-02** at limit **
  19  Prefactor     .10000E-03    30.320        .60206E-05** at limit **
  20  norm          .10000E-03    214.55       -.12285E-05** at limit **
  21  Prefactor     .10000E-03    106.01        .28010E-04** at limit **
  22  norm          .10003E-03    254.21       -.12149E-03** at limit **
  23  Normalizat    .53932        1.1130        .59271E-03    .12101E-04
  24  Prefactor     1.4443        .84438       -.14650E-03    .17541E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.12804
  Prefactor  = 382.496
  norm       = 113.187
  norm       = 0.0001
  Prefactor  = 0.000101006
  Prefactor  = 19.4752
  Prefactor  = 0.0001
  Prefactor  = 0.00516665
  norm       = 0.0001
  norm       = 0.000104608
  norm       = 0.0239714
  norm       = 261.094
  Prefactor  = 0.0137834
  Prefactor  = 0.0001
  Prefactor  = 3.74169
  norm       = 0.000442094
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100032
  Normalizat = 0.539317
  Prefactor  = 1.44427
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   414.1062     FROM HESSE     STATUS=FAILED        73 CALLS      649 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    122.14        .98754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    69.851        .91030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1280        1.1004        .46794E-02   -1.5496    
   4  Prefactor     382.50        410.02        .51873E-03   -1.1771    
   5  norm          113.19        90.969        .94665E-03   -1.3576    
   6  norm          .10000E-03    101.91        .10567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10101E-03    391.12        .91262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.475        132.16        .22907E-02   -1.4825    
   9  Prefactor     .10000E-03    155.91        .94508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .51666E-02    2193.7        .46726E-02   -1.5722    
  11  norm          .10000E-03    7.3618        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10461E-03    482.12        .69235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .23971E-01    2033.1        .48908E-02   -1.5739    
  14  norm          261.09        297.29        .63037E-03   -1.2462    
  15  Prefactor     .13783E-01    2276.7        .72728E-02   -1.5685    
  16  Prefactor     .10000E-03    55.550        .10619E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     545.13        541.32         .0000       -1.5321    
  18  norm          .44209E-03    .20745       -.35955E-02   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .20571        .60206E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .21580       -.12285E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20590        .28010E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10003E-03    .10818       -.12149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .53932        .87358        .59271E-03   -1.1063    
  24  Prefactor     1.4443        1.0547       -.14650E-03   -.79113    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.26982e-09
Minuit parameter uncertainties:
  1  0.00017763
  2  3.48768e-06
  3  1.10042
  4  413.207
  5  91.081
  6  6.43384e-05
  7  0.0399362
  8  101.791
  9  0.000194262
  10  6.9393
  11  3.27511e-05
  12  0.0950462
  13  14.4544
  14  299.039
  15  11.6369
  16  1.17436e-05
  17  1.00922
  18  0.0168486
  19  8.50929e-07
  20  1.64351e-05
  21  9.20984e-06
  22  0.00011786
  23  0.897444
  24  1.0712
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 414.106199474

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  3.275e-05  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.444e+00  1.071e+00  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  5.393e-01  8.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.18e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737348/likelihoodResults_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.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) = 414.106298629
delta logL = -9.91546130535e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 414.106206226
delta logL = -6.75171514786e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11037E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3407       1.0000          .0000       5.0000    
     3 'Normalizat'    .53925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   414.1062     FROM MIGRAD    STATUS=FAILED        94 CALLS      260 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1007.5        .40485E-02** at limit **
   2  alpha         1.9243        3.4038        .17827       -.35291E-07
   3  Normalizat    .53931        .34989        .50865E-03    .85627E-04
   4  Prefactor     1.4443        .25868        .23765E-03    .20951E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   414.1062     FROM SIMPLEX   STATUS=UNCHANGED    186 CALLS      446 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1007.5        .42646E-03** at limit **
   2  alpha         1.9243        3.4038        .89072E-05   -.35291E-07
   3  Normalizat    .53931        .34989        .37163E-06    .85627E-04
   4  Prefactor     1.4443        .25868        .23057E-07    .20951E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   414.1062     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      474 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1123        .56626E-03** at limit **
   2  alpha         1.9283        2.8428        .71306E-02    .24892E-07
   3  Normalizat    .53931        1.1056        .10173E-03    .85388E-04
   4  Prefactor     1.4443        .84382        .47529E-04    .20923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.92834
  Normalizat = 0.53931
  Prefactor  = 1.44428
 **********
 **   18 **HESSE 
 **********

 FCN=   414.1062     FROM HESSE     STATUS=OK            23 CALLS      497 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1089        .11325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9283        2.8146        .14261E-02   -.23071    
   3  Normalizat    .53931        1.1057        .20346E-04   -1.1063    
   4  Prefactor     1.4443        .84389        .95058E-05   -.79112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57201e-10
Minuit parameter uncertainties:
  1  6.35912e-05
  2  403.451
  3  1.15648
  4  0.852211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737348': 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) = 414.106198853
delta logL = 6.20891682956e-07

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  6.359e-05  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.928e+00  4.035e+02  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.444e+00  8.522e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  5.393e-01  1.156e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.020 -5.161

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/737348/cmap_HighResolution_370224001_370483201_4FGL_J1332.0-0509_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-04', job_status='DONE', photon_flux_upper_limit='1.18e-06', time_completed='2021-09-08 01:46:53.476601', job_id='737348', GAL2='1.44', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1631090813.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.44', dlogl='6.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='505' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 737348: <4FGL_J1332.0-0509_daily_bin505> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin505> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:37 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:37:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:37:32 2021
Terminated at Wed Sep  8 01:46:54 2021
Results reported at Wed Sep  8 01:46:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin505 203.02 -5.1611 370224001 370483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.0-0509 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   390.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            677 sec.

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

