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


Performing analysis on: 4FGL_J0332.1-1123_daily_bin1621
RA = 53.0335, Dec = -11.3949
tmin = 659491201, tmax = 659750401
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='175012', job_status='RUN', time_executed='2021-12-07 14:07:21.355565', time_epoch_executed='1638914841.36' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175012/ft1_4FGL_J0332.1-1123_daily_bin1621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175012/ft2_4FGL_J0332.1-1123_daily_bin1621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175012/ft1_4FGL_J0332.1-1123_daily_bin1621.fits outfile=/scratch/kocevski/175012/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1621.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=659491201.0 tmax=659750401.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 2.54
user 2.35
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175012/ft1_filtered_4FGL_J0332.1-1123_daily_bin1621.fits" evtable="EVENTS" scfile=/scratch/kocevski/175012/ft2_4FGL_J0332.1-1123_daily_bin1621.fits sctable="SC_DATA" outfile=/scratch/kocevski/175012/ltcube_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.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/175012/ft2_4FGL_J0332.1-1123_daily_bin1621.fits
.....................!
real 12.61
user 12.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175012/ft1_filtered_4FGL_J0332.1-1123_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/175012/ft2_4FGL_J0332.1-1123_daily_bin1621.fits sctable="SC_DATA" expcube=/scratch/kocevski/175012/ltcube_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.fits outfile=/scratch/kocevski/175012/expmap_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.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/175012/ltcube_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.fits
.....................!
real 191.68
user 185.65
sys 5.70

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/175012/ft1_filtered_4FGL_J0332.1-1123_daily_bin1621.fits scfile=/scratch/kocevski/175012/ft2_4FGL_J0332.1-1123_daily_bin1621.fits outfile=/scratch/kocevski/175012/cmap_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.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 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175012/ft1_filtered_4FGL_J0332.1-1123_daily_bin1621.fits scfile=/scratch/kocevski/175012/ft2_4FGL_J0332.1-1123_daily_bin1621.fits outfile=/scratch/kocevski/175012/cmap_HighResolution_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175012/ft1_filtered_4FGL_J0332.1-1123_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/175012/ft2_4FGL_J0332.1-1123_daily_bin1621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175012/Model_4FGL_J0332.1-1123_daily_bin1621.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/175012/ft1_filtered_4FGL_J0332.1-1123_daily_bin1621.fits.....................!
real 36.96
user 35.49
sys 1.40

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5489       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.568       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    95.699       1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1136       1.0000         .10000E-03   10000.    
    14 'norm      '    1.2122       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11383E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.689       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0911       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .52297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2234.109     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     1691 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    22.214        .41880E-04** at limit **
   2  Prefactor     .10081E-03    22.760        .41202E-04** at limit **
   3  Prefactor     8.5437        1.3717       -.18676E-05    .54370E-03
   4  Prefactor     .10000E-03    10.092       -.73535E-06** at limit **
   5  Prefactor     16.570        1.0348       -.36421E-06    .68076E-04
   6  Prefactor     .10005E-03    30.408       -.30462E-04** at limit **
   7  Prefactor     2.2335        5.3952       -.58191E-05    .48242E-04
   8  Prefactor     .10014E-03    7.8258       -.84027E-05** at limit **
   9  Prefactor     .10012E-03    8.0742        .12780E-04** at limit **
  10  Prefactor     95.699        1.0248        .14018E-06   -.76873E-03
  11  norm          .10000E-03    6.6407        .50425E-06** at limit **
  12  Prefactor     .10000E-03    1.6985       -.11473E-05** at limit **
  13  Prefactor     5.0984        3.0515       -.76283E-05    .15070E-02
  14  norm          1.2119        1.4967       -.38934E-06    .20171E-03
  15  Prefactor     .10011E-03    31.847       -.33237E-04** at limit **
  16  Prefactor     .10000E-03    2.9604        .10832E-05** at limit **
  17  Prefactor     32.687        1.0113        .49449E-07   -.72802E-04
  18  norm          .10000E-03    27.450       -.32958E-04** at limit **
  19  Normalizat    1.0910        .29505        .48450E-05   -.39651E-04
  20  Prefactor     .52295        .20608        .66979E-06   -.20624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100102
  Prefactor  = 0.000100806
  Prefactor  = 8.54368
  Prefactor  = 0.0001
  Prefactor  = 16.5702
  Prefactor  = 0.000100048
  Prefactor  = 2.23348
  Prefactor  = 0.000100145
  Prefactor  = 0.000100118
  Prefactor  = 95.6993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.09836
  norm       = 1.21189
  Prefactor  = 0.000100114
  Prefactor  = 0.0001
  Prefactor  = 32.687
  norm       = 0.000100003
  Normalizat = 1.09103
  Prefactor  = 0.52295
 **********
 **   18 **HESSE 
 **********

 FCN=   2234.109     FROM HESSE     STATUS=OK           329 CALLS     2020 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    36.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10081E-03    49.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.5437        23.734        .34275E-02   -1.5123    
   4  Prefactor     .10000E-03    10.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.570        14.446        .24600E-02   -1.4894    
   6  Prefactor     .10005E-03    66.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2335        5.4577        .68772E-02   -1.5409    
   8  Prefactor     .10014E-03    14.379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10012E-03    14.127        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     95.699        72.840        .10272E-02   -1.3748    
  11  norm          .10000E-03    6.4420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0984        38.680        .44449E-02   -1.5256    
  14  norm          1.2119        1.5338        .10268E-01   -1.5488    
  15  Prefactor     .10011E-03    67.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.687        17.128        .17521E-02   -1.4564    
  18  norm          .10000E-03    29.978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0910        .27658        .38376E-01   -.90040    
  20  Prefactor     .52295        .19035        .39993E-01   -1.1094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3156e-08
Minuit parameter uncertainties:
  1  0.00386964
  2  0.0126331
  3  23.7597
  4  6.81494e-05
  5  14.4486
  6  0.00359367
  7  5.4589
  8  0.00288655
  9  0.00258653
  10  72.9079
  11  1.68799e-05
  12  5.50761e-06
  13  28.1111
  14  1.53387
  15  0.00555245
  16  1.40135e-07
  17  17.1302
  18  0.000647228
  19  0.276945
  20  0.190584
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.001e-04  2.587e-03  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:  5.229e-01  1.906e-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.091e+00  2.769e-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.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175012/likelihoodResults_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.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) = 2234.10948425
delta logL = -0.000336522547514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2234.10914838
delta logL = -6.50557467452e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3872       1.0000          .0000       10.000    
     3 'Normalizat'    1.0907       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52318       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=   2234.109     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.938        .90712E-02** at limit **
   2  Index         2.3848        8.4773        .50000        .14729E-05
   3  Normalizat    1.0910        .92224E-02    .38391E-01    .94401E-04
   4  Prefactor     .52295        .64858E-02    .39996E-01   -.31902E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.38483
  Normalizat = 1.09103
  Prefactor  = 0.522948
 **********
 **   18 **HESSE 
 **********

 FCN=   2234.109     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      228 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    192.68        .17356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3848        7.0595        .50000       -.55041    
   3  Normalizat    1.0910        .26537E-01    .23540E-03   -.90040    
   4  Prefactor     .52295        .18654E-01    .23078E-03   -1.1094    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91512e-08
Minuit parameter uncertainties:
  1  0.00168297
  2  665.757
  3  0.0265368
  4  0.0186541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175012': 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) = 2234.10914772
delta logL = 5.71435521124e-09

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.683e-03  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  2.385e+00  6.658e+02  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:  5.229e-01  1.865e-02  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.091e+00  2.654e-02  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/175012/cmap_HighResolution_659491201_659750401_4FGL_J0332.1-1123_daily_bin1621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-12-07 14:14:00.611724', job_id='175012', GAL2='0.52', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1638915240.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='5.71e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1621' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:14:00 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 175012: <4FGL_J0332.1-1123_daily_bin1621> in cluster <slac> Done

Job <4FGL_J0332.1-1123_daily_bin1621> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 14:05:22 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:06:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:06:13 2021
Terminated at Tue Dec  7 14:14:01 2021
Results reported at Tue Dec  7 14:14:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0332.1-1123_daily_bin1621 53.0335 -11.3949 659491201 659750401 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 :                                   399.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   467 sec.
    Turnaround time :                            519 sec.

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

