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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1319
RA = 53.5556, Dec = -37.4327
tmin = 581212801, tmax = 581472001
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='655430', job_status='RUN', time_executed='2021-08-18 18:06:01.811156', time_epoch_executed='1629335161.81' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655430/ft1_4FGL_J0334.2-3725_daily_bin1319.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655430/ft1_4FGL_J0334.2-3725_daily_bin1319.fits outfile=/scratch/kocevski/655430/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1319.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=581212801.0 tmax=581472001.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 4.04
user 2.77
sys 1.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits" evtable="EVENTS" scfile=/scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits sctable="SC_DATA" outfile=/scratch/kocevski/655430/ltcube_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.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/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits
.....................!
real 17.61
user 16.04
sys 1.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits sctable="SC_DATA" expcube=/scratch/kocevski/655430/ltcube_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.fits outfile=/scratch/kocevski/655430/expmap_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.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/655430/ltcube_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.fits
.....................!
real 192.26
user 185.22
sys 5.97

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/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits scfile=/scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits outfile=/scratch/kocevski/655430/cmap_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.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 1.56
user 0.38
sys 1.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits scfile=/scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits outfile=/scratch/kocevski/655430/cmap_HighResolution_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.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 1.53
user 0.36
sys 1.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits evtable="EVENTS" scfile=/scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/655430/Model_4FGL_J0334.2-3725_daily_bin1319.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/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits....................!
real 177.11
user 174.11
sys 2.63

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits', '/scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits', expMap='/scratch/kocevski/655430/expmap_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.fits', expCube='/scratch/kocevski/655430/ltcube_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/655430/Model_4FGL_J0334.2-3725_daily_bin1319.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/655430/ft1_filtered_4FGL_J0334.2-3725_daily_bin1319.fits
Spacecraft file(s): /scratch/kocevski/655430/ft2_4FGL_J0334.2-3725_daily_bin1319.fits
Exposure map: /scratch/kocevski/655430/expmap_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.fits
Exposure cube: /scratch/kocevski/655430/ltcube_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/655430/Model_4FGL_J0334.2-3725_daily_bin1319.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) = 8416.40964193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89610E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10883E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7261       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2853       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    38.881       1.0000         .10000E-03   10000.    
    14 'Prefactor '    70.742       1.0000         .10000E-03   10000.    
    15 'norm      '    .68757       1.0000         .10000E-03   10000.    
    16 'norm      '    17.631       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9726       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6202       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1324       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1874       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85141       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.

 FCN=   8416.370     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2355 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.199       -.11542E-06** at limit **
   2  Prefactor     .10000E-03    251.91        .17472E-04** at limit **
   3  Prefactor     .10000E-03    103.48        .80601E-05** at limit **
   4  Prefactor     2.9527        92.552       -.35460E-05   -.91715E-06
   5  Prefactor     .10000E-03    14.944        .40413E-06** at limit **
   6  Prefactor     17.665        16.168        .16060E-06   -.49928E-05
   7  Prefactor     .10000E-03    16.570       -.57432E-06** at limit **
   8  norm          5.7267        3.1312        .30595E-07   -.15149E-04
   9  norm          1.5692        .78726        .21958E-07   -.62574E-04
  10  Prefactor     7.2850        51.156        .74397E-06   -.10045E-05
  11  Prefactor     .10000E-03    72.059       -.10340E-04** at limit **
  12  Prefactor     .10000E-03    5.2340       -.34436E-07** at limit **
  13  norm          38.881        3.0639        .41082E-07    .46197E-03
  14  Prefactor     70.722        68.395        .26841E-05    .62101E-05
  15  norm          .68759        .30856       -.92529E-09   -.11204E-03
  16  norm          17.629        8.3599       -.12998E-06   -.18568E-04
  17  Prefactor     .10000E-03    45.590        .27240E-05** at limit **
  18  Prefactor     9.9680        11.102       -.12973E-06   -.88279E-05
  19  Prefactor     2.6285        9.6736        .83230E-05    .64630E-05
  20  norm          1.1323        .65933       -.40865E-06   -.24975E-04
  21  Normalizat    1.1874        .17056       -.12040E-05   -.15023E-03
  22  Prefactor     .85143        .18621        .44796E-06   -.15359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 2.95273
  Prefactor  = 0.0001
  Prefactor  = 17.6655
  Prefactor  = 0.0001
  norm       = 5.72672
  norm       = 1.5692
  Prefactor  = 7.28496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.8809
  Prefactor  = 70.7223
  norm       = 0.687587
  norm       = 17.6295
  Prefactor  = 0.0001
  Prefactor  = 9.96798
  Prefactor  = 2.62846
  norm       = 1.13234
  Normalizat = 1.1874
  Prefactor  = 0.851428
 **********
 **   18 **HESSE 
 **********

 FCN=   8416.370     FROM HESSE     STATUS=OK           344 CALLS     2699 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    255.10        .41666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    103.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9527        92.796        .23723E-03   -1.5364    
   5  Prefactor     .10000E-03    15.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.665        16.184        .95302E-04   -1.4867    
   7  Prefactor     .10000E-03    16.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7267        3.1301        .11568E-03   -1.5229    
   9  norm          1.5692        .78751        .55149E-04   -1.5457    
  10  Prefactor     7.2850        51.127        .14860E-03   -1.5168    
  11  Prefactor     .10000E-03    72.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          38.881        3.0674        .43667E-04   -1.4460    
  14  Prefactor     70.722        68.460        .23864E-03   -1.4024    
  15  norm          .68759        .30513        .32228E-04   -1.5542    
  16  norm          17.629        8.3553        .95385E-04   -1.4868    
  17  Prefactor     .10000E-03    46.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.9680        11.117        .12689E-03   -1.5076    
  19  Prefactor     2.6285        9.7215        .12598E-02   -1.5384    
  20  norm          1.1323        .65425        .47591E-04   -1.5495    
  21  Normalizat    1.1874        .20811        .26097E-03   -.86993    
  22  Prefactor     .85143        .22650        .34074E-03   -.97860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34192e-11
Minuit parameter uncertainties:
  1  5.85075e-06
  2  0.00203717
  3  6.54879e-05
  4  33.1618
  5  1.48405e-06
  6  16.1883
  7  2.21514e-07
  8  3.13016
  9  0.787513
  10  38.6451
  11  4.15489e-06
  12  2.40885e-06
  13  3.06744
  14  68.5364
  15  0.30513
  16  8.3559
  17  4.72236e-05
  18  11.1191
  19  9.72732
  20  0.654252
  21  0.208252
  22  0.226745
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  5.727e+00  3.130e+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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.514e-01  2.267e-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:  1.187e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.90
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.58e-05

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) = 8416.3463735
delta logL = 0.0240230219151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8416.34523671
delta logL = 0.0251598105024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6184       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8047       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84889       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.

 FCN=   8416.345     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6183        2.6110       -.51155E-06    .20641E-02
   2  alpha         1.8046        .34158        .58766E-05    .18919E-03
   3  Normalizat    1.1929        .16499       -.24489E-06   -.13332E-03
   4  Prefactor     .84873        .18573        .21822E-06   -.92436E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.61827
  alpha      = 1.80464
  Normalizat = 1.19292
  Prefactor  = 0.848729
 **********
 **   18 **HESSE 
 **********

 FCN=   8416.345     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6183        3.1826        .11686E-03   -1.5234    
   2  alpha         1.8046        .48690        .14249E-01   -.28186    
   3  Normalizat    1.1929        .20036        .26049E-03   -.86822    
   4  Prefactor     .84873        .22504        .34128E-03   -.97956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74513e-09
Minuit parameter uncertainties:
  1  3.18266
  2  0.490296
  3  0.200491
  4  0.225285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655430': 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) = 8416.34523595
delta logL = 0.0251605745489

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  5.618e+00  3.183e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  1.805e+00  4.903e-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:  8.487e-01  2.253e-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:  1.193e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.91
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 1.80 +/- 0.49
Photon Flux (Free Index): 3.51e-08 +/- 2.90e-08
Energy Flux (Free Index): 3.21e-05 +/- 2.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/655430/cmap_HighResolution_581212801_581472001_4FGL_J0334.2-3725_daily_bin1319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='3.21e-05', photon_flux_error='2.20e-08', dlogl='2.52e-02', energy_flux='2.89e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-08-18 18:19:44.087534', photon_index_error2='0.49', photon_index2='1.80', ts='13.90', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='1.19', time_epoch_completed='1629335984.09', return_code='0', job_id='655430', GAL2='0.85', EG2='1.19', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='2.90e-08', ts2='13.91', photon_index='1.92' WHERE bin_id='1319' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:19:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 655430: <4FGL_J0334.2-3725_daily_bin1319> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1319> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Aug 18 18:04:29 2021
Job was executed on host(s) <bullet0029>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 18:04:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 18:04:30 2021
Terminated at Wed Aug 18 18:19:44 2021
Results reported at Wed Aug 18 18:19:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1319 53.5556 -37.4327 581212801 581472001 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 :                                   830.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

