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


Performing analysis on: 4FGL_J0332.1-1123_daily_bin186
RA = 53.0335, Dec = -11.3949
tmin = 287539201, tmax = 287798401
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='600796', job_status='RUN', time_executed='2021-08-18 15:16:48.703077', time_epoch_executed='1629325008.7' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600796/ft1_4FGL_J0332.1-1123_daily_bin186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600796/ft1_4FGL_J0332.1-1123_daily_bin186.fits outfile=/scratch/kocevski/600796/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin186.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=287539201.0 tmax=287798401.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 11.93
user 3.35
sys 8.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.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/600796/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin186.fits evtable="EVENTS" outfile="/scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.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 8.91
user 0.34
sys 8.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits" evtable="EVENTS" scfile=/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits sctable="SC_DATA" outfile=/scratch/kocevski/600796/ltcube_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.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/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits
.....................!
real 21.26
user 11.76
sys 9.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits sctable="SC_DATA" expcube=/scratch/kocevski/600796/ltcube_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.fits outfile=/scratch/kocevski/600796/expmap_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.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/600796/ltcube_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.fits
.....................!
real 202.64
user 186.25
sys 15.61

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

Setting source of interest to:
4FGL J0332.1-1123 @ 53.0335 -11.3949

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits scfile=/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits outfile=/scratch/kocevski/600796/cmap_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.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=53.0335 yref=-11.3949 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 8.69
user 0.38
sys 7.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits scfile=/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits outfile=/scratch/kocevski/600796/cmap_HighResolution_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.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=53.0335 yref=-11.3949 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 8.39
user 0.40
sys 7.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits evtable="EVENTS" scfile=/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/600796/Model_4FGL_J0332.1-1123_daily_bin186.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/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits.....................!
real 74.50
user 62.00
sys 11.94

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits', '/scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits', expMap='/scratch/kocevski/600796/expmap_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.fits', expCube='/scratch/kocevski/600796/ltcube_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/600796/Model_4FGL_J0332.1-1123_daily_bin186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0332.1-1123'

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.293e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/600796/ft1_filtered_4FGL_J0332.1-1123_daily_bin186.fits
Spacecraft file(s): /scratch/kocevski/600796/ft2_4FGL_J0332.1-1123_daily_bin186.fits
Exposure map: /scratch/kocevski/600796/expmap_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.fits
Exposure cube: /scratch/kocevski/600796/ltcube_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/600796/Model_4FGL_J0332.1-1123_daily_bin186.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) = 5252.72160515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11898E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    97.435       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8334       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2031       1.0000         .10000E-03   10000.    
     6 'Prefactor '    142.33       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8999       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.998       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18163E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2789       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .22277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11631E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12092E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .45992       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5252.698     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2096 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2712        .12832E-06** at limit **
   2  Prefactor     97.551        85.726        .95919E-04    .12122E-07
   3  Prefactor     1.8256        21.845        .64886E-05   -.77375E-04
   4  Prefactor     .10000E-03    5.0877       -.28369E-06** at limit **
   5  Prefactor     5.2024        6.7042        .29966E-05   -.17665E-03
   6  Prefactor     142.75        181.19        .33473E-03    .46205E-05
   7  Prefactor     6.6337        7.2028       -.44969E-06   -.12576E-03
   8  Prefactor     4.8146        35.487       -.39412E-05   -.13717E-03
   9  Prefactor     12.014        19.228        .89888E-06    .24862E-04
  10  Prefactor     .10000E-03    28.375        .25475E-05** at limit **
  11  norm          5.2779        1.8672        .45781E-06    .34915E-03
  12  Prefactor     .10000E-03    1.3449       -.14261E-06** at limit **
  13  Prefactor     .10000E-03    43.945       -.37890E-05** at limit **
  14  norm          .22312        1.3030       -.38306E-06   -.19064E-02
  15  Prefactor     .10000E-03    15.291        .95888E-06** at limit **
  16  Prefactor     .10005E-03    1.9227        .70453E-06** at limit **
  17  Prefactor     .10000E-03    3.9517        .38997E-06** at limit **
  18  norm          .10000E-03    8.8028        .51380E-07** at limit **
  19  Normalizat    .45980        .24635       -.36228E-04   -.94673E-04
  20  Prefactor     1.4153        .16821        .51142E-05   -.25758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 97.5511
  Prefactor  = 1.82561
  Prefactor  = 0.0001
  Prefactor  = 5.20243
  Prefactor  = 142.746
  Prefactor  = 6.63369
  Prefactor  = 4.81458
  Prefactor  = 12.014
  Prefactor  = 0.0001
  norm       = 5.27791
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.22312
  Prefactor  = 0.000100001
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.459799
  Prefactor  = 1.41526
 **********
 **   18 **HESSE 
 **********

 FCN=   5252.698     FROM HESSE     STATUS=OK           293 CALLS     2389 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     97.551        85.668        .20361E-03   -1.3729    
   3  Prefactor     1.8256        21.653        .30818E-03   -1.5438    
   4  Prefactor     .10000E-03    5.0883        .15966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2024        6.6726        .17623E-03   -1.5252    
   6  Prefactor     142.75        181.13        .16885E-03   -1.3313    
   7  Prefactor     6.6337        7.1249        .15592E-03   -1.5193    
   8  Prefactor     4.8146        34.511        .18171E-03   -1.5269    
   9  Prefactor     12.014        19.145        .11565E-03   -1.5015    
  10  Prefactor     .10000E-03    28.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2779        1.8664        .56494E-04   -1.5248    
  12  Prefactor     .10000E-03    1.3731        .16380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22312        1.3079        .15841E-03   -1.5614    
  15  Prefactor     .10000E-03    15.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10005E-03    22.199        .19429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.9732        .14067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.8036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .45980        .25335        .40743E-03   -1.1432    
  20  Prefactor     1.4153        .17751        .18222E-03   -.79942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56948e-09
Minuit parameter uncertainties:
  1  1.75142e-05
  2  85.7766
  3  12.5801
  4  6.64377e-05
  5  6.67352
  6  181.846
  7  7.12578
  8  25.801
  9  19.1546
  10  2.44346e-05
  11  1.8664
  12  1.96837e-05
  13  0.000745547
  14  1.0802
  15  0.000183875
  16  0.00207316
  17  7.9858e-05
  18  6.28633e-06
  19  0.253989
  20  0.177587
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.201e+01  1.915e+01  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.415e+00  1.776e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  4.598e-01  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 53.033 -11.395
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600796/likelihoodResults_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.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) = 5252.04294026
delta logL = 0.655439878837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5252.02723301
delta logL = 0.671147130032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13776       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8927       1.0000          .0000       10.000    
     3 'Normalizat'    .37491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4620       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5252.027     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      279 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13575        1.6993        .46705E-02    .21075E-02
   2  Index         4.8989        2.2976        .10730        .15416E-03
   3  Normalizat    .37458        .51073E-01    .10147        .47865E-04
   4  Prefactor     1.4623        .38428E-01    .30257E-01   -.59101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.135751
  Index      = 4.89894
  Normalizat = 0.374579
  Prefactor  = 1.4623
 **********
 **   18 **HESSE 
 **********

 FCN=   5252.027     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      314 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13575        4.2642        .21269E-03   -1.5634    
   2  Index         4.8989        4.0836        .38954E-02   -.20214E-01
   3  Normalizat    .37458        .18600        .44966E-03   -1.1864    
   4  Prefactor     1.4623        .13737        .17966E-03   -.78601    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.34959e-11
Minuit parameter uncertainties:
  1  1.52122
  2  4.77899
  3  0.186308
  4  0.137405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600796': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5252.02722853
delta logL = 0.671151608211

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.358e-01  1.521e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  4.899e+00  4.779e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.286e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.462e+00  1.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  3.746e-01  1.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 53.033 -11.395
Photon Index (Free Index): 4.90 +/- 4.78
Photon Flux (Free Index): 9.50e-08 +/- 7.70e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.28e-05

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/600796/cmap_HighResolution_287539201_287798401_4FGL_J0332.1-1123_daily_bin186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='6.71e-01', photon_flux2='9.50e-08', job_status='DONE', time_completed='2021-08-18 15:28:10.377829', photon_index_error2='4.78', photon_index2='4.90', ts='0.47', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.28e-05', EG='0.46', time_epoch_completed='1629325690.38', return_code='0', job_id='600796', GAL2='1.46', EG2='0.37', return_code2='102', photon_flux_error2='7.70e-08', ts2='2.03', photon_index='2.39' WHERE bin_id='186' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 15:28:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 600796: <4FGL_J0332.1-1123_daily_bin186> in cluster <slac> Done

Job <4FGL_J0332.1-1123_daily_bin186> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Aug 18 15:12:02 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 15:14:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 15:14:13 2021
Terminated at Wed Aug 18 15:28:12 2021
Results reported at Wed Aug 18 15:28:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0332.1-1123_daily_bin186 53.0335 -11.3949 287539201 287798401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0332.1-1123 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   801.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            970 sec.

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

