/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 provieDone.


Performing analysis on: 4FGL_J0124.8-0625_daily_bin1655
RA = 21.2178, Dec = -6.4328
tmin = 668304001, tmax = 668563201
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 soDone.


Performing analysis on: 4FGL_J0124.8-0625_daily_bin1655
RA = 21.2178, Dec = -6.4328
tmin = 668304001, tmax = 668563201
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='187381', job_status='RUN', time_executed='2022-03-10 00:08:01.351994', time_epoch_executed='1646899681.35' WHERE source_name='4FGL J0124.8-0625' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187381/ft1_4FGL_J0124.8-0625_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187381/ft1_4FGL_J0124.8-0625_daily_bin1655.fits outfile=/scratch/kocevski/187381/ft1_filteredMKT_4FGL_J0124.8-0625_daily_bin1655.fits ra=21.2178 dec=-6.4328 rad=12.0 tmin=668304001.0 tmax=668563201.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.23
user 3.47
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.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/187381/ft1_filteredMKT_4FGL_J0124.8-0625_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.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 2.25
user 0.33
sys 0.15
Number of photons that survived the gtmktime cut: 560

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/187381/ltcube_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.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/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits
.....................!
real 14.14
user 11.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/187381/ltcube_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.fits outfile=/scratch/kocevski/187381/expmap_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.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/187381/ltcube_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.fits
.....................!
real 197.70
user 185.84
sys 4.63

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
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J0124.8-0625 @ 21.2178 -6.4328

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits scfile=/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits outfile=/scratch/kocevski/187381/cmap_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.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=21.2178 yref=-6.4328 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.79
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits scfile=/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits outfile=/scratch/kocevski/187381/cmap_HighResolution_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.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=21.2178 yref=-6.4328 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.73
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187381/Model_4FGL_J0124.8-0625_daily_bin1655.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 GAL_V02
Working on...
/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits....................!
real 64.07
user 62.18
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits', '/scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits', expMap='/scratch/kocevski/187381/expmap_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.fits', expCube='/scratch/kocevski/187381/ltcube_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187381/Model_4FGL_J0124.8-0625_daily_bin1655.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0124.8-0625'

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  1.169e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/187381/ft1_filtered_4FGL_J0124.8-0625_daily_bin1655.fits
Spacecraft file(s): /scratch/kocevski/187381/ft2_4FGL_J0124.8-0625_daily_bin1655.fits
Exposure map: /scratch/kocevski/187381/expmap_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.fits
Exposure cube: /scratch/kocevski/187381/ltcube_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187381/Model_4FGL_J0124.8-0625_daily_bin1655.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) = 5897.0924079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9997       1.0000         .10000E-03   10000.    
     2 'norm      '    6.9839       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    43.218       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3002       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    134.42       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1376       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5896.856     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2075 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0003        3.3538        .12893E-06   -.37568E-04
   2  norm          6.9821        4.5645        .75799E-07    .59488E-04
   3  norm          5.8137        5.6163       -.10689E-06   -.14083E-03
   4  Prefactor     .10000E-03    15.002        .61835E-06** at limit **
   5  Prefactor     .10000E-03    26.433       -.14769E-05** at limit **
   6  Prefactor     .10000E-03    39.673       -.21807E-05** at limit **
   7  Prefactor     .10000E-03    30.612        .20391E-05** at limit **
   8  norm          43.218        4.4701       -.40734E-07   -.55476E-03
   9  Prefactor     19.279        36.088        .10351E-05    .51668E-04
  10  Prefactor     49.262        14.608       -.11399E-07   -.49999E-04
  11  Prefactor     1.1311        2.9576        .47654E-06   -.15993E-03
  12  Prefactor     .10000E-03    13.904       -.19333E-06** at limit **
  13  Prefactor     .10000E-03    2.9414        .81633E-08** at limit **
  14  Prefactor     .10000E-03    36.636        .13964E-05** at limit **
  15  norm          .10000E-03    15.768       -.33040E-06** at limit **
  16  norm          2.3003        1.8723        .62451E-07   -.88410E-04
  17  norm          5.0823        7.3552        .69311E-07   -.89697E-04
  18  Prefactor     134.44        103.13        .25724E-05    .11257E-03
  19  Prefactor     9.7424        8.0896        .12465E-05   -.55689E-03
  20  Prefactor     .10000E-03    2.1550        .83133E-08** at limit **
  21  Normalizat    1.1374        .22465       -.78453E-06    .13556E-04
  22  Prefactor     .91956        .19946       -.15148E-06   -.15232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.00027
  norm       = 6.98206
  norm       = 5.81368
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 43.2179
  Prefactor  = 19.2792
  Prefactor  = 49.2616
  Prefactor  = 1.13114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.30027
  norm       = 5.08227
  Prefactor  = 134.436
  Prefactor  = 9.74242
  Prefactor  = 0.0001
  Normalizat = 1.13736
  Prefactor  = 0.919564
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.856     FROM HESSE     STATUS=OK           342 CALLS     2417 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0003        3.3465        .14177E-03   -1.5362    
   2  norm          6.9821        4.5651        .12819E-03   -1.5179    
   3  norm          5.8137        5.6336        .16656E-03   -1.5226    
   4  Prefactor     .10000E-03    15.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          43.218        4.4926        .49194E-04   -1.4392    
   9  Prefactor     19.279        36.257        .91224E-04   -1.4830    
  10  Prefactor     49.262        14.631        .57135E-04   -1.4303    
  11  Prefactor     1.1311        2.9301        .20847E-03   -1.5495    
  12  Prefactor     .10000E-03    13.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9446        .12862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3003        1.8676        .91034E-04   -1.5405    
  17  norm          5.0823        7.3876        .17835E-03   -1.5257    
  18  Prefactor     134.44        106.23        .17367E-03   -1.3384    
  19  Prefactor     9.7424        8.7017        .64194E-03   -1.5084    
  20  Prefactor     .10000E-03    2.1579        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1374        .26499        .30929E-03   -.88561    
  22  Prefactor     .91956        .23564        .30817E-03   -.95461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92292e-10
Minuit parameter uncertainties:
  1  3.34675
  2  4.56535
  3  5.63412
  4  9.64903e-05
Done.

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

Extracting fit parameters...

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.197e-08  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.214e+00  0.000e+00  0.000e+00  1.0Done.

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

Extracting fit parameters...

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  2.197e-08  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  9.196e-01  2.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.137e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.218 -6.433
Photon Flux Upper Limit: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187381/likelihoodResults_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5896.85757997
delta logL = -0.00155973081473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5896.85602
delta logL = 2.39743712882e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1860       1.0000          .0000       10.000    
     3 'Normalizat'    1.1375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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=   5896.856     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10395E-03    3.5229        .13303E-01** at limit **
   2  Index         2.0880        8.9559        .50000        .67745E-04
   3  Normalizat    1.1374        .59304E-02    .30929E-03    .73368E-04
   4  Prefactor     .91956        .54009E-02    .30817E-03    .40838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103954
  Index      = 2.08796
  Normalizat = 1.13736
  Prefactor  = 0.919564
 **********
 **   18 **HESSE 
 **********

 FCN=   5896.856     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10395E-03    43.139        .13821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0880        5.2836        .50000       -.62169    
   3  Normalizat    1.1374        .20995E-01    .12372E-04   -.88561    
   4  Prefactor     .91956        .19121E-01    .12327E-04   -.95461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30271e-08
Minuit parameter uncertainties:
  1  0.0261408
  2  236.955
  3  0.0209954
  4  0.0191206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187381': 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): 102
logL (Free Index) = 5896.85601854
delta logL = 1.70702242031e-06

Extracting fit parameters...

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  1.040e-04  2.614e-02  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.088e+00  2.370e+02  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.539e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  9.196e-01  1.912e-02  0.000e+00  1.000e+01 ( 1.000e+00)
589        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
590        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.137e+00  2.100e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.218 -6.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/187381/cmap_HighResolution_668304001_668563201_4FGL_J0124.8-0625_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2022-03-10 00:18:42.282101', job_id='187381', GAL2='0.92', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1646900322.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1655' AND source_name='4FGL J0124.8-0625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:18:42 PST 2022

r <slac> at Thu Mar 10 00:06:00 2022
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:06:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:06:06 2022
Terminated at Thu Mar 10 00:18:10 2022
Results reported at Thu Mar 10 00:18:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0124.8-0625_daily_bin1655 21.2178 -6.4328 668304001 668563201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0124.8-0625 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            730 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 187381: <4FGL_J0124.8-0625_daily_bin1655> in cluster <slac> Done

Job <4FGL_J0124.8-0625_daily_bin1655> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar 10 00:06:00 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:06:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:06:06 2022
Terminated at Thu Mar 10 00:18:42 2022
Results reported at Thu Mar 10 00:18:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0124.8-0625_daily_bin1655 21.2178 -6.4328 668304001 668563201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0124.8-0625 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   627.05 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             320.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            762 sec.

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

