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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin106
RA = 203.02, Dec = -5.1611
tmin = 266803201, tmax = 267062401
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='734729', job_status='RUN', time_executed='2021-09-08 01:28:35.625313', time_epoch_executed='1631089715.63' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734729

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734729/ft1_4FGL_J1332.0-0509_daily_bin106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734729/ft1_4FGL_J1332.0-0509_daily_bin106.fits outfile=/scratch/kocevski/734729/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin106.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=266803201.0 tmax=267062401.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 2.10
user 1.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.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/734729/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin106.fits evtable="EVENTS" outfile="/scratch/kocevski/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits" evtable="EVENTS" scfile=/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits sctable="SC_DATA" outfile=/scratch/kocevski/734729/ltcube_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.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/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits
.....................!
real 19.74
user 19.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits sctable="SC_DATA" expcube=/scratch/kocevski/734729/ltcube_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.fits outfile=/scratch/kocevski/734729/expmap_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.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/734729/ltcube_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.fits
.....................!
real 193.60
user 187.75
sys 5.29

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/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits scfile=/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits outfile=/scratch/kocevski/734729/cmap_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.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.68
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits scfile=/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits outfile=/scratch/kocevski/734729/cmap_HighResolution_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.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.90
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734729/Model_4FGL_J1332.0-0509_daily_bin106.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/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits.....................!
real 63.36
user 60.81
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits', '/scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits', expMap='/scratch/kocevski/734729/expmap_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.fits', expCube='/scratch/kocevski/734729/ltcube_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/734729/Model_4FGL_J1332.0-0509_daily_bin106.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/734729/ft1_filtered_4FGL_J1332.0-0509_daily_bin106.fits
Spacecraft file(s): /scratch/kocevski/734729/ft2_4FGL_J1332.0-0509_daily_bin106.fits
Exposure map: /scratch/kocevski/734729/expmap_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.fits
Exposure cube: /scratch/kocevski/734729/ltcube_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/734729/Model_4FGL_J1332.0-0509_daily_bin106.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) = 8209.34099939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8929       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    31.001       1.0000         .10000E-03   10000.    
     6 'norm      '    20.039       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0608       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .56655       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.6842       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5854       1.0000         .10000E-03   10000.    
    13 'norm      '    18.394       1.0000         .10000E-03   10000.    
    14 'norm      '    .11222E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0069       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4604       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1120       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.178       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3158       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3832       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72547       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.

 FCN=   8209.277     FROM MIGRAD    STATUS=CONVERGED    978 CALLS     3200 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.830        .18142E-02** at limit **
   2  norm          .10000E-03    10.419        .18142E-02** at limit **
   3  norm          1.8929        .29480        .18491E-04    .41782E-03
   4  Prefactor     .10000E-03    33.909        .18142E-02** at limit **
   5  norm          31.001        11.098        .71962E-04   -.10743E-04
   6  norm          20.033        10.112        .89474E-04   -.10673E-04
   7  Prefactor     .10000E-03    5.5993        .18142E-02** at limit **
   8  Prefactor     5.0600        12.826        .17874E-03   -.39435E-05
   9  Prefactor     .59161        11.536        .36220E-02   -.59607E-03
  10  Prefactor     .10001E-03    30.141        .18142E-02** at limit **
  11  norm          3.6839        1.3800        .62386E-04   -.20082E-03
  12  norm          8.5870        3.9974        .11032E-03    .25578E-03
  13  norm          18.394        8.0811        .93387E-04    .10226E-03
  14  norm          .10000E-03    21.227        .13652    ** at limit **
  15  Prefactor     4.0344        4.4143        .18644E-03   -.55978E-04
  16  Prefactor     1.0061        21.145        .26682E-02   -.35905E-03
  17  Prefactor     .10001E-03    58.618        .18142E-02** at limit **
  18  norm          3.6017        4.2165        .19242E-03   -.11497E-03
  19  Prefactor     8.4622        11.321        .68910E-03   -.26166E-04
  20  norm          2.1123        2.1133        .12716E-03   -.10728E-04
  21  Prefactor     14.176        31.423        .10637E-03    .51300E-04
  22  norm          6.3166        12.250        .79860E-03   -.21866E-04
  23  Normalizat    1.3830        .23649        .28866E-03   -.17302E-03
  24  Prefactor     .72546        .15155        .25065E-03    .10713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.8929
  Prefactor  = 0.000100002
  norm       = 31.0011
  norm       = 20.0332
  Prefactor  = 0.0001
  Prefactor  = 5.05996
  Prefactor  = 0.591614
  Prefactor  = 0.000100005
  norm       = 3.68386
  norm       = 8.58699
  norm       = 18.3939
  norm       = 0.000100004
  Prefactor  = 4.03438
  Prefactor  = 1.00614
  Prefactor  = 0.000100009
  norm       = 3.60172
  Prefactor  = 8.46222
  norm       = 2.1123
  Prefactor  = 14.1759
  norm       = 6.31662
  Normalizat = 1.38305
  Prefactor  = 0.72546
 **********
 **   18 **HESSE 
 **********

 FCN=   8209.277     FROM HESSE     STATUS=OK           387 CALLS     3587 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8929        .29480        .36983E-05   -1.5433    
   4  Prefactor     .10000E-03    33.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          31.001        11.097        .28785E-05   -1.4594    
   6  norm          20.033        10.108        .35790E-05   -1.4812    
   7  Prefactor     .10000E-03    5.6026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0600        12.825        .71495E-05   -1.5258    
   9  Prefactor     .59161        11.530        .14488E-03   -1.5554    
  10  Prefactor     .10001E-03    30.154        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.6839        1.3800        .24954E-05   -1.5324    
  12  norm          8.5870        3.9964        .44126E-05   -1.5122    
  13  norm          18.394        8.0812        .37355E-05   -1.4850    
  14  norm          .10000E-03    20.999        .13785       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0344        4.4134        .74576E-05   -1.5306    
  16  Prefactor     1.0061        21.125        .10673E-03   -1.5507    
  17  Prefactor     .10001E-03    58.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6017        4.2160        .76969E-05   -1.5328    
  19  Prefactor     8.4622        11.313        .27564E-04   -1.5126    
  20  norm          2.1123        2.1131        .50865E-05   -1.5417    
  21  Prefactor     14.176        31.411        .42549E-05   -1.4955    
  22  norm          6.3166        12.249        .31944E-04   -1.5205    
  23  Normalizat    1.3830        .23660        .57733E-04   -.81120    
  24  Prefactor     .72546        .15167        .10026E-04   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56374e-09
Minuit parameter uncertainties:
  1  0.000171509
  2  6.11099e-06
  3  0.294796
  4  0.000452519
  5  11.0982
  6  10.109
  7  4.83086e-05
  8  12.8318
  9  5.22432
  10  0.000792615
  11  1.37997
  12  3.99649
  13  8.08169
  14  0.000601944
  15  4.41376
  16  9.2239
  17  0.00144274
  18  4.21632
  19  11.3161
  20  2.11317
  21  31.4473
  22  12.2538
  23  0.236783
  24  0.151758
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.684e+00  1.380e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.255e-01  1.518e-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:  1.383e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.74
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 4.17e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 1.26e-05

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) = 8208.53464336
delta logL = 0.742580634062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8208.50556024
delta logL = 0.771663752508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5048       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8267       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70376       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.

 FCN=   8208.506     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5048        1.4763        .53990E-02   -.14933E-02
   2  alpha         1.8270        .38302        .33977       -.30985E-04
   3  Normalizat    1.4372        .19700        .64288E-01    .64481E-05
   4  Prefactor     .70372        .12782        .42451E-01    .24409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.50475
  alpha      = 1.82696
  Normalizat = 1.43721
  Prefactor  = 0.703718
 **********
 **   18 **HESSE 
 **********

 FCN=   8208.506     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5048        1.6221        .67836E-04   -1.5334    
   2  alpha         1.8270        .45963        .13691E-01   -.27258    
   3  Normalizat    1.4372        .23176        .28435E-03   -.79558    
   4  Prefactor     .70372        .14952        .25419E-03   -1.0338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97e-10
Minuit parameter uncertainties:
  1  1.62212
  2  0.462471
  3  0.231933
  4  0.149605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734729': 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) = 8208.50555999
delta logL = 0.771664000693

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.505e+00  1.622e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.827e+00  4.625e-01  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:  7.037e-01  1.496e-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:  1.437e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.14
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.83 +/- 0.46
Photon Flux (Free Index): 7.02e-08 +/- 4.32e-08
Energy Flux (Free Index): 3.88e-05 +/- 1.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/734729/cmap_HighResolution_266803201_267062401_4FGL_J1332.0-0509_daily_bin106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='3.88e-05', photon_flux_error='4.17e-08', dlogl='7.72e-01', energy_flux='3.35e-05', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-08 01:41:02.387503', photon_index_error2='0.46', photon_index2='1.83', ts='18.74', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.38', time_epoch_completed='1631090462.39', return_code='0', job_id='734729', GAL2='0.70', EG2='1.44', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.32e-08', ts2='20.14', photon_index='2.39' WHERE bin_id='106' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:41:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 734729: <4FGL_J1332.0-0509_daily_bin106> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin106> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:47 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:26:02 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:26:02 2021
Terminated at Wed Sep  8 01:41:03 2021
Results reported at Wed Sep  8 01:41:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin106 203.02 -5.1611 266803201 267062401 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 :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            916 sec.

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

