/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 38 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_bin1530
RA = 53.0335, Dec = -11.3949
tmin = 635904001, tmax = 636163201
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='613783', job_status='RUN', time_executed='2021-08-18 15:56:49.346828', time_epoch_executed='1629327409.35' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613783/ft1_4FGL_J0332.1-1123_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613783/ft1_4FGL_J0332.1-1123_daily_bin1530.fits outfile=/scratch/kocevski/613783/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1530.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=635904001.0 tmax=636163201.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 18.85
user 3.98
sys 9.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.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/613783/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1530.fits evtable="EVENTS" outfile="/scratch/kocevski/613783/ft1_filtered_4FGL_J0332.1-1123_daily_bin1530.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 17.71
user 0.33
sys 9.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613783/ft1_filtered_4FGL_J0332.1-1123_daily_bin1530.fits" evtable="EVENTS" scfile=/scratch/kocevski/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.fits sctable="SC_DATA" outfile=/scratch/kocevski/613783/ltcube_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.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/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.fits
.....................!
real 32.24
user 13.80
sys 10.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613783/ft1_filtered_4FGL_J0332.1-1123_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/613783/ltcube_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.fits outfile=/scratch/kocevski/613783/expmap_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.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/613783/ltcube_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.fits
.....................!
real 213.45
user 184.68
sys 16.11

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/613783/ft1_filtered_4FGL_J0332.1-1123_daily_bin1530.fits scfile=/scratch/kocevski/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.fits outfile=/scratch/kocevski/613783/cmap_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.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 9.76
user 0.39
sys 8.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613783/ft1_filtered_4FGL_J0332.1-1123_daily_bin1530.fits scfile=/scratch/kocevski/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.fits outfile=/scratch/kocevski/613783/cmap_HighResolution_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.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 10.16
user 0.37
sys 8.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/613783/ft1_filtered_4FGL_J0332.1-1123_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/613783/ft2_4FGL_J0332.1-1123_daily_bin1530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/613783/Model_4FGL_J0332.1-1123_daily_bin1530.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/613783/ft1_filtered_4FGL_J0332.1-1123_daily_bin1530.fits.....................!
real 75.83
user 60.69
sys 12.88

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34374       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.393       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.746       1.0000         .10000E-03   10000.    
    11 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.635       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.180       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9144       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5592       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0041       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=   4865.105     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2093 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30562        9.8035        .15823E-06   -.22400E-03
   2  Prefactor     .10000E-03    31.447       -.15099E-05** at limit **
   3  Prefactor     4.2186        11.868       -.62692E-05   -.11296E-03
   4  Prefactor     10.392        11.661        .17246E-05    .28253E-05
   5  Prefactor     .10000E-03    1.4845        .20872E-08** at limit **
   6  Prefactor     .10000E-03    126.03        .15155E-05** at limit **
   7  Prefactor     .10000E-03    2.6344        .18630E-07** at limit **
   8  Prefactor     2.4816        59.328        .13000E-04   -.23522E-04
   9  Prefactor     7.3074        10.826        .40594E-05   -.44300E-04
  10  Prefactor     10.743        57.277        .69063E-05   -.48899E-05
  11  norm          .10000E-03    .78927        .38145E-08** at limit **
  12  Prefactor     3.0948        2.9094        .15806E-06   -.20198E-03
  13  Prefactor     76.571        51.692       -.43643E-04   -.86917E-04
  14  norm          .10000E-03    .43306        .74434E-08** at limit **
  15  Prefactor     24.191        43.309        .33648E-04   -.11729E-04
  16  Prefactor     5.4714        4.0178       -.66929E-07   -.91352E-04
  17  Prefactor     5.9091        10.046        .10811E-04   -.13641E-03
  18  norm          5.5520        29.732       -.22405E-05   -.20211E-04
  19  Normalizat    1.0386        .22570       -.13702E-05   -.51125E-04
  20  Prefactor     1.0036        .14641        .78088E-06   -.15311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.305617
  Prefactor  = 0.0001
  Prefactor  = 4.21858
  Prefactor  = 10.3915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.48165
  Prefactor  = 7.30739
  Prefactor  = 10.7431
  norm       = 0.0001
  Prefactor  = 3.09483
  Prefactor  = 76.5712
  norm       = 0.0001
  Prefactor  = 24.1914
  Prefactor  = 5.47145
  Prefactor  = 5.90914
  norm       = 5.55196
  Normalizat = 1.03857
  Prefactor  = 1.00362
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.105     FROM HESSE     STATUS=OK           301 CALLS     2394 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30562        81.612        .41050E-02   -1.5597    
   2  Prefactor     .10000E-03    31.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2186        11.867        .19617E-03   -1.5297    
   4  Prefactor     10.392        11.662        .12429E-03   -1.5063    
   5  Prefactor     .10000E-03    1.4873        .82987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    126.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6405        .11045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4816        58.811        .25800E-03   -1.5393    
   9  Prefactor     7.3074        10.824        .14834E-03   -1.5167    
  10  Prefactor     10.743        56.968        .12222E-03   -1.5052    
  11  norm          .10000E-03    4.6751        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0948        2.9037        .11060E-03   -1.5356    
  13  Prefactor     76.571        51.813        .22935E-03   -1.3956    
  14  norm          .10000E-03    .43415        .44802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.191        43.256        .81462E-04   -1.4724    
  16  Prefactor     5.4714        4.0175        .11601E-03   -1.5240    
  17  Prefactor     5.9091        10.020        .16512E-03   -1.5222    
  18  norm          5.5520        29.861        .17040E-03   -1.5237    
  19  Normalizat    1.0386        .26154        .28617E-03   -.91749    
  20  Prefactor     1.0036        .16857        .20129E-03   -.92609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31094e-09
Minuit parameter uncertainties:
  1  10.0005
  2  6.21514e-06
  3  11.8739
  4  11.6642
  5  1.10395e-06
  6  6.62818e-05
  7  8.25426e-06
  8  24.188
  9  10.8271
  10  49.5516
  11  5.25158e-06
  12  2.90387
  13  51.8439
  14  1.249e-06
  15  43.3116
  16  4.01767
  17  10.0225
  18  25.7714
  19  0.261867
  20  0.168663
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  7.307e+00  1.083e+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.004e+00  1.687e-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.039e+00  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/613783/likelihoodResults_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.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) = 4865.0929078
delta logL = 0.0120160571159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4865.08754259
delta logL = 0.0173812625835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0957       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6209       1.0000          .0000       10.000    
     3 'Normalizat'    1.0315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0061       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4865.088     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      261 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0889        13.460        .81307E-03    .92798E-04
   2  Index         2.6211        1.4186        .96036E-02    .28955E-03
   3  Normalizat    1.0316        .24266        .28702E-03   -.95064E-06
   4  Prefactor     1.0060        .16634        .20107E-03    .63326E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.08889
  Index      = 2.62107
  Normalizat = 1.03164
  Prefactor  = 1.00603
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.088     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0889        11.827        .16261E-03   -1.5214    
   2  Index         2.6211        1.2508        .19207E-02   -.49586    
   3  Normalizat    1.0316        .24224        .11481E-04   -.91978    
   4  Prefactor     1.0060        .16626        .80428E-05   -.92529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25348e-11
Minuit parameter uncertainties:
  1  11.8319
  2  1.2683
  3  0.242502
  4  0.166346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613783': 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) = 4865.08754211
delta logL = 0.0173817471969

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  6.089e+00  1.183e+01  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.621e+00  1.268e+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.006e+00  1.663e-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.032e+00  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/613783/cmap_HighResolution_635904001_636163201_4FGL_J0332.1-1123_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-08-18 16:08:59.795825', job_id='613783', GAL2='1.01', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1629328139.8', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.74e-02', ts2='0.77', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1530' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 16:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 613783: <4FGL_J0332.1-1123_daily_bin1530> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0332.1-1123_daily_bin1530 53.0335 -11.3949 635904001 636163201 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 :                                   817.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             219.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

