/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 133 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 = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin399
RA = 203.02, Dec = -5.1611
tmin = 342748801, tmax = 343008001
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='737191', job_status='RUN', time_executed='2021-09-08 01:38:07.753386', time_epoch_executed='1631090287.75' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737191

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737191/ft1_4FGL_J1332.0-0509_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737191/ft2_4FGL_J1332.0-0509_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737191/ft1_4FGL_J1332.0-0509_daily_bin399.fits outfile=/scratch/kocevski/737191/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin399.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=342748801.0 tmax=343008001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.65
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737191/ft1_filtered_4FGL_J1332.0-0509_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/737191/ft2_4FGL_J1332.0-0509_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/737191/ltcube_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.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/737191/ft2_4FGL_J1332.0-0509_daily_bin399.fits
.....................!
real 14.99
user 14.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737191/ft1_filtered_4FGL_J1332.0-0509_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/737191/ft2_4FGL_J1332.0-0509_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/737191/ltcube_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.fits outfile=/scratch/kocevski/737191/expmap_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.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/737191/ltcube_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.fits
.....................!
real 190.97
user 186.26
sys 4.24

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/737191/ft1_filtered_4FGL_J1332.0-0509_daily_bin399.fits scfile=/scratch/kocevski/737191/ft2_4FGL_J1332.0-0509_daily_bin399.fits outfile=/scratch/kocevski/737191/cmap_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737191/ft1_filtered_4FGL_J1332.0-0509_daily_bin399.fits scfile=/scratch/kocevski/737191/ft2_4FGL_J1332.0-0509_daily_bin399.fits outfile=/scratch/kocevski/737191/cmap_HighResolution_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.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 1.20
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.029       1.0000         .10000E-03   10000.    
     3 'norm      '    .48512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.2176       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.271       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7542       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.795       1.0000         .10000E-03   10000.    
    11 'norm      '    .84462       1.0000         .10000E-03   10000.    
    12 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13029E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.520       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6232       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3233       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4188       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.270       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1928       1.0000         .10000E-03   10000.    
    22 'norm      '    35.549       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1095       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1213       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.

 FCN=   8175.574     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2352 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.251        .65343E-06** at limit **
   2  norm          15.029        15.487        .14038E-06    .32438E-05
   3  norm          .48514        .20503        .10666E-07   -.85509E-03
   4  Prefactor     .10000E-03    40.416        .56682E-05** at limit **
   5  norm          .10000E-03    2.5938        .13496E-08** at limit **
   6  norm          7.2176        7.5435       -.20046E-06   -.11365E-04
   7  Prefactor     14.272        10.493       -.29953E-06   -.65809E-04
   8  Prefactor     .10000E-03    6.1528        .56831E-07** at limit **
   9  Prefactor     5.7546        8.5348       -.24764E-06   -.21086E-03
  10  Prefactor     30.799        16.792        .13982E-05   -.12624E-03
  11  norm          .84447        1.1682       -.14062E-06   -.13879E-02
  12  norm          .10000E-03    1.8620       -.15984E-06** at limit **
  13  norm          .10021E-03    4.1189        .56262E-06** at limit **
  14  norm          .10000E-03    20.622       -.28758E-05** at limit **
  15  Prefactor     13.521        6.3701        .10405E-05   -.19756E-03
  16  Prefactor     6.6260        17.052        .32315E-05   -.17168E-03
  17  Prefactor     9.2993        30.173       -.47114E-04   -.11852E-04
  18  norm          7.4184        7.8000        .27586E-06   -.18613E-03
  19  Prefactor     17.260        17.155       -.13888E-04   -.12590E-02
  20  norm          .10000E-03    .68291       -.17654E-07** at limit **
  21  Prefactor     1.2302        180.28        .16947E-03   -.46056E-04
  22  norm          35.548        19.962       -.96713E-06   -.12585E-03
  23  Normalizat    1.1094        .21392       -.39732E-05   -.49703E-03
  24  Prefactor     1.1214        .13921        .22873E-05   -.98478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.0293
  norm       = 0.485136
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.21761
  Prefactor  = 14.2717
  Prefactor  = 0.0001
  Prefactor  = 5.7546
  Prefactor  = 30.799
  norm       = 0.844466
  norm       = 0.0001
  norm       = 0.000100212
  norm       = 0.0001
  Prefactor  = 13.5215
  Prefactor  = 6.62598
  Prefactor  = 9.29929
  norm       = 7.41837
  Prefactor  = 17.2602
  norm       = 0.0001
  Prefactor  = 1.23017
  norm       = 35.5484
  Normalizat = 1.10941
  Prefactor  = 1.12137
 **********
 **   18 **HESSE 
 **********

 FCN=   8175.574     FROM HESSE     STATUS=OK           409 CALLS     2761 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.029        15.488        .10332E-03   -1.4932    
   3  norm          .48514        .20364        .25333E-04   -1.5569    
   4  Prefactor     .10000E-03    40.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5980        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.2176        7.5430        .14930E-03   -1.5171    
   7  Prefactor     14.272        10.480        .10602E-03   -1.4952    
   8  Prefactor     .10000E-03    6.1628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7546        8.5197        .16744E-03   -1.5228    
  10  Prefactor     30.799        16.714        .72201E-04   -1.4597    
  11  norm          .84447        1.0391        .10882E-02   -1.5524    
  12  norm          .10000E-03    1.8764        .11967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10021E-03    4.1709        .53856E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.521        6.3581        .10893E-03   -1.4972    
  16  Prefactor     6.6260        17.025        .15593E-03   -1.5193    
  17  Prefactor     9.2993        30.115        .13125E-03   -1.5098    
  18  norm          7.4184        7.7812        .14725E-03   -1.5163    
  19  Prefactor     17.260        17.234        .96377E-04   -1.4877    
  20  norm          .10000E-03    .69224        .72947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2302        175.57        .41673E-03   -1.5486    
  22  norm          35.548        19.966        .67214E-04   -1.4515    
  23  Normalizat    1.1094        .24570        .32751E-03   -.89450    
  24  Prefactor     1.1214        .16104        .21908E-03   -.88787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21017e-09
Minuit parameter uncertainties:
  1  3.90999e-06
  2  15.4922
  3  0.203642
  4  3.99999e-06
  5  1.68397e-06
  6  7.54396
  7  10.4816
  8  6.06467e-06
  9  8.52148
  10  16.7163
  11  1.03912
  12  1.74857e-05
  13  0.00188071
  14  2.72657e-07
  15  6.35845
  16  17.0376
  17  30.1637
  18  7.78225
  19  17.239
  20  6.09183e-07
  21  29.4795
  22  19.97
  23  0.245951
  24  0.161105
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  8.445e-01  1.039e+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:  1.121e+00  1.611e-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.109e+00  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.06e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737191/likelihoodResults_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8175.10148403
delta logL = 0.47246455662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8175.08864886
delta logL = 0.485299726925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0153       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4846       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1070       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=   8175.089     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      221 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0155        1.1263        .20024E-01    .63822E-03
   2  alpha         1.4846        .57855        .46574       -.43076E-04
   3  Normalizat    1.1319        .20239        .73336E-01    .18197E-04
   4  Prefactor     1.1070        .13695        .37327E-01    .54131E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.01551
  alpha      = 1.4846
  Normalizat = 1.13193
  Prefactor  = 1.10703
 **********
 **   18 **HESSE 
 **********

 FCN=   8175.089     FROM HESSE     STATUS=OK            35 CALLS      256 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0155        1.0627        .94222E-03   -1.5506    
   2  alpha         1.4846        .71726        .21732E-01   -.41825    
   3  Normalizat    1.1319        .23360        .32454E-03   -.88733    
   4  Prefactor     1.1070        .15817        .22019E-03   -.89242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64295e-09
Minuit parameter uncertainties:
  1  1.06272
  2  0.729601
  3  0.233818
  4  0.158238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737191': 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) = 8175.08864877
delta logL = 0.485299814894

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.016e+00  1.063e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.485e+00  7.296e-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:  1.107e+00  1.582e-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.132e+00  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.48 +/- 0.73
Photon Flux (Free Index): 1.79e-08 +/- 1.98e-08
Energy Flux (Free Index): 1.71e-05 +/- 2.12e-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/737191/cmap_HighResolution_342748801_343008001_4FGL_J1332.0-0509_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.06e-05', comment='SUCCESS', energy_flux2='1.71e-05', dlogl='4.85e-01', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-08 01:50:24.745211', photon_index_error2='0.73', photon_index2='1.48', ts='0.97', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.12e-05', EG='1.11', time_epoch_completed='1631091024.75', return_code='0', job_id='737191', GAL2='1.11', EG2='1.13', return_code2='0', photon_flux_error2='1.98e-08', ts2='1.95', photon_index='2.39' WHERE bin_id='399' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 737191: <4FGL_J1332.0-0509_daily_bin399> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin399> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:26 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:35:39 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:35:39 2021
Terminated at Wed Sep  8 01:50:25 2021
Results reported at Wed Sep  8 01:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin399 203.02 -5.1611 342748801 343008001 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 :                                   734.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            899 sec.

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

