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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1593
RA = 53.5556, Dec = -37.4327
tmin = 652233601, tmax = 652492801
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='325301', job_status='RUN', time_executed='2021-09-05 00:02:16.922657', time_epoch_executed='1630825336.92' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325301/ft1_4FGL_J0334.2-3725_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325301/ft2_4FGL_J0334.2-3725_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325301/ft1_4FGL_J0334.2-3725_daily_bin1593.fits outfile=/scratch/kocevski/325301/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1593.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=652233601.0 tmax=652492801.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.57
user 4.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325301/ft1_filtered_4FGL_J0334.2-3725_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/325301/ft2_4FGL_J0334.2-3725_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/325301/ltcube_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.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/325301/ft2_4FGL_J0334.2-3725_daily_bin1593.fits
.....................!
real 13.01
user 12.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325301/ft1_filtered_4FGL_J0334.2-3725_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325301/ft2_4FGL_J0334.2-3725_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/325301/ltcube_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.fits outfile=/scratch/kocevski/325301/expmap_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.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/325301/ltcube_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.fits
.....................!
real 189.86
user 185.55
sys 3.86

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/325301/ft1_filtered_4FGL_J0334.2-3725_daily_bin1593.fits scfile=/scratch/kocevski/325301/ft2_4FGL_J0334.2-3725_daily_bin1593.fits outfile=/scratch/kocevski/325301/cmap_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325301/ft1_filtered_4FGL_J0334.2-3725_daily_bin1593.fits scfile=/scratch/kocevski/325301/ft2_4FGL_J0334.2-3725_daily_bin1593.fits outfile=/scratch/kocevski/325301/cmap_HighResolution_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/325301/ft1_filtered_4FGL_J0334.2-3725_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325301/ft2_4FGL_J0334.2-3725_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325301/Model_4FGL_J0334.2-3725_daily_bin1593.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/325301/ft1_filtered_4FGL_J0334.2-3725_daily_bin1593.fits.....................!
real 168.44
user 166.11
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    66.664       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9918       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6373       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2459       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.256       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.6547       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.406       1.0000         .10000E-03   10000.    
    15 'norm      '    .64794       1.0000         .10000E-03   10000.    
    16 'norm      '    12.129       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.837       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0347       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2907       1.0000         .10000E-03   10000.    
    20 'norm      '    .80471       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85668       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95045       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.

 FCN=   7866.773     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2354 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7025        .90712E-02** at limit **
   2  Prefactor     66.664        40.088        .12289E-02   -.10166E-03
   3  Prefactor     .10001E-03    253.63        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.5540        .90712E-02** at limit **
   5  Prefactor     7.9925        14.433        .35458E-02    .52112E-03
   6  Prefactor     40.419        20.481        .15762E-02    .38587E-03
   7  Prefactor     .10000E-03    7.4121        .90712E-02** at limit **
   8  norm          1.6373        1.6266        .82576E-02   -.27313E-03
   9  norm          2.2459        .75001        .68553E-02    .57195E-03
  10  Prefactor     42.257        40.918        .15417E-02   -.12917E-03
  11  Prefactor     .10000E-03    12.611        .90712E-02** at limit **
  12  Prefactor     .10000E-03    12.666        .90712E-02** at limit **
  13  norm          9.6547        1.3336        .32242E-02   -.21004E-03
  14  Prefactor     31.408        44.695        .17874E-02   -.34963E-03
  15  norm          .64794        .27895        .64110E-02    .11881E-02
  16  norm          12.129        6.1740        .28756E-02   -.78383E-04
  17  Prefactor     20.839        31.224        .21936E-02    .15425E-03
  18  Prefactor     6.0348        7.9715        .40861E-02    .22109E-03
  19  Prefactor     6.2907        8.0315        .40011E-02    .27439E-03
  20  norm          .80470        .48467        .93214E-02    .14203E-02
  21  Normalizat    .85665        .14968        .44346E-01   -.54348E-04
  22  Prefactor     .95047        .16779        .45645E-01   -.91574E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 66.6641
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 7.99253
  Prefactor  = 40.4192
  Prefactor  = 0.0001
  norm       = 1.63728
  norm       = 2.24591
  Prefactor  = 42.2574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.65473
  Prefactor  = 31.4081
  norm       = 0.647942
  norm       = 12.1289
  Prefactor  = 20.8393
  Prefactor  = 6.03478
  Prefactor  = 6.29074
  norm       = 0.804701
  Normalizat = 0.856654
  Prefactor  = 0.950475
 **********
 **   18 **HESSE 
 **********

 FCN=   7866.773     FROM HESSE     STATUS=OK           342 CALLS     2696 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.664        40.093        .49156E-04   -1.4073    
   3  Prefactor     .10001E-03    253.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9925        14.433        .14183E-03   -1.5142    
   6  Prefactor     40.419        20.502        .63050E-04   -1.4436    
   7  Prefactor     .10000E-03    7.4144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6373        1.6324        .10939E-03   -1.5452    
   9  norm          2.2459        .75051        .42693E-04   -1.5408    
  10  Prefactor     42.257        40.923        .61669E-04   -1.4407    
  11  Prefactor     .10000E-03    12.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.6547        1.3360        .36640E-04   -1.5086    
  14  Prefactor     31.408        44.695        .71498E-04   -1.4587    
  15  norm          .64794        .27723        .28566E-04   -1.5547    
  16  norm          12.129        6.1709        .11502E-03   -1.5011    
  17  Prefactor     20.839        31.315        .87745E-04   -1.4795    
  18  Prefactor     6.0348        7.9482        .16345E-03   -1.5217    
  19  Prefactor     6.2907        8.0991        .16004E-03   -1.5206    
  20  norm          .80470        .48262        .41801E-04   -1.5529    
  21  Normalizat    .85665        .17533        .24368E-03   -.98000    
  22  Prefactor     .95047        .19573        .27249E-03   -.94399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93103e-09
Minuit parameter uncertainties:
  1  2.69628e-05
  2  40.1092
  3  0.00333548
  4  6.31777e-05
  5  14.4393
  6  20.5058
  7  1.21473e-05
  8  1.63248
  9  0.750515
  10  40.9505
  11  2.18723e-05
  12  1.8266e-05
  13  1.33596
  14  44.7423
  15  0.27723
  16  6.17118
  17  31.3398
  18  7.94956
  19  8.1005
  20  0.482624
  21  0.175445
  22  0.195873
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.637e+00  1.632e+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:  9.505e-01  1.959e-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:  8.567e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.50
Ra Dec: 53.556 -37.433
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.15e-08 +/- 1.15e-08
Energy Flux (Fixed Index): 8.26e-06 +/- 8.24e-06

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

Saving results to:
/scratch/kocevski/325301/likelihoodResults_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7866.02768861
delta logL = 0.745135338687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7865.76255172
delta logL = 1.01027222342

Fit tolerance = 1e-08

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

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

 FCN=   7865.763     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      208 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50344        .53070        .11284E-01   -.89514E-03
   2  alpha         .80379        .45074        .43525       -.36293E-04
   3  Normalizat    .86081        .14159        .44399E-01    .94198E-04
   4  Prefactor     .95252        .16691        .45671E-01    .13273E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.503443
  alpha      = 0.803787
  Normalizat = 0.860808
  Prefactor  = 0.95252
 **********
 **   18 **HESSE 
 **********

 FCN=   7865.763     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50344        1.0224        .58124E-03   -1.5566    
   2  alpha         .80379        .78508        .19269E-02   -.74570    
   3  Normalizat    .86081        .16434        .24316E-03   -.97851    
   4  Prefactor     .95252        .19376        .27229E-03   -.94329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70793e-11
Minuit parameter uncertainties:
  1  1.0224
  2  0.811206
  3  0.164436
  4  0.193898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325301': 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) = 7865.76255167
delta logL = 1.01027227143

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  5.034e-01  1.022e+00  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  8.038e-01  8.112e-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.525e-01  1.939e-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:  8.608e-01  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 53.556 -37.433
Photon Index (Free Index): 0.80 +/- 0.81
Photon Flux (Free Index): 3.01e-09 +/- 3.72e-09
Energy Flux (Free Index): 3.82e-05 +/- 5.62e-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/325301/cmap_HighResolution_652233601_652492801_4FGL_J0334.2-3725_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-05', comment='SUCCESS', photon_flux='1.15e-08', energy_flux2='3.82e-05', photon_flux_error='1.15e-08', dlogl='1.01e+00', energy_flux='8.26e-06', photon_flux2='3.01e-09', job_status='DONE', time_completed='2021-09-05 00:16:20.463360', photon_index_error2='0.81', photon_index2='0.80', ts='3.50', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='4.57e-08', energy_flux_error2='5.62e-05', EG='0.86', time_epoch_completed='1630826180.46', return_code='0', job_id='325301', GAL2='0.95', EG2='0.86', return_code2='0', energy_flux_error='8.24e-06', photon_flux_error2='3.72e-09', ts2='5.52', photon_index='1.92' WHERE bin_id='1593' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 325301: <4FGL_J0334.2-3725_daily_bin1593> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1593> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:01:06 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:01:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:01:08 2021
Terminated at Sun Sep  5 00:16:21 2021
Results reported at Sun Sep  5 00:16:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1593 53.5556 -37.4327 652233601 652492801 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 :                                   844.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

