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


Performing analysis on: 4FGL_J0332.1-1123_daily_bin1545
RA = 53.0335, Dec = -11.3949
tmin = 639792001, tmax = 640051201
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='613805', job_status='RUN', time_executed='2021-08-18 15:54:13.371958', time_epoch_executed='1629327253.37' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613805/ft1_4FGL_J0332.1-1123_daily_bin1545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613805/ft1_4FGL_J0332.1-1123_daily_bin1545.fits outfile=/scratch/kocevski/613805/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1545.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=639792001.0 tmax=640051201.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.85
user 3.28
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.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/613805/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1545.fits evtable="EVENTS" outfile="/scratch/kocevski/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.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.81
user 0.32
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits" evtable="EVENTS" scfile=/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits sctable="SC_DATA" outfile=/scratch/kocevski/613805/ltcube_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.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/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits
.....................!
real 12.47
user 11.77
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits sctable="SC_DATA" expcube=/scratch/kocevski/613805/ltcube_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.fits outfile=/scratch/kocevski/613805/expmap_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.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/613805/ltcube_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.fits
.....................!
real 191.12
user 185.50
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 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/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits scfile=/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits outfile=/scratch/kocevski/613805/cmap_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.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 1.03
user 0.38
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits scfile=/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits outfile=/scratch/kocevski/613805/cmap_HighResolution_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.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 0.93
user 0.38
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits evtable="EVENTS" scfile=/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/613805/Model_4FGL_J0332.1-1123_daily_bin1545.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/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits.....................!
real 76.42
user 73.91
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits', '/scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits', expMap='/scratch/kocevski/613805/expmap_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.fits', expCube='/scratch/kocevski/613805/ltcube_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/613805/Model_4FGL_J0332.1-1123_daily_bin1545.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/613805/ft1_filtered_4FGL_J0332.1-1123_daily_bin1545.fits
Spacecraft file(s): /scratch/kocevski/613805/ft2_4FGL_J0332.1-1123_daily_bin1545.fits
Exposure map: /scratch/kocevski/613805/expmap_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.fits
Exposure cube: /scratch/kocevski/613805/ltcube_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/613805/Model_4FGL_J0332.1-1123_daily_bin1545.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) = 6026.88019369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5232       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1528       1.0000         .10000E-03   10000.    
     6 'Prefactor '    347.76       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.862       1.0000         .10000E-03   10000.    
    11 'norm      '    .79573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1533       1.0000         .10000E-03   10000.    
    14 'norm      '    .61792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9398       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4559       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90801       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=   6026.611     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     2132 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5273        9.7787        .58469E-05    .62714E-04
   2  Prefactor     .10000E-03    20.667       -.89004E-07** at limit **
   3  Prefactor     .10000E-03    17.174       -.12117E-05** at limit **
   4  Prefactor     .10000E-03    3.7845       -.21454E-07** at limit **
   5  Prefactor     5.1543        6.0491        .52691E-05    .20260E-03
   6  Prefactor     348.74        333.56        .63468E-05    .11384E-03
   7  Prefactor     .10000E-03    2.3210        .19962E-06** at limit **
   8  Prefactor     15.787        19.736        .10142E-05   -.23366E-04
   9  Prefactor     .10000E-03    17.175       -.12295E-05** at limit **
  10  Prefactor     36.862        37.238        .67258E-07   -.20011E-04
  11  norm          .79552        1.4565        .26051E-06    .15788E-03
  12  Prefactor     .10000E-03    1.5954        .13260E-05** at limit **
  13  Prefactor     8.1579        26.637        .14033E-05   -.18203E-04
  14  norm          .61823        1.4938        .10624E-05    .83142E-04
  15  Prefactor     .10000E-03    15.837        .36918E-07** at limit **
  16  Prefactor     3.9406        3.4532        .45806E-07   -.10523E-03
  17  Prefactor     .10000E-03    7.1635       -.55296E-06** at limit **
  18  norm          .10000E-03    17.910       -.67032E-07** at limit **
  19  Normalizat    1.4550        .22725       -.74055E-05    .12853E-03
  20  Prefactor     .90857        .14813        .31140E-05   -.39579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.52725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.15427
  Prefactor  = 348.741
  Prefactor  = 0.0001
  Prefactor  = 15.7872
  Prefactor  = 0.0001
  Prefactor  = 36.8624
  norm       = 0.795522
  Prefactor  = 0.0001
  Prefactor  = 8.15795
  norm       = 0.618233
  Prefactor  = 0.0001
  Prefactor  = 3.94059
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.45504
  Prefactor  = 0.908569
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.611     FROM HESSE     STATUS=OK           285 CALLS     2417 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5273        9.7675        .85479E-03   -1.5238    
   2  Prefactor     .10000E-03    20.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7850        .14750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1543        6.0820        .88552E-03   -1.5254    
   6  Prefactor     348.74        333.94        .10916E-03   -1.1951    
   7  Prefactor     .10000E-03    2.3584        .11543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.787        19.755        .10082E-03   -1.4913    
   9  Prefactor     .10000E-03    17.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.862        37.225        .66011E-04   -1.4493    
  11  norm          .79552        1.4201        .12026E-03   -1.5530    
  12  Prefactor     .10000E-03    1.6379        .19094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1579        26.609        .14041E-03   -1.5137    
  14  norm          .61823        1.4702        .14055E-03   -1.5551    
  15  Prefactor     .10000E-03    15.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9406        3.4458        .13008E-03   -1.5311    
  17  Prefactor     .10000E-03    7.2646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    17.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4550        .25424        .27323E-03   -.79050    
  20  Prefactor     .90857        .16780        .22899E-03   -.95842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44863e-09
Minuit parameter uncertainties:
  1  9.77029
  2  1.27256e-05
  3  1.613e-05
  4  1.45235e-07
  5  6.08274
  6  335.815
  7  6.16528e-07
  8  19.7635
  9  2.05039e-05
  10  37.2487
  11  1.42012
  12  1.1195e-06
  13  26.6476
  14  1.47026
  15  4.7741e-06
  16  3.44595
  17  4.06096e-05
  18  2.03724e-05
  19  0.254465
  20  0.167894
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  2.050e-05  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:  9.086e-01  1.679e-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:  1.455e+00  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.033 -11.395
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613805/likelihoodResults_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.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) = 6026.61093368
delta logL = -0.000274903924947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6026.61065877
delta logL = 6.45377440378e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4084       1.0000          .0000       10.000    
     3 'Normalizat'    1.4550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90858       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.

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

 FCN=   6026.611     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2151.2        .18142E-02** at limit **
   2  Index         2.4291        7.6908        .50000       -.11348E-04
   3  Normalizat    1.4550        .78807E-01    .27323E-03    .71441E-04
   4  Prefactor     .90857        .54014E-01    .22899E-03    .64640E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6026.611     FROM SIMPLEX   STATUS=UNCHANGED    179 CALLS      423 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2151.2        .65397E-03** at limit **
   2  Index         2.4291        7.6908        .24469E-06   -.11348E-04
   3  Normalizat    1.4550        .78807E-01    .20851E-07    .71441E-04
   4  Prefactor     .90857        .54014E-01    .25495E-08    .64640E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6026.611     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      457 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.213        .36285E-03** at limit **
   2  Index         2.4292        6.1498        .50000       -.11352E-04
   3  Normalizat    1.4550        .24129        .10929E-04    .68861E-04
   4  Prefactor     .90857        .16551        .91596E-05    .61810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.42918
  Normalizat = 1.45503
  Prefactor  = 0.908574
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.611     FROM HESSE     STATUS=OK            29 CALLS      486 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.085        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4292        6.2139        .50000       -.54003    
   3  Normalizat    1.4550        .24125        .21859E-05   -.79050    
   4  Prefactor     .90857        .16552        .18319E-05   -.95842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32525e-10
Minuit parameter uncertainties:
  1  0.000405156
  2  4.32201
  3  0.241436
  4  0.16561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613805': 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) = 6026.61065868
delta logL = 9.57888914854e-08

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  4.052e-04  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.429e+00  4.322e+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:  9.086e-01  1.656e-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:  1.455e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.033 -11.395

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/613805/cmap_HighResolution_639792001_640051201_4FGL_J0332.1-1123_daily_bin1545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-18 16:04:34.680647', job_id='613805', GAL2='0.91', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1629327874.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1545' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 16:04:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 613805: <4FGL_J0332.1-1123_daily_bin1545> in cluster <slac> Done

Job <4FGL_J0332.1-1123_daily_bin1545> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Aug 18 15:52:26 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 15:52:27 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:52:27 2021
Terminated at Wed Aug 18 16:04:35 2021
Results reported at Wed Aug 18 16:04:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0332.1-1123_daily_bin1545 53.0335 -11.3949 639792001 640051201 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 :                                   617.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            729 sec.

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

