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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin298
RA = 21.7036, Dec = 24.21
tmin = 316569601, tmax = 316828801
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='573753', job_status='RUN', time_executed='2021-08-14 00:42:04.974085', time_epoch_executed='1628926924.97' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573753/ft1_4FGL_J0126.8+2412_daily_bin298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573753/ft1_4FGL_J0126.8+2412_daily_bin298.fits outfile=/scratch/kocevski/573753/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin298.fits ra=21.7036 dec=24.21 rad=12.0 tmin=316569601.0 tmax=316828801.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.74
user 3.28
sys 1.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.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/573753/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin298.fits evtable="EVENTS" outfile="/scratch/kocevski/573753/ft1_filtered_4FGL_J0126.8+2412_daily_bin298.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.81
user 0.36
sys 1.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573753/ft1_filtered_4FGL_J0126.8+2412_daily_bin298.fits" evtable="EVENTS" scfile=/scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits sctable="SC_DATA" outfile=/scratch/kocevski/573753/ltcube_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.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/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits
.....................!
real 15.17
user 13.37
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573753/ft1_filtered_4FGL_J0126.8+2412_daily_bin298.fits evtable="EVENTS" scfile=/scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits sctable="SC_DATA" expcube=/scratch/kocevski/573753/ltcube_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.fits outfile=/scratch/kocevski/573753/expmap_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.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/573753/ltcube_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.fits
.....................!
real 193.27
user 186.27
sys 6.64

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/573753/ft1_filtered_4FGL_J0126.8+2412_daily_bin298.fits scfile=/scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits outfile=/scratch/kocevski/573753/cmap_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.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.78
user 0.37
sys 1.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573753/ft1_filtered_4FGL_J0126.8+2412_daily_bin298.fits scfile=/scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits outfile=/scratch/kocevski/573753/cmap_HighResolution_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.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.83
user 0.39
sys 1.38

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573753/ft1_filtered_4FGL_J0126.8+2412_daily_bin298.fits', '/scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits', expMap='/scratch/kocevski/573753/expmap_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.fits', expCube='/scratch/kocevski/573753/ltcube_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573753/Model_4FGL_J0126.8+2412_daily_bin298.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/573753/ft1_filtered_4FGL_J0126.8+2412_daily_bin298.fits
Spacecraft file(s): /scratch/kocevski/573753/ft2_4FGL_J0126.8+2412_daily_bin298.fits
Exposure map: /scratch/kocevski/573753/expmap_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.fits
Exposure cube: /scratch/kocevski/573753/ltcube_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573753/Model_4FGL_J0126.8+2412_daily_bin298.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) = 8581.89005101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.190       1.0000         .10000E-03   10000.    
     5 'norm      '    .83996       1.0000         .10000E-03   10000.    
     6 'norm      '    3.5144       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11264E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15869E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.931       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.878       1.0000         .10000E-03   10000.    
    14 'norm      '    .50203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.642       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.466       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8514       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2701       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98958       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.

 FCN=   8581.889     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2754 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5372       -.11610E-07** at limit **
   2  Prefactor     .10000E-03    6.3713       -.23075E-07** at limit **
   3  Prefactor     .10000E-03    3.0915       -.10777E-07** at limit **
   4  Prefactor     23.191        21.219       -.99060E-05    .23919E-04
   5  norm          .83988        .50969        .13913E-06   -.91005E-04
   6  norm          3.5148        1.3994        .31889E-07   -.11780E-03
   7  Prefactor     .10000E-03    6.6861        .76432E-07** at limit **
   8  Prefactor     .10000E-03    27.123       -.81296E-06** at limit **
   9  Prefactor     .10000E-03    1.9813        .81235E-07** at limit **
  10  Prefactor     .10000E-03    3.2491        .59898E-08** at limit **
  11  Prefactor     .10001E-03    5.3371       -.90308E-06** at limit **
  12  Prefactor     25.926        24.737        .25949E-04    .34291E-04
  13  Prefactor     28.878        68.993        .97639E-06    .23377E-04
  14  norm          .50378        .52213       -.14387E-06   -.20308E-02
  15  Prefactor     .10000E-03    11.124       -.35697E-06** at limit **
  16  Prefactor     .10000E-03    5.7021        .29422E-07** at limit **
  17  norm          29.643        6.9912       -.25159E-06    .25487E-04
  18  Prefactor     .10000E-03    911.95       -.87039E-04** at limit **
  19  Prefactor     16.465        9.7100       -.12254E-06   -.61215E-03
  20  Prefactor     8.8527        5.6024       -.22839E-07    .44662E-04
  21  Normalizat    1.2698        .19002        .30399E-06    .12559E-03
  22  Prefactor     .98960        .12226       -.90500E-06    .33262E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1909
  norm       = 0.839878
  norm       = 3.51477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 25.9255
  Prefactor  = 28.8784
  norm       = 0.503777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.6426
  Prefactor  = 0.000100001
  Prefactor  = 16.4649
  Prefactor  = 8.85265
  Normalizat = 1.2698
  Prefactor  = 0.989603
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.889     FROM HESSE     STATUS=OK           344 CALLS     3098 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5402        .14411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0985        .15907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.191        21.193        .83180E-04   -1.4744    
   5  norm          .83988        .49506        .49419E-03   -1.5525    
   6  norm          3.5148        1.3987        .66434E-04   -1.5333    
   7  Prefactor     .10000E-03    6.7165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9956        .12730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2785        .16294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    24.028        .40565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     25.926        24.717        .78668E-04   -1.4689    
  13  Prefactor     28.878        68.018        .74553E-04   -1.4633    
  14  norm          .50378        .48623        .63691E-03   -1.5566    
  15  Prefactor     .10000E-03    11.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.643        6.9896        .73589E-04   -1.4619    
  18  Prefactor     .10000E-03    916.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.465        9.7180        .49351E-03   -1.4896    
  20  Prefactor     8.8527        5.6034        .13472E-03   -1.5113    
  21  Normalizat    1.2698        .22380        .29740E-03   -.84472    
  22  Prefactor     .98960        .14517        .21424E-03   -.93077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0685e-10
Minuit parameter uncertainties:
  1  1.06564e-06
  2  1.15646e-05
  3  1.11596e-06
  4  21.1999
  5  0.495059
  6  1.39871
  7  2.80615e-06
  8  8.64312e-05
  9  1.19626e-05
  10  3.00438e-06
  11  0.000832045
  12  24.727
  13  68.2018
  14  0.486233
  15  0.000110454
  16  2.05217e-06
  17  6.98978
  18  0.00208739
  19  9.71898
  20  5.60373
  21  0.223966
  22  0.145228
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  8.320e-04  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:  9.896e-01  1.452e-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:  1.270e+00  2.240e-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: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573753/likelihoodResults_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.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) = 8581.88911883
delta logL = -0.000196710330783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8581.88892214
delta logL = -2.43398972088e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8036       1.0000          .0000       10.000    
     3 'Normalizat'    1.2699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98958       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8581.889     FROM MIGRAD    STATUS=FAILED       103 CALLS      270 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11009E-03    251.91        .39156E-02** at limit **
   2  Index         3.1421        6.4806        .50000       -.38196E-05
   3  Normalizat    1.2698        .12204E-01    .29740E-03    .61163E-04
   4  Prefactor     .98960        .79213E-02    .21424E-03    .75563E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8581.889     FROM SIMPLEX   STATUS=UNCHANGED    120 CALLS      390 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11009E-03    251.91        .10080E-02** at limit **
   2  Index         3.1421        6.4806        .20256E-03   -.38196E-05
   3  Normalizat    1.2698        .12204E-01    .22325E-05    .61163E-04
   4  Prefactor     .98960        .79213E-02    .17068E-05    .75563E-04
                               ERR DEF=  .500    

 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=   8581.889     FROM MIGRAD    STATUS=FAILED        83 CALLS      473 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6331.6        .31325E-03** at limit **
   2  Index         3.2312        7.2941        .50000        .98729E-06
   3  Normalizat    1.2698        .43373E-01    .23792E-05   -.20260E-03
   4  Prefactor     .98960        .28152E-01    .17140E-05   -.29185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.23116
  Normalizat = 1.2698
  Prefactor  = 0.989602
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.889     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      500 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8452.5        .62649E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2312        8.3498        .50000       -.36160    
   3  Normalizat    1.2698        .13189        .47584E-06   -.84472    
   4  Prefactor     .98960        .85296E-01    .34279E-06   -.93077    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.66095e-07
Minuit parameter uncertainties:
  1  0.00408461
  2  3340
  3  0.131925
  4  0.0853076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573753': 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): 1
logL (Free Index) = 8581.88892121
delta logL = 9.10127710085e-07

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.085e-03  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  3.231e+00  3.340e+03  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:  9.896e-01  8.531e-02  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:  1.270e+00  1.319e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/573753/cmap_HighResolution_316569601_316828801_4FGL_J0126.8+2412_daily_bin298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-08-14 00:56:20.221028', job_id='573753', GAL2='0.99', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1628927780.22', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='298' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 00:56:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 573753: <4FGL_J0126.8+2412_daily_bin298> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin298> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 14 00:40:23 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:40:43 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:40:43 2021
Terminated at Sat Aug 14 00:56:21 2021
Results reported at Sat Aug 14 00:56:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin298 21.7036 24.21 316569601 316828801 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 :                                   871.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            958 sec.

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

