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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1098
RA = 53.5556, Dec = -37.4327
tmin = 523929601, tmax = 524188801
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='653024', job_status='RUN', time_executed='2021-08-18 17:56:27.112923', time_epoch_executed='1629334587.11' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653024

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653024/ft1_4FGL_J0334.2-3725_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653024/ft1_4FGL_J0334.2-3725_daily_bin1098.fits outfile=/scratch/kocevski/653024/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1098.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=523929601.0 tmax=524188801.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.43
user 3.28
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.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/653024/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1098.fits evtable="EVENTS" outfile="/scratch/kocevski/653024/ft1_filtered_4FGL_J0334.2-3725_daily_bin1098.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.43
user 0.32
sys 1.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653024/ft1_filtered_4FGL_J0334.2-3725_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/653024/ltcube_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.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/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.fits
.....................!
real 13.04
user 11.62
sys 1.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653024/ft1_filtered_4FGL_J0334.2-3725_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/653024/ltcube_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.fits outfile=/scratch/kocevski/653024/expmap_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.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/653024/ltcube_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.fits
.....................!
real 191.92
user 185.48
sys 6.05

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/653024/ft1_filtered_4FGL_J0334.2-3725_daily_bin1098.fits scfile=/scratch/kocevski/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.fits outfile=/scratch/kocevski/653024/cmap_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.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.46
user 0.38
sys 1.04

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653024/ft1_filtered_4FGL_J0334.2-3725_daily_bin1098.fits scfile=/scratch/kocevski/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.fits outfile=/scratch/kocevski/653024/cmap_HighResolution_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.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.44
user 0.38
sys 1.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/653024/ft1_filtered_4FGL_J0334.2-3725_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/653024/ft2_4FGL_J0334.2-3725_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/653024/Model_4FGL_J0334.2-3725_daily_bin1098.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/653024/ft1_filtered_4FGL_J0334.2-3725_daily_bin1098.fits.....................!
real 144.50
user 141.73
sys 2.42

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31585E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    101.04       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2501       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.579       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.027       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4060       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9357       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.272       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.1501       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6384       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0719       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .67854       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=   6886.411     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     3099 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7062        .17581E-02** at limit **
   2  Prefactor     .10000E-03    25.783        .14053    ** at limit **
   3  Prefactor     101.06        155.63        .39996E-04    .31267E-05
   4  Prefactor     9.2557        19.156        .13177E-03    .25451E-04
   5  Prefactor     13.575        15.321        .10870E-03   -.96224E-04
   6  Prefactor     .10000E-03    6.5208        .18142E-02** at limit **
   7  Prefactor     38.047        29.573        .64995E-04    .12947E-03
   8  norm          .10000E-03    1.0934        .13862E-02** at limit **
   9  norm          .10000E-03    .87518        .10350E-02** at limit **
  10  Prefactor     .10000E-03    14.016        .18142E-02** at limit **
  11  Prefactor     4.4077        27.172        .19186E-03   -.55699E-05
  12  Prefactor     8.9401        12.295        .13408E-03   -.16873E-04
  13  norm          1.8302        .72872        .43116E-04   -.23388E-03
  14  Prefactor     .10000E-03    27.362        .18142E-02** at limit **
  15  norm          .10000E-03    .10446        .45210E-03** at limit **
  16  norm          25.275        8.2875        .79684E-04    .36239E-04
  17  Prefactor     2.6163        52.748        .25242E-03    .49543E-05
  18  Prefactor     6.8555        10.109        .76628E-03   -.11712E-03
  19  Prefactor     9.1515        9.8503        .66247E-03   -.16152E-03
  20  norm          4.6384        .90917        .30110E-04    .17935E-03
  21  Normalizat    1.0719        .17259        .20801E-03   -.44409E-03
  22  Prefactor     .67845        .19341        .29651E-03   -.73347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.056
  Prefactor  = 9.25571
  Prefactor  = 13.5753
  Prefactor  = 0.0001
  Prefactor  = 38.047
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.40766
  Prefactor  = 8.94012
  norm       = 1.8302
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.2748
  Prefactor  = 2.61629
  Prefactor  = 6.8555
  Prefactor  = 9.15153
  norm       = 4.63842
  Normalizat = 1.07186
  Prefactor  = 0.678447
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.411     FROM HESSE     STATUS=OK           330 CALLS     3429 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7062        .35163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.593        .14151       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     101.06        155.59        .79992E-05   -1.3694    
   4  Prefactor     9.2557        19.156        .52709E-05   -1.5099    
   5  Prefactor     13.575        15.320        .43479E-05   -1.4971    
   6  Prefactor     .10000E-03    6.5215        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.047        29.572        .12999E-04   -1.4474    
   8  norm          .10000E-03    1.0948        .27723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .87856        .20699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4077        27.163        .76745E-05   -1.5288    
  12  Prefactor     8.9401        12.295        .53633E-05   -1.5110    
  13  norm          1.8302        .72870        .17246E-05   -1.5437    
  14  Prefactor     .10000E-03    27.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .10456        .90419E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.275        8.2866        .31874E-05   -1.4702    
  17  Prefactor     2.6163        52.729        .10097E-04   -1.5384    
  18  Prefactor     6.8555        10.103        .30651E-04   -1.5184    
  19  Prefactor     9.1515        9.8433        .26499E-04   -1.5103    
  20  norm          4.6384        .90880        .12044E-05   -1.5277    
  21  Normalizat    1.0719        .17272        .41603E-04   -.90661    
  22  Prefactor     .67845        .19357        .11861E-04   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14332e-09
Minuit parameter uncertainties:
  1  8.60631e-07
  2  0.000134823
  3  156.228
  4  19.1685
  5  15.3242
  6  6.43839e-06
  7  29.5834
  8  3.05738e-06
  9  4.42946e-05
  10  1.73833e-06
  11  21.8982
  12  12.2984
  13  0.728707
  14  2.25131e-05
  15  8.40496e-09
  16  8.28693
  17  23.514
  18  10.1059
  19  9.84502
  20  0.908802
  21  0.172815
  22  0.193757
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.000e-04  3.057e-06  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:  6.784e-01  1.938e-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.072e+00  1.728e-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: 2.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/653024/likelihoodResults_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.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) = 6886.41578689
delta logL = -0.0043198202784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6886.41146702
delta logL = 4.95756466989e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9213       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67845       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=   6886.411     FROM MIGRAD    STATUS=FAILED        81 CALLS      235 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    258.87        .13847E-02** at limit **
   2  alpha         1.9829        3.9710        .17056       -.10502E-04
   3  Normalizat    1.0719        .12026        .20801E-03    .74277E-03
   4  Prefactor     .67844        .13979        .29651E-03    .52283E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6886.411     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      388 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10025E-03    258.87        .18556E-03** at limit **
   2  alpha         1.9829        3.9710        .66606E-04   -.10502E-04
   3  Normalizat    1.0719        .12026        .33339E-05    .74277E-03
   4  Prefactor     .67844        .13979        .39358E-05    .52283E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6886.411     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      424 TOTAL
                     EDM=   .15E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1129        .27695E-03** at limit **
   2  alpha         2.0313        3.1718        .34111E-01    .19997E-08
   3  Normalizat    1.0719        .16528        .41603E-04   -.71049E-06
   4  Prefactor     .67844        .19203        .59303E-04   -.95853E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.03128
  Normalizat = 1.07186
  Prefactor  = 0.678444
 **********
 **   18 **HESSE 
 **********

 FCN=   6886.411     FROM HESSE     STATUS=OK            23 CALLS      447 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1092        .55390E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0313        3.1960        .13645E-02   -.18860    
   3  Normalizat    1.0719        .16532        .83206E-05   -.90660    
   4  Prefactor     .67844        .19207        .11861E-04   -1.0438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44262e-14
Minuit parameter uncertainties:
  1  1.77288e-07
  2  106.614
  3  0.165397
  4  0.192257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653024': 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) = 6886.41146648
delta logL = 5.91664502281e-07

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.000e-04  1.773e-07  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  2.031e+00  1.066e+02  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:  6.784e-01  1.923e-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.072e+00  1.654e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/653024/cmap_HighResolution_523929601_524188801_4FGL_J0334.2-3725_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', job_status='DONE', photon_flux_upper_limit='2.73e-08', time_completed='2021-08-18 18:10:46.936718', job_id='653024', GAL2='0.68', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1629335446.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='5.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1098' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 18 18:10:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 653024: <4FGL_J0334.2-3725_daily_bin1098> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1098> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Aug 18 17:55:32 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 18 17:55:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 18 17:55:34 2021
Terminated at Wed Aug 18 18:10:47 2021
Results reported at Wed Aug 18 18:10:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1098 53.5556 -37.4327 523929601 524188801 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 :                                   869.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

