/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 124 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0124.8-0625_daily_bin430
RA = 21.2178, Dec = -6.4328
tmin = 350784001, tmax = 351043201
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='552035', job_status='RUN', time_executed='2021-08-13 23:39:34.793772', time_epoch_executed='1628923174.79' WHERE source_name='4FGL J0124.8-0625' and cadence='daily' and bin_id='430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552035/ft1_4FGL_J0124.8-0625_daily_bin430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552035/ft1_4FGL_J0124.8-0625_daily_bin430.fits outfile=/scratch/kocevski/552035/ft1_filteredMKT_4FGL_J0124.8-0625_daily_bin430.fits ra=21.2178 dec=-6.4328 rad=12.0 tmin=350784001.0 tmax=351043201.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 3.39
user 3.14
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.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/552035/ft1_filteredMKT_4FGL_J0124.8-0625_daily_bin430.fits evtable="EVENTS" outfile="/scratch/kocevski/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits" evtable="EVENTS" scfile=/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits sctable="SC_DATA" outfile=/scratch/kocevski/552035/ltcube_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.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/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits
.....................!
real 13.74
user 12.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits sctable="SC_DATA" expcube=/scratch/kocevski/552035/ltcube_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.fits outfile=/scratch/kocevski/552035/expmap_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.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/552035/ltcube_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.fits
.....................!
real 190.49
user 184.85
sys 4.57

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/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits scfile=/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits outfile=/scratch/kocevski/552035/cmap_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits scfile=/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits outfile=/scratch/kocevski/552035/cmap_HighResolution_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits evtable="EVENTS" scfile=/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/552035/Model_4FGL_J0124.8-0625_daily_bin430.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/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits.....................!
real 61.30
user 60.00
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits', '/scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits', expMap='/scratch/kocevski/552035/expmap_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.fits', expCube='/scratch/kocevski/552035/ltcube_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/552035/Model_4FGL_J0124.8-0625_daily_bin430.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/552035/ft1_filtered_4FGL_J0124.8-0625_daily_bin430.fits
Spacecraft file(s): /scratch/kocevski/552035/ft2_4FGL_J0124.8-0625_daily_bin430.fits
Exposure map: /scratch/kocevski/552035/expmap_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.fits
Exposure cube: /scratch/kocevski/552035/ltcube_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/552035/Model_4FGL_J0124.8-0625_daily_bin430.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) = 6588.63049745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.868       1.0000         .10000E-03   10000.    
     2 'norm      '    7.8708       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13502E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16672E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.798       1.0000         .10000E-03   10000.    
    15 'norm      '    14.479       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3729       1.0000         .10000E-03   10000.    
    17 'norm      '    11.879       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.813       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .38832       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2772       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=   6588.624     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2345 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.865        4.1063       -.79823E-06   -.65664E-04
   2  norm          7.8712        3.5503       -.17144E-06   -.38557E-04
   3  norm          5.6731        4.1448        .10449E-05    .62509E-05
   4  Prefactor     .10000E-03    6.6217       -.22850E-06** at limit **
   5  Prefactor     .10000E-03    11.875       -.76923E-08** at limit **
   6  Prefactor     .10000E-03    90.884        .67067E-06** at limit **
   7  Prefactor     .10000E-03    29.307        .39583E-06** at limit **
   8  norm          4.0997        1.3311       -.85533E-07    .78085E-06
   9  Prefactor     36.237        35.596        .85641E-05    .72921E-05
  10  Prefactor     .10000E-03    5.9119       -.35382E-06** at limit **
  11  Prefactor     .10000E-03    1.8648        .94184E-07** at limit **
  12  Prefactor     .10000E-03    17.077       -.41369E-06** at limit **
  13  Prefactor     4.3009        4.4075       -.80153E-06    .82650E-04
  14  Prefactor     24.800        25.444        .56639E-06    .25756E-05
  15  norm          14.475        20.392        .56480E-06   -.20714E-04
  16  norm          1.3728        1.0426        .20115E-07   -.49285E-03
  17  norm          11.879        5.5718        .18513E-06   -.61087E-04
  18  Prefactor     26.808        46.463       -.61867E-05   -.17632E-05
  19  Prefactor     .10000E-03    1.3277        .72873E-07** at limit **
  20  Prefactor     .10000E-03    1.3246        .89965E-07** at limit **
  21  Normalizat    .38825        .16080       -.97300E-06   -.75027E-04
  22  Prefactor     1.2772        .16179       -.11601E-06   -.19798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8651
  norm       = 7.87122
  norm       = 5.67307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.09965
  Prefactor  = 36.237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30089
  Prefactor  = 24.8002
  norm       = 14.4754
  norm       = 1.37285
  norm       = 11.8792
  Prefactor  = 26.8081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.388254
  Prefactor  = 1.27721
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.624     FROM HESSE     STATUS=OK           348 CALLS     2693 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.865        4.0973        .76787E-04   -1.4886    
   2  norm          7.8712        3.5495        .98960E-04   -1.5147    
   3  norm          5.6731        4.1416        .13496E-03   -1.5232    
   4  Prefactor     .10000E-03    6.6348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    92.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0997        1.3295        .51445E-04   -1.5303    
   9  Prefactor     36.237        35.584        .66585E-04   -1.4503    
  10  Prefactor     .10000E-03    6.0782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.8792        .21267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3009        4.4000        .16722E-03   -1.5293    
  14  Prefactor     24.800        25.443        .80441E-04   -1.4712    
  15  norm          14.475        20.348        .10526E-03   -1.4947    
  16  norm          1.3728        1.0259        .68782E-04   -1.5474    
  17  norm          11.879        5.5667        .11623E-03   -1.5019    
  18  Prefactor     26.808        46.430        .77365E-04   -1.4672    
  19  Prefactor     .10000E-03    1.3356        .91337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.3338        .91223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .38825        .17001        .34295E-03   -1.1791    
  22  Prefactor     1.2772        .17430        .20177E-03   -.83987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25043e-10
Minuit parameter uncertainties:
  1  4.0974
  2  3.54961
  3  4.14183
  4  5.59315e-06
  5  4.51377e-06
  6  0.000235996
  7  6.02246e-06
  8  1.32955
  9  35.6049
  10  0.000100771
  11  1.65135e-05
  12  4.87706e-06
  13  4.40034
  14  25.4544
  15  20.3573
  16  1.02589
  17  5.56697
  18  46.4926
  19  8.15118e-07
  20  1.28013e-06
  21  0.170238
  22  0.174381
Done.

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

Extracting fit parameters...

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  4.301e+00  4.400e+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

GAL_V02
   Spectrum: PowerLaw
588    Prefactor:  1.277e+00  1.744e-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:  3.883e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.50
Ra Dec: 21.218 -6.433
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.51e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 6.60e-06 +/- 6.75e-06

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

Saving results to:
/scratch/kocevski/552035/likelihoodResults_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.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) = 6588.23785741
delta logL = 0.385910735433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6588.19107097
delta logL = 0.432697172919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0517       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5561       1.0000          .0000       10.000    
     3 'Normalizat'    .39157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2780       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.

 FCN=   6588.191     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0497        309.29        .40803E-02   -.12283E-03
   2  Index         1.5555        5.5575        .29199       -.49132E-05
   3  Normalizat    .39160        .98414E-01    .77119E-01    .40430E-04
   4  Prefactor     1.2780        .85224E-01    .33005E-01   -.65583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.04969
  Index      = 1.55549
  Normalizat = 0.391601
  Prefactor  = 1.278
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.191     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0497        6.3097        .16321E-03   -1.5216    
   2  Index         1.5555        .68448        .10750E-01   -.75997    
   3  Normalizat    .39160        .16701        .34158E-03   -1.1774    
   4  Prefactor     1.2780        .17266        .20171E-03   -.83963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55489e-12
Minuit parameter uncertainties:
  1  6.31044
  2  0.688615
  3  0.167224
  4  0.172734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552035': 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) = 6588.19107041
delta logL = 0.43269772932

Extracting fit parameters...

4FGL J0124.8-0625
   Spectrum: PowerLaw
309    Prefactor:  6.050e+00  6.310e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  1.555e+00  6.886e-01  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:  1.278e+00  1.727e-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:  3.916e-01  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.36
Ra Dec: 21.218 -6.433
Photon Index (Free Index): 1.56 +/- 0.69
Photon Flux (Free Index): 7.49e-09 +/- 1.02e-08
Energy Flux (Free Index): 1.97e-05 +/- 3.45e-05

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/552035/cmap_HighResolution_350784001_351043201_4FGL_J0124.8-0625_daily_bin430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', comment='SUCCESS', photon_flux='1.51e-08', energy_flux2='1.97e-05', photon_flux_error='1.54e-08', dlogl='4.33e-01', energy_flux='6.60e-06', photon_flux2='7.49e-09', job_status='DONE', time_completed='2021-08-13 23:50:46.534080', photon_index_error2='0.69', photon_index2='1.56', ts='3.50', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='6.27e-08', energy_flux_error2='3.45e-05', EG='0.39', time_epoch_completed='1628923846.53', return_code='0', job_id='552035', GAL2='1.28', EG2='0.39', return_code2='0', energy_flux_error='6.75e-06', photon_flux_error2='1.02e-08', ts2='4.36', photon_index='2.21' WHERE bin_id='430' AND source_name='4FGL J0124.8-0625' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 552035: <4FGL_J0124.8-0625_daily_bin430> in cluster <slac> Done

Job <4FGL_J0124.8-0625_daily_bin430> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 13 23:35:57 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:37:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:37:21 2021
Terminated at Fri Aug 13 23:50:47 2021
Results reported at Fri Aug 13 23:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0124.8-0625_daily_bin430 21.2178 -6.4328 350784001 351043201 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 :                                   668.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            890 sec.

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

