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


Performing analysis on: 4FGL_J0332.1-1123_daily_bin1514
RA = 53.0335, Dec = -11.3949
tmin = 631756801, tmax = 632016001
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='613760', job_status='RUN', time_executed='2021-08-18 15:54:50.520684', time_epoch_executed='1629327290.52' WHERE source_name='4FGL J0332.1-1123' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/613760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/613760/ft1_4FGL_J0332.1-1123_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/613760/ft2_4FGL_J0332.1-1123_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/613760/ft1_4FGL_J0332.1-1123_daily_bin1514.fits outfile=/scratch/kocevski/613760/ft1_filteredMKT_4FGL_J0332.1-1123_daily_bin1514.fits ra=53.0335 dec=-11.3949 rad=12.0 tmin=631756801.0 tmax=632016001.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 5.03
user 2.18
sys 2.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/613760/ft1_filtered_4FGL_J0332.1-1123_daily_bin1514.fits" evtable="EVENTS" scfile=/scratch/kocevski/613760/ft2_4FGL_J0332.1-1123_daily_bin1514.fits sctable="SC_DATA" outfile=/scratch/kocevski/613760/ltcube_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.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/613760/ft2_4FGL_J0332.1-1123_daily_bin1514.fits
.....................!
real 17.06
user 12.57
sys 2.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/613760/ft1_filtered_4FGL_J0332.1-1123_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/613760/ft2_4FGL_J0332.1-1123_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/613760/ltcube_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.fits outfile=/scratch/kocevski/613760/expmap_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.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/613760/ltcube_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.fits
.....................!
real 203.37
user 184.40
sys 9.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/613760/ft1_filtered_4FGL_J0332.1-1123_daily_bin1514.fits scfile=/scratch/kocevski/613760/ft2_4FGL_J0332.1-1123_daily_bin1514.fits outfile=/scratch/kocevski/613760/cmap_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.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 4.80
user 0.37
sys 2.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/613760/ft1_filtered_4FGL_J0332.1-1123_daily_bin1514.fits scfile=/scratch/kocevski/613760/ft2_4FGL_J0332.1-1123_daily_bin1514.fits outfile=/scratch/kocevski/613760/cmap_HighResolution_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.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 4.67
user 0.38
sys 2.34

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/613760/ft1_filtered_4FGL_J0332.1-1123_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/613760/ft2_4FGL_J0332.1-1123_daily_bin1514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/613760/Model_4FGL_J0332.1-1123_daily_bin1514.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/613760/ft1_filtered_4FGL_J0332.1-1123_daily_bin1514.fits.....................!
real 69.15
user 57.13
sys 4.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.001       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56982E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22808E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10723E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10250E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2389       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.044       1.0000         .10000E-03   10000.    
    18 'norm      '    2.1119       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2564       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80644       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=   4486.184     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2099 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.334        .71619E-06** at limit **
   2  Prefactor     43.058        64.748        .70211E-04    .31139E-05
   3  Prefactor     .10000E-03    6.2774        .69084E-07** at limit **
   4  Prefactor     .10000E-03    8.1523       -.46397E-05** at limit **
   5  Prefactor     .10000E-03    8.0968        .51184E-05** at limit **
   6  Prefactor     .10000E-03    86.673        .20154E-05** at limit **
   7  Prefactor     .10012E-03    3.5128       -.87124E-06** at limit **
   8  Prefactor     .10000E-03    19.699        .83514E-06** at limit **
   9  Prefactor     .10000E-03    12.665        .57021E-05** at limit **
  10  Prefactor     .10000E-03    17.114       -.14082E-05** at limit **
  11  norm          .10000E-03    .63218        .14817E-06** at limit **
  12  Prefactor     .10000E-03    .90608       -.17395E-07** at limit **
  13  Prefactor     .10000E-03    11.684       -.14453E-05** at limit **
  14  norm          .21503        1.5230       -.57079E-06   -.16449E-02
  15  Prefactor     .10000E-03    11.023       -.34605E-05** at limit **
  16  Prefactor     7.2350        4.4351        .26573E-06   -.20259E-04
  17  Prefactor     10.048        8.5977        .35902E-06   -.45466E-04
  18  norm          2.1021        67.953       -.64809E-05   -.42453E-04
  19  Normalizat    1.2558        .20980       -.37995E-05   -.15715E-04
  20  Prefactor     .80691        .14460       -.33329E-06   -.23395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 43.0584
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100116
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.215033
  Prefactor  = 0.0001
  Prefactor  = 7.23498
  Prefactor  = 10.0479
  norm       = 2.1021
  Normalizat = 1.25581
  Prefactor  = 0.80691
 **********
 **   18 **HESSE 
 **********

 FCN=   4486.184     FROM HESSE     STATUS=OK           289 CALLS     2388 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.497        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.058        64.528        .61134E-04   -1.4395    
   3  Prefactor     .10000E-03    6.2936        .16389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.4286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    86.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10012E-03    28.583        .22786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    105.09        .52836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .89797        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .91231        .62191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21503        1.5588        .15674E-03   -1.5615    
  15  Prefactor     .10000E-03    11.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.2350        4.4040        .10528E-03   -1.5170    
  17  Prefactor     10.048        8.6041        .12643E-03   -1.5074    
  18  norm          2.1021        68.592        .28388E-03   -1.5418    
  19  Normalizat    1.2558        .23794        .24559E-03   -.84895    
  20  Prefactor     .80691        .16688        .21134E-03   -.99474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05232e-09
Minuit parameter uncertainties:
  1  0.000463026
  2  64.6327
  3  1.56468e-05
  4  0.000150736
  5  2.55332e-05
  6  1.62026e-05
  7  0.00364261
  8  0.00122643
  9  2.47653e-05
  10  1.4538e-05
  11  1.10957e-05
  12  5.40045e-06
  13  2.03355e-05
  14  1.1577
  15  2.17498e-05
  16  4.40415
  17  8.60511
  18  24.0451
  19  0.238142
  20  0.166985
Done.

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

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  2.477e-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:  8.069e-01  1.670e-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.256e+00  2.381e-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: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/613760/likelihoodResults_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.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) = 4486.18462676
delta logL = -0.000372635731765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4486.18425415
delta logL = -2.19370122068e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4162       1.0000          .0000       10.000    
     3 'Normalizat'    1.2557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80700       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=   4486.168     FROM MIGRAD    STATUS=FAILED       144 CALLS      298 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27041        56.018        .26724E-01   -.10469E-02
   2  Index         3.6692        2.6974        .36780        .13099E-04
   3  Normalizat    1.2441        .50245E-01    .24559E-03   -.86103E-05
   4  Prefactor     .81071        .31807E-01    .21134E-03   -.31738E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4486.168     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      377 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27041        56.018        .16486E-03   -.10469E-02
   2  Index         3.6692        2.6974        .24990E-02    .13099E-04
   3  Normalizat    1.2441        .50245E-01    .99201E-04   -.86103E-05
   4  Prefactor     .81071        .31807E-01    .52386E-04   -.31738E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4486.168     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      427 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27041        3.2254         .0000       -.40257E-02
   2  Index         3.6692        2.4715         .0000        .45871E-05
   3  Normalizat    1.2441        .24235         .0000       -.17359E-04
   4  Prefactor     .81071        .16725         .0000       -.88760E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.270407
  Index      = 3.66923
  Normalizat = 1.2441
  Prefactor  = 0.810709
 **********
 **   18 **HESSE 
 **********

 FCN=   4486.168     FROM HESSE     STATUS=OK            27 CALLS      454 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27041        4.2195        .26754E-03   -1.5812    
   2  Index         3.6692        2.7657        .21196E-03   -.26940    
   3  Normalizat    1.2441        .24193        .19647E-05   -.85251    
   4  Prefactor     .81071        .16697        .16907E-05   -.99335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96141e-11
Minuit parameter uncertainties:
  1  2.13612
  2  2.9457
  3  0.242147
  4  0.167075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/613760': 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) = 4486.16823814
delta logL = 0.0160159876032

Extracting fit parameters...

4FGL J0332.1-1123
   Spectrum: PowerLaw
292    Prefactor:  2.704e-01  2.136e+00  1.000e-04  1.000e+04 ( 1.000e-13)
293        Index:  3.669e+00  2.946e+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:  8.107e-01  1.671e-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.244e+00  2.421e-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/613760/cmap_HighResolution_631756801_632016001_4FGL_J0332.1-1123_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-08-18 16:04:54.750502', job_id='613760', GAL2='0.81', fit_tolerance='1e-08', EG2='1.24', EG='1.26', time_epoch_completed='1629327894.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.60e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1514' AND source_name='4FGL J0332.1-1123' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 16:04:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 613760: <4FGL_J0332.1-1123_daily_bin1514> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0332.1-1123_daily_bin1514 53.0335 -11.3949 631756801 632016001 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 :                                   607.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

