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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin657
RA = 21.7036, Dec = 24.21
tmin = 409622401, tmax = 409881601
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='574289', job_status='RUN', time_executed='2021-08-14 00:45:12.319458', time_epoch_executed='1628927112.32' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574289/ft1_4FGL_J0126.8+2412_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574289/ft1_4FGL_J0126.8+2412_daily_bin657.fits outfile=/scratch/kocevski/574289/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin657.fits ra=21.7036 dec=24.21 rad=12.0 tmin=409622401.0 tmax=409881601.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 6.60
user 5.40
sys 1.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.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/574289/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin657.fits evtable="EVENTS" outfile="/scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.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.39
user 0.32
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/574289/ltcube_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.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/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits
.....................!
real 13.47
user 12.09
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/574289/ltcube_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.fits outfile=/scratch/kocevski/574289/expmap_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.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/574289/ltcube_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.fits
.....................!
real 193.81
user 186.48
sys 6.80

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

Setting source of interest to:
4FGL J0126.8+2412 @ 21.7036 24.21

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits scfile=/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits outfile=/scratch/kocevski/574289/cmap_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.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.7036 yref=24.21 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.41
user 0.38
sys 1.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits scfile=/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits outfile=/scratch/kocevski/574289/cmap_HighResolution_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.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.7036 yref=24.21 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.48
user 0.39
sys 1.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574289/Model_4FGL_J0126.8+2412_daily_bin657.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/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits.....................!
real 55.37
user 52.71
sys 2.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits', '/scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits', expMap='/scratch/kocevski/574289/expmap_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.fits', expCube='/scratch/kocevski/574289/ltcube_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574289/Model_4FGL_J0126.8+2412_daily_bin657.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0126.8+2412'

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.716e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/574289/ft1_filtered_4FGL_J0126.8+2412_daily_bin657.fits
Spacecraft file(s): /scratch/kocevski/574289/ft2_4FGL_J0126.8+2412_daily_bin657.fits
Exposure map: /scratch/kocevski/574289/expmap_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.fits
Exposure cube: /scratch/kocevski/574289/ltcube_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574289/Model_4FGL_J0126.8+2412_daily_bin657.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) = 4814.02701278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2863       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16371E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2463       1.0000         .10000E-03   10000.    
     6 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9771       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.144       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2997       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.8628       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4465       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .82488       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+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=   4814.022     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     2710 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2799        15.512        .13927E-03    .32652E-04
   2  Prefactor     4.0278        46.338        .20167E-03    .73285E-06
   3  Prefactor     .10000E-03    13.398        .18142E-02** at limit **
   4  Prefactor     .10002E-03    49.291        .13319    ** at limit **
   5  norm          1.2471        .81957        .47484E-04    .39935E-03
   6  norm          .10000E-03    .50731        .47934E-03** at limit **
   7  Prefactor     .10000E-03    7.5725        .18142E-02** at limit **
   8  Prefactor     .10000E-03    17.030        .18142E-02** at limit **
   9  Prefactor     1.9786        3.8248        .18418E-03    .34629E-04
  10  Prefactor     9.6051        9.1781        .64638E-03    .37639E-04
  11  Prefactor     .10000E-03    10.664        .18142E-02** at limit **
  12  Prefactor     26.107        38.891        .78347E-04   -.24233E-04
  13  Prefactor     .10000E-03    62.801        .18142E-02** at limit **
  14  norm          1.2994        .80038        .47358E-04    .16804E-04
  15  Prefactor     14.622        15.694        .10474E-03    .11722E-04
  16  Prefactor     .10000E-03    8.9371        .18142E-02** at limit **
  17  norm          8.8653        5.1633        .11639E-03    .20610E-04
  18  Prefactor     .10000E-03    64.602        .18142E-02** at limit **
  19  Prefactor     .10000E-03    3.8938        .13350E-02** at limit **
  20  Prefactor     7.4446        6.9548        .14697E-03    .56467E-05
  21  Normalizat    .82447        .29190        .33293E-03    .30288E-04
  22  Prefactor     1.0550        .17462        .18773E-03    .83391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.27993
  Prefactor  = 4.02777
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  norm       = 1.24709
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97863
  Prefactor  = 9.60509
  Prefactor  = 0.0001
  Prefactor  = 26.1068
  Prefactor  = 0.0001
  norm       = 1.29944
  Prefactor  = 14.6215
  Prefactor  = 0.0001
  norm       = 8.86531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.44462
  Normalizat = 0.824468
  Prefactor  = 1.05498
 **********
 **   18 **HESSE 
 **********

 FCN=   4814.022     FROM HESSE     STATUS=OK           332 CALLS     3042 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2799        15.508        .55708E-05   -1.5132    
   2  Prefactor     4.0278        46.299        .80667E-05   -1.5307    
   3  Prefactor     .10000E-03    13.406        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    49.114        .13354       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2471        .81953        .18994E-05   -1.5485    
   6  norm          .10000E-03    .50733        .95868E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5729        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9786        3.8247        .73671E-05   -1.5427    
  10  Prefactor     9.6051        9.1765        .25855E-04   -1.5088    
  11  Prefactor     .10000E-03    10.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.107        38.871        .31339E-05   -1.4686    
  13  Prefactor     .10000E-03    62.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2994        .80037        .18943E-05   -1.5480    
  15  Prefactor     14.622        15.692        .41897E-05   -1.4943    
  16  Prefactor     .10000E-03    8.9374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.8653        5.1633        .46557E-05   -1.5112    
  18  Prefactor     .10000E-03    64.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8940        .26700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.4446        6.9547        .58789E-05   -1.5162    
  21  Normalizat    .82447        .29202        .13317E-04   -.99167    
  22  Prefactor     1.0550        .17474        .37545E-04   -.90919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00962e-11
Minuit parameter uncertainties:
  1  15.5154
  2  27.3381
  3  1.76283e-05
  4  0.00208341
  5  0.819538
  6  2.01957e-06
  7  1.57122e-06
  8  1.1325e-05
  9  3.82517
  10  9.17788
  11  3.16427e-05
  12  38.9087
  13  3.75614e-06
  14  0.800379
  15  15.6962
  16  5.30655e-06
  17  5.16355
  18  1.61696e-05
  19  1.96041e-06
  20  6.95549
  21  0.292583
  22  0.174838
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  3.164e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.760e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.055e+00  1.748e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  8.245e-01  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574289/likelihoodResults_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.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) = 4814.0228676
delta logL = -0.000446938349342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4814.02242157
delta logL = -9.02558895177e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7879       1.0000          .0000       10.000    
     3 'Normalizat'    .82409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0552       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4814.022     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      271 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.932        .87467E-01** at limit **
   2  Index         3.1582        5.2391        .50000       -.29081E-04
   3  Normalizat    .82447        .13740E-01    .33294E-03    .49512E-05
   4  Prefactor     1.0550        .87230E-02    .18773E-03   -.29311E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.1582
  Normalizat = 0.824469
  Prefactor  = 1.05498
 **********
 **   18 **HESSE 
 **********

 FCN=   4814.022     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.211        .31437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1582        6.1523        .50000       -.37724    
   3  Normalizat    .82447        .26546        .13318E-04   -.99167    
   4  Prefactor     1.0550        .16877        .37545E-04   -.90919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72277e-09
Minuit parameter uncertainties:
  1  1.04422e-05
  2  8.30441
  3  0.265879
  4  0.16886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574289': 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) = 4814.02241839
delta logL = 2.27544023801e-06

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.044e-05  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.158e+00  8.304e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  4.731e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.055e+00  1.689e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  8.245e-01  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 21.704 24.210

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/574289/cmap_HighResolution_409622401_409881601_4FGL_J0126.8+2412_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-08-14 00:55:39.707656', job_id='574289', GAL2='1.05', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1628927739.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='657' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 574289: <4FGL_J0126.8+2412_daily_bin657> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin657> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:54 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:44:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 00:44:10 2021
Terminated at Sat Aug 14 00:55:42 2021
Results reported at Sat Aug 14 00:55:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin657 21.7036 24.21 409622401 409881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0126.8+2412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            888 sec.

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

