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


Performing analysis on: 4FGL_J0334.2-3725_daily_bin1623
RA = 53.5556, Dec = -37.4327
tmin = 660009601, tmax = 660268801
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='175101', job_status='RUN', time_executed='2021-12-07 14:08:43.982000', time_epoch_executed='1638914923.98' WHERE source_name='4FGL J0334.2-3725' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175101

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175101/ft1_4FGL_J0334.2-3725_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175101/ft1_4FGL_J0334.2-3725_daily_bin1623.fits outfile=/scratch/kocevski/175101/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1623.fits ra=53.5556 dec=-37.4327 rad=12.0 tmin=660009601.0 tmax=660268801.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.96
user 4.63
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.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/175101/ft1_filteredMKT_4FGL_J0334.2-3725_daily_bin1623.fits evtable="EVENTS" outfile="/scratch/kocevski/175101/ft1_filtered_4FGL_J0334.2-3725_daily_bin1623.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175101/ft1_filtered_4FGL_J0334.2-3725_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/175101/ltcube_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.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/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.fits
.....................!
real 14.01
user 13.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175101/ft1_filtered_4FGL_J0334.2-3725_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/175101/ltcube_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.fits outfile=/scratch/kocevski/175101/expmap_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.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/175101/ltcube_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.fits
.....................!
real 194.43
user 186.57
sys 5.50

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/175101/ft1_filtered_4FGL_J0334.2-3725_daily_bin1623.fits scfile=/scratch/kocevski/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.fits outfile=/scratch/kocevski/175101/cmap_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175101/ft1_filtered_4FGL_J0334.2-3725_daily_bin1623.fits scfile=/scratch/kocevski/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.fits outfile=/scratch/kocevski/175101/cmap_HighResolution_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175101/ft1_filtered_4FGL_J0334.2-3725_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/175101/ft2_4FGL_J0334.2-3725_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175101/Model_4FGL_J0334.2-3725_daily_bin1623.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/175101/ft1_filtered_4FGL_J0334.2-3725_daily_bin1623.fits.....................!
real 112.15
user 110.12
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.261       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.2270       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2293       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8052       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .58422       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.637       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.008       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8215       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2093       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1179       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76385       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=   5210.839     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2329 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.447        .90712E-02** at limit **
   2  Prefactor     .10000E-03    22.062        .90712E-02** at limit **
   3  Prefactor     .10000E-03    137.69        .90712E-02** at limit **
   4  Prefactor     .10000E-03    10.325        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.9439        .90712E-02** at limit **
   6  Prefactor     14.862        15.619        .25973E-02   -.33590E-04
   7  Prefactor     32.264        32.338        .17637E-02   -.49583E-03
   8  norm          .10000E-03    1.1519        .90712E-02** at limit **
   9  norm          4.2272        1.2511        .48999E-02    .31991E-04
  10  Prefactor     .10000E-03    22.109        .90712E-02** at limit **
  11  Prefactor     4.2184        57.463        .48985E-02    .41879E-03
  12  Prefactor     .10000E-03    8.6780        .90712E-02** at limit **
  13  norm          4.8053        1.3658        .45882E-02   -.43263E-04
  14  Prefactor     .10000E-03    58.149        .90712E-02** at limit **
  15  norm          .58425        .36956        .70672E-02    .61062E-03
  16  norm          7.1466        8.8078        .37516E-02    .82425E-03
  17  Prefactor     23.635        40.200        .20597E-02    .55230E-03
  18  Prefactor     20.994        16.975        .21847E-02    .28616E-03
  19  Prefactor     1.8077        19.213        .77345E-02    .84885E-03
  20  norm          2.2102        .84613        .69186E-02    .12301E-04
  21  Normalizat    1.1177        .19537        .37314E-01    .75004E-05
  22  Prefactor     .76404        .20854        .69352E-01    .16382E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8623
  Prefactor  = 32.2639
  norm       = 0.0001
  norm       = 4.22725
  Prefactor  = 0.0001
  Prefactor  = 4.21838
  Prefactor  = 0.0001
  norm       = 4.80534
  Prefactor  = 0.0001
  norm       = 0.584253
  norm       = 7.14662
  Prefactor  = 23.6349
  Prefactor  = 20.9935
  Prefactor  = 1.80775
  norm       = 2.21017
  Normalizat = 1.11773
  Prefactor  = 0.764038
 **********
 **   18 **HESSE 
 **********

 FCN=   5210.839     FROM HESSE     STATUS=OK           338 CALLS     2667 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    137.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.862        15.626        .10389E-03   -1.4937    
   7  Prefactor     32.264        32.340        .70546E-04   -1.4571    
   8  norm          .10000E-03    1.1577        .75647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2272        1.2531        .42020E-04   -1.5297    
  10  Prefactor     .10000E-03    22.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2184        57.390        .19594E-03   -1.5297    
  12  Prefactor     .10000E-03    8.6995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8053        1.3673        .43369E-04   -1.5270    
  14  Prefactor     .10000E-03    58.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .58425        .36133        .31802E-04   -1.5555    
  16  norm          7.1466        8.7715        .15006E-03   -1.5173    
  17  Prefactor     23.635        40.407        .82389E-04   -1.4735    
  18  Prefactor     20.994        16.870        .87388E-04   -1.4791    
  19  Prefactor     1.8077        18.565        .30938E-03   -1.5439    
  20  norm          2.2102        .85109        .33421E-04   -1.5411    
  21  Normalizat    1.1177        .23036        .23021E-03   -.89185    
  22  Prefactor     .76404        .24415        .30687E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01777e-09
Minuit parameter uncertainties:
  1  1.07914e-05
  2  0.00034221
  3  0.000806368
  4  2.38922e-06
  5  3.15224e-06
  6  15.6299
  7  32.3571
  8  1.4647e-07
  9  1.25313
  10  0.000203224
  11  31.1547
  12  2.7881e-06
  13  1.36731
  14  4.04219e-06
  15  0.361331
  16  8.77308
  17  40.4541
  18  16.8736
  19  11.5906
  20  0.851093
  21  0.230567
  22  0.244493
Done.

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

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  1.000e-04  1.465e-07  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:  7.640e-01  2.445e-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.118e+00  2.306e-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: 4.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/175101/likelihoodResults_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.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) = 5210.84277219
delta logL = -0.00392338042457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5210.83884873
delta logL = 7.41174517316e-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.9231       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76404       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=   5210.574     FROM MIGRAD    STATUS=FAILED       140 CALLS      283 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26504E-01    2.0073        .36575E-02    .47789E-02
   2  alpha         5.0000        2.7158        .50000    ** at limit **
   3  Normalizat    1.0659        .98296E-01    .23021E-03    .10859E-03
   4  Prefactor     .80180        .84761E-01    .30687E-03    .97100E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5210.574     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      419 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26504E-01    2.0073        .12751E-05    .47789E-02
   2  alpha         5.0000        2.7158        .64812E-02** at limit **
   3  Normalizat    1.0659        .98296E-01    .68428E-06    .10859E-03
   4  Prefactor     .80180        .84761E-01    .14203E-06    .97100E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5210.574     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      451 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26504E-01    .39821E-01    .16504E-04   -.88307E-03
   2  alpha         5.0000        3.3964        .77229E-01** at limit **
   3  Normalizat    1.0659        .22613        .92085E-05    .10864E-03
   4  Prefactor     .80180        .24813        .12275E-04    .97063E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0265035
  alpha      = 5
  Normalizat = 1.06587
  Prefactor  = 0.801803
 **********
 **   18 **HESSE 
 **********

 FCN=   5210.574     FROM HESSE     STATUS=OK            23 CALLS      474 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26504E-01    .39506E-01    .66018E-06   -1.5675    
   2  alpha         5.0000        3.3962        .15446E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0659        .22649        .18417E-05   -.90855    
   4  Prefactor     .80180        .24856        .24550E-05   -.99662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37794e-11
Minuit parameter uncertainties:
  1  0.0395056
  2  2.23276e-05
  3  0.226693
  4  0.248903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175101': 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) = 5210.5742908
delta logL = 0.26455800379

Extracting fit parameters...

4FGL J0334.2-3725
   Spectrum: LogParabola
263         norm:  2.650e-02  3.951e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  2.233e-05  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.018e-01  2.489e-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.066e+00  2.267e-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/175101/cmap_HighResolution_660009601_660268801_4FGL_J0334.2-3725_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='4.10e-08', time_completed='2021-12-07 14:20:03.284923', job_id='175101', GAL2='0.80', fit_tolerance='1e-08', EG2='1.07', EG='1.12', time_epoch_completed='1638915603.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.65e-01', ts2='0.57', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1623' AND source_name='4FGL J0334.2-3725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 14:20:03 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 175101: <4FGL_J0334.2-3725_daily_bin1623> in cluster <slac> Done

Job <4FGL_J0334.2-3725_daily_bin1623> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 14:05:29 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 14:07:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 14:07:40 2021
Terminated at Tue Dec  7 14:20:04 2021
Results reported at Tue Dec  7 14:20:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0334.2-3725_daily_bin1623 53.5556 -37.4327 660009601 660268801 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 :                                   673.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            875 sec.

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

