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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1599
RA = 53.5556, Dec = -37.4327
tmin = 653788801, tmax = 654048001
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='947917', job_status='RUN', time_executed='2021-09-23 00:08:16.628335', time_epoch_executed='1632380896.63' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947917

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947917/ft1_4FGL_J0334.2-3725_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947917/ft1_4FGL_J0334.2-3725_daily_bin1599.fits outfile=/scratch/kocevski/947917/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1599.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=653788801.0 tmax=654048001.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.95
user 3.69
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.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/947917/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.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.50
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/947917/ltcube_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.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/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits
.....................!
real 14.09
user 13.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/947917/ltcube_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.fits outfile=/scratch/kocevski/947917/expmap_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.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/947917/ltcube_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.fits
.....................!
real 194.10
user 188.55
sys 5.06

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 179 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0334.2-3725 @ 53.5556 -37.4327

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits scfile=/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits outfile=/scratch/kocevski/947917/cmap_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.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.5556 yref=-37.4327 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits scfile=/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits outfile=/scratch/kocevski/947917/cmap_HighResolution_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.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.5556 yref=-37.4327 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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/947917/Model_4FGL_J0334.2-3725_daily_bin1599.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits.....................!
real 110.13
user 108.61
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits', '/scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits', expMap='/scratch/kocevski/947917/expmap_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.fits', expCube='/scratch/kocevski/947917/ltcube_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/947917/Model_4FGL_J0334.2-3725_daily_bin1599.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0334.2-3725'

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  3.336e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  6.798e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  9.584e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/947917/ft1_filtered_4FGL_J0334.2-3725_daily_bin1599.fits
Spacecraft file(s): /scratch/kocevski/947917/ft2_4FGL_J0334.2-3725_daily_bin1599.fits
Exposure map: /scratch/kocevski/947917/expmap_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.fits
Exposure cube: /scratch/kocevski/947917/ltcube_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/947917/Model_4FGL_J0334.2-3725_daily_bin1599.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) = 5285.91954784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85528E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.641       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.119       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14827E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.6496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46168       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.544       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .69138       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8738       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.422       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1865       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98370       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+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.

 FCN=   5285.918     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     2896 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.021        .18142E-02** at limit **
   2  Prefactor     .52006        59.435        .16439        .68286E-04
   3  Prefactor     .10000E-03    324.98        .18142E-02** at limit **
   4  Prefactor     .10000E-03    7.5693        .18142E-02** at limit **
   5  Prefactor     25.654        25.233        .79110E-04    .64381E-04
   6  Prefactor     21.121        21.502        .87157E-04   -.23348E-04
   7  Prefactor     .10000E-03    14.289        .18142E-02** at limit **
   8  norm          .10000E-03    4.1123        .20123E-02** at limit **
   9  norm          6.6506        1.5596        .41761E-04   -.15038E-03
  10  Prefactor     .10000E-03    17.718        .18142E-02** at limit **
  11  Prefactor     .10000E-03    71.829        .16127    ** at limit **
  12  Prefactor     26.556        21.111        .77755E-04    .61409E-05
  13  norm          4.0294        1.4853        .48949E-04   -.30658E-04
  14  Prefactor     .10000E-03    66.599        .18142E-02** at limit **
  15  norm          .69140        .39806        .32179E-04    .49284E-03
  16  norm          6.4928        9.2284        .15753E-03    .95260E-05
  17  Prefactor     .10000E-03    25.753        .18142E-02** at limit **
  18  Prefactor     7.8746        19.132        .14290E-03   -.59510E-04
  19  Prefactor     27.423        14.995        .76503E-04   -.12498E-03
  20  norm          1.1866        .73291        .43409E-04   -.61625E-03
  21  Normalizat    .98377        .23316        .25214E-03   -.62899E-04
  22  Prefactor     .96599        .25627        .29057E-03   -.37091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.520063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6542
  Prefactor  = 21.1208
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.65061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.556
  norm       = 4.02941
  Prefactor  = 0.0001
  norm       = 0.691395
  norm       = 6.49278
  Prefactor  = 0.0001
  Prefactor  = 7.87457
  Prefactor  = 27.4232
  norm       = 1.18659
  Normalizat = 0.983765
  Prefactor  = 0.965995
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.918     FROM HESSE     STATUS=OK           340 CALLS     3236 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .52006        63.225        .15765       -1.5564    
   3  Prefactor     .10000E-03    325.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.654        25.233        .31644E-05   -1.4695    
   6  Prefactor     21.121        21.505        .34863E-05   -1.4788    
   7  Prefactor     .10000E-03    14.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1291        .40246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.6506        1.5596        .83521E-05   -1.5192    
  10  Prefactor     .10000E-03    17.719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    72.032        .16098       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.556        21.111        .31102E-05   -1.4677    
  13  norm          4.0294        1.4854        .19580E-05   -1.5306    
  14  Prefactor     .10000E-03    66.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .69140        .39803        .12872E-05   -1.5542    
  16  norm          6.4928        9.2277        .63013E-05   -1.5198    
  17  Prefactor     .10000E-03    25.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.8746        19.129        .57159E-05   -1.5147    
  19  Prefactor     27.423        14.993        .30601E-05   -1.4660    
  20  norm          1.1866        .73286        .17363E-05   -1.5490    
  21  Normalizat    .98377        .23341        .10086E-04   -.93576    
  22  Prefactor     .96599        .25657        .11623E-04   -.93872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04916e-10
Minuit parameter uncertainties:
  1  6.31903e-06
  2  11.4797
  3  0.000222765
  4  3.09332e-06
  5  25.2435
  6  21.5127
  7  7.76582e-06
  8  2.69929e-05
  9  1.55965
  10  8.109e-06
  11  5.94187e-05
  12  21.1166
  13  1.48545
  14  9.57262e-05
  15  0.39803
  16  9.22976
  17  4.00144e-05
  18  19.1434
  19  14.995
  20  0.73287
  21  0.233657
  22  0.256893
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.000e-04  2.699e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.916e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  6.798e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  9.584e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  9.660e-01  2.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.838e-01  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.556 -37.433
Photon Flux Upper Limit: 5.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947917/likelihoodResults_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.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) = 5285.9187863
delta logL = -0.00115824290697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5285.917628
delta logL = 4.8913534556e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8754       1.0000          .0000       5.0000    
     3 'Normalizat'    .98398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+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=   5285.918     FROM MIGRAD    STATUS=FAILED       100 CALLS      259 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10470E-03    247.27        .20639E-02** at limit **
   2  alpha         1.6708        2.8453        .50000        .12042E-04
   3  Normalizat    .98377        .33167E-01    .25215E-03    .26195E-04
   4  Prefactor     .96599        .38089E-01    .29060E-03   -.24960E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5285.918     FROM SIMPLEX   STATUS=PROGRESS     135 CALLS      394 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10096E-03    247.27        .29432E-03** at limit **
   2  alpha         1.6705        2.8453        .15673E-03    .12042E-04
   3  Normalizat    .98376        .33167E-01    .51881E-05    .26195E-04
   4  Prefactor     .96598        .38089E-01    .60887E-05   -.24960E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5285.918     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      439 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1008.0        .41277E-03** at limit **
   2  alpha         1.6064        3.2824        .50000       -.13893E-06
   3  Normalizat    .98377        .93078E-01    .10086E-04    .12760E-03
   4  Prefactor     .96599        .10688        .11624E-04    .78634E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.60642
  Normalizat = 0.983767
  Prefactor  = 0.965994
 **********
 **   18 **HESSE 
 **********

 FCN=   5285.918     FROM HESSE     STATUS=OK            29 CALLS      468 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4461        .82554E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6064        3.0609        .50000       -.36552    
   3  Normalizat    .98377        .22134        .20172E-05   -.93576    
   4  Prefactor     .96599        .25403        .23248E-05   -.93872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46825e-11
Minuit parameter uncertainties:
  1  1.96688e-05
  2  94.7169
  3  0.22155
  4  0.254346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947917': 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) = 5285.91762475
delta logL = 3.30297189066e-06

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.000e-04  1.967e-05  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.606e+00  9.472e+01  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  6.798e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  9.584e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  9.660e-01  2.543e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.838e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.556 -37.433

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/947917/cmap_HighResolution_653788801_654048001_4FGL_J0334.2-3725_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-23 00:20:14.198979', job_id='947917', GAL2='0.97', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632381614.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1599' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 947917: <4FGL_J0334.2-3725_daily_bin1599> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 23 00:06:48 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:07:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:07:39 2021
Terminated at Thu Sep 23 00:20:14 2021
Results reported at Thu Sep 23 00:20:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1599 53.5556 -37.4327 653788801 654048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0334.2-3725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            806 sec.

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

