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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin480
RA = 203.02, Dec = -5.1611
tmin = 363744001, tmax = 364003201
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='737310', job_status='RUN', time_executed='2021-09-08 01:37:37.088188', time_epoch_executed='1631090257.09' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737310/ft1_4FGL_J1332.0-0509_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737310/ft2_4FGL_J1332.0-0509_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737310/ft1_4FGL_J1332.0-0509_daily_bin480.fits outfile=/scratch/kocevski/737310/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin480.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=363744001.0 tmax=364003201.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.35
user 3.08
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737310/ft2_4FGL_J1332.0-0509_daily_bin480.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/737310/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/737310/ft1_filtered_4FGL_J1332.0-0509_daily_bin480.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737310/ft1_filtered_4FGL_J1332.0-0509_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/737310/ft2_4FGL_J1332.0-0509_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/737310/ltcube_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.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/737310/ft2_4FGL_J1332.0-0509_daily_bin480.fits
.....................!
real 16.20
user 15.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737310/ft1_filtered_4FGL_J1332.0-0509_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/737310/ft2_4FGL_J1332.0-0509_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/737310/ltcube_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.fits outfile=/scratch/kocevski/737310/expmap_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.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/737310/ltcube_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.fits
.....................!
real 193.03
user 187.79
sys 4.52

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/737310/ft1_filtered_4FGL_J1332.0-0509_daily_bin480.fits scfile=/scratch/kocevski/737310/ft2_4FGL_J1332.0-0509_daily_bin480.fits outfile=/scratch/kocevski/737310/cmap_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737310/ft1_filtered_4FGL_J1332.0-0509_daily_bin480.fits scfile=/scratch/kocevski/737310/ft2_4FGL_J1332.0-0509_daily_bin480.fits outfile=/scratch/kocevski/737310/cmap_HighResolution_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737310/ft1_filtered_4FGL_J1332.0-0509_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/737310/ft2_4FGL_J1332.0-0509_daily_bin480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737310/Model_4FGL_J1332.0-0509_daily_bin480.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/737310/ft1_filtered_4FGL_J1332.0-0509_daily_bin480.fits.....................!
real 50.20
user 48.82
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7652       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .18708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    35.822       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.563       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11451E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    33.422       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.094       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.9355       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.863       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6562       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75091       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=   5916.781     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2747 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7668        35.228       -.30275E-06    .48909E-05
   2  norm          .10000E-03    13.174        .35698E-06** at limit **
   3  norm          .18710        .18772        .31802E-08   -.45306E-04
   4  Prefactor     .10000E-03    21.494        .27590E-06** at limit **
   5  norm          35.822        16.223       -.63958E-07    .54409E-06
   6  norm          2.4929        7.8805        .38134E-05   -.15837E-03
   7  Prefactor     .10000E-03    4.0347        .16456E-06** at limit **
   8  Prefactor     16.851        19.188       -.13279E-06    .17813E-04
   9  Prefactor     10.133        11.657        .27395E-06   -.38418E-04
  10  Prefactor     27.589        31.226       -.35267E-05   -.38254E-05
  11  norm          .10000E-03    .71947       -.39850E-07** at limit **
  12  norm          .10000E-03    5.5180        .25736E-05** at limit **
  13  norm          33.428        14.951        .44298E-06   -.26291E-03
  14  norm          .10000E-03    14.475       -.31859E-07** at limit **
  15  Prefactor     4.9561        8.3621        .20787E-06   -.21870E-04
  16  Prefactor     .10000E-03    17.946       -.77365E-06** at limit **
  17  Prefactor     42.090        77.914        .60100E-06   -.11604E-04
  18  norm          .10000E-03    5.3736       -.20072E-06** at limit **
  19  Prefactor     .10000E-03    7.3879       -.40657E-06** at limit **
  20  norm          2.9358        4.0371        .12093E-06   -.36996E-04
  21  Prefactor     10.860        20.128        .41719E-06   -.15145E-04
  22  norm          .10000E-03    9.4264        .80957E-07** at limit **
  23  Normalizat    1.6559        .25881        .28666E-07   -.39466E-04
  24  Prefactor     .75108        .16475        .49669E-07   -.19176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.76678
  norm       = 0.0001
  norm       = 0.1871
  Prefactor  = 0.0001
  norm       = 35.8218
  norm       = 2.49289
  Prefactor  = 0.0001
  Prefactor  = 16.8514
  Prefactor  = 10.1328
  Prefactor  = 27.5885
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 33.4277
  norm       = 0.0001
  Prefactor  = 4.95611
  Prefactor  = 0.0001
  Prefactor  = 42.0901
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93577
  Prefactor  = 10.8598
  norm       = 0.0001
  Normalizat = 1.65593
  Prefactor  = 0.751077
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.781     FROM HESSE     STATUS=OK           399 CALLS     3146 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7668        35.026        .12823E-03   -1.5083    
   2  norm          .10000E-03    13.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .18710        .18093        .30811E-03   -1.5621    
   4  Prefactor     .10000E-03    21.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          35.822        16.243        .66959E-04   -1.4510    
   6  norm          2.4929        7.9383        .12943E-02   -1.5392    
   7  Prefactor     .10000E-03    4.0416        .15091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.851        19.203        .97572E-04   -1.4887    
   9  Prefactor     10.133        11.678        .12589E-03   -1.5071    
  10  Prefactor     27.589        31.362        .76307E-04   -1.4657    
  11  norm          .10000E-03    .74081        .12727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.9954        .36219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          33.428        14.789        .69314E-04   -1.4551    
  14  norm          .10000E-03    14.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9561        8.3037        .18067E-03   -1.5263    
  16  Prefactor     .10000E-03    18.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.090        77.895        .61787E-04   -1.4410    
  18  norm          .10000E-03    5.3980        .17362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9358        4.0254        .16933E-03   -1.5365    
  21  Prefactor     10.860        20.119        .12156E-03   -1.5049    
  22  norm          .10000E-03    9.4371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6559        .30806        .28436E-03   -.73486    
  24  Prefactor     .75108        .19472        .25906E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56948e-10
Minuit parameter uncertainties:
  1  35.1
  2  3.27302e-05
  3  0.180931
  4  3.04231e-05
  5  16.245
  6  7.94168
  7  1.13451e-05
  8  19.2096
  9  11.6808
  10  31.3808
  11  1.13512e-06
  12  0.000174494
  13  14.7904
  14  1.14109e-06
  15  8.30566
  16  5.12958e-05
  17  78.0843
  18  3.30762e-06
  19  1.3653e-05
  20  4.02578
  21  20.1316
  22  1.00871e-05
  23  0.308418
  24  0.194894
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.135e-06  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.511e-01  1.949e-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.656e+00  3.084e-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: 8.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737310/likelihoodResults_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.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) = 5916.78142526
delta logL = -0.000842916570946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5916.78058214
delta logL = 2.0263451006e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2952       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75109       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=   5916.781     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      272 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6971        .99727E-03** at limit **
   2  alpha         2.8710        2.5756        .17661        .48085E-06
   3  Normalizat    1.6559        .29456        .28437E-03    .11354E-02
   4  Prefactor     .75108        .19090        .25906E-03    .13400E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.87105
  Normalizat = 1.65593
  Prefactor  = 0.751081
 **********
 **   18 **HESSE 
 **********

 FCN=   5916.781     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .81754        .19945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8710        3.8101        .70645E-02    .14897    
   3  Normalizat    1.6559        .29481        .56873E-04   -.73486    
   4  Prefactor     .75108        .19107        .51812E-04   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26548e-09
Minuit parameter uncertainties:
  1  3.65857e-05
  2  129.641
  3  0.295123
  4  0.191236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737310': 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) = 5916.78057601
delta logL = 6.33204035694e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  3.659e-05  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.871e+00  1.296e+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:  7.511e-01  1.912e-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.656e+00  2.951e-01  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/737310/cmap_HighResolution_363744001_364003201_4FGL_J1332.0-0509_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-05', job_status='DONE', photon_flux_upper_limit='8.73e-08', time_completed='2021-09-08 01:48:37.077870', job_id='737310', GAL2='0.75', fit_tolerance='1e-08', EG2='1.66', EG='1.66', time_epoch_completed='1631090917.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.33e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='480' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:48:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 737310: <4FGL_J1332.0-0509_daily_bin480> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin480> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:34 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:37:17 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:17 2021
Terminated at Wed Sep  8 01:48:37 2021
Results reported at Wed Sep  8 01:48:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin480 203.02 -5.1611 363744001 364003201 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 :                                   655.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             378.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            783 sec.

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

