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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1421
RA = 21.7036, Dec = 24.21
tmin = 607651201, tmax = 607910401
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='578810', job_status='RUN', time_executed='2021-08-14 00:58:52.799864', time_epoch_executed='1628927932.8' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/578810

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/578810/ft1_4FGL_J0126.8+2412_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/578810/ft2_4FGL_J0126.8+2412_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/578810/ft1_4FGL_J0126.8+2412_daily_bin1421.fits outfile=/scratch/kocevski/578810/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1421.fits ra=21.7036 dec=24.21 rad=12.0 tmin=607651201.0 tmax=607910401.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 7.09
user 3.53
sys 3.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/578810/ft1_filtered_4FGL_J0126.8+2412_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/578810/ft2_4FGL_J0126.8+2412_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/578810/ltcube_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.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/578810/ft2_4FGL_J0126.8+2412_daily_bin1421.fits
.....................!
real 15.46
user 11.71
sys 3.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/578810/ft1_filtered_4FGL_J0126.8+2412_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/578810/ft2_4FGL_J0126.8+2412_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/578810/ltcube_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.fits outfile=/scratch/kocevski/578810/expmap_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.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/578810/ltcube_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.fits
.....................!
real 194.71
user 185.34
sys 8.69

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/578810/ft1_filtered_4FGL_J0126.8+2412_daily_bin1421.fits scfile=/scratch/kocevski/578810/ft2_4FGL_J0126.8+2412_daily_bin1421.fits outfile=/scratch/kocevski/578810/cmap_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.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 3.74
user 0.36
sys 3.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/578810/ft1_filtered_4FGL_J0126.8+2412_daily_bin1421.fits scfile=/scratch/kocevski/578810/ft2_4FGL_J0126.8+2412_daily_bin1421.fits outfile=/scratch/kocevski/578810/cmap_HighResolution_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.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 3.70
user 0.36
sys 3.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18831E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4343       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .66149       1.0000         .10000E-03   10000.    
     6 'norm      '    .81604       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.866       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15385E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.896       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.468       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97693       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=   7422.019     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2031 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4053       -.57335E-08** at limit **
   2  Prefactor     .10000E-03    89.903       -.10507E-04** at limit **
   3  Prefactor     5.4303        13.074       -.98605E-06   -.52471E-05
   4  Prefactor     .10000E-03    25.480        .97677E-06** at limit **
   5  norm          .66132        .55522        .14115E-06    .70645E-03
   6  norm          .81599        .81059       -.66744E-07   -.95763E-05
   7  Prefactor     15.860        18.346       -.96227E-07   -.10686E-04
   8  Prefactor     .10000E-03    71.237       -.42485E-05** at limit **
   9  Prefactor     11.897        6.4470        .42998E-06    .38024E-04
  10  Prefactor     .10000E-03    2.2674       -.73750E-08** at limit **
  11  Prefactor     4.0153        13.637       -.17773E-05   -.27572E-04
  12  Prefactor     .10000E-03    14.807        .12918E-06** at limit **
  13  Prefactor     .10000E-03    48.061        .53170E-05** at limit **
  14  norm          1.7902        .82103        .17587E-07    .40266E-04
  15  Prefactor     .10000E-03    4.8047       -.66716E-07** at limit **
  16  Prefactor     .10000E-03    52.809       -.57693E-05** at limit **
  17  norm          .10000E-03    1.4458       -.15527E-06** at limit **
  18  Prefactor     .10000E-03    75.894       -.58963E-05** at limit **
  19  Prefactor     14.465        10.152       -.44004E-06    .47736E-04
  20  Prefactor     .10000E-03    2.0639       -.89507E-07** at limit **
  21  Normalizat    1.2755        .20977       -.15187E-05    .30938E-04
  22  Prefactor     .97700        .12340        .55209E-06   -.12968E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.43032
  Prefactor  = 0.0001
  norm       = 0.66132
  norm       = 0.815986
  Prefactor  = 15.8601
  Prefactor  = 0.0001
  Prefactor  = 11.8967
  Prefactor  = 0.0001
  Prefactor  = 4.01527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4653
  Prefactor  = 0.0001
  Normalizat = 1.27546
  Prefactor  = 0.976995
 **********
 **   18 **HESSE 
 **********

 FCN=   7422.019     FROM HESSE     STATUS=OK           346 CALLS     2377 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4062        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    86.785        .53077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4303        13.066        .17237E-03   -1.5242    
   4  Prefactor     .10000E-03    25.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .66132        .52885        .56799E-03   -1.5545    
   6  norm          .81599        .77083        .74806E-03   -1.5527    
   7  Prefactor     15.860        18.367        .10055E-03   -1.4911    
   8  Prefactor     .10000E-03    72.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.897        6.4777        .11615E-03   -1.5018    
  10  Prefactor     .10000E-03    2.2757        .12666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0153        13.716        .20107E-03   -1.5307    
  12  Prefactor     .10000E-03    14.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7902        .81673        .50456E-04   -1.5440    
  15  Prefactor     .10000E-03    4.8182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4476        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    76.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.465        10.130        .10530E-03   -1.4947    
  20  Prefactor     .10000E-03    2.0696        .12086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2755        .23852        .29932E-03   -.84302    
  22  Prefactor     .97700        .14304        .20828E-03   -.93500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92634e-10
Minuit parameter uncertainties:
  1  1.74087e-07
  2  5.83251e-05
  3  13.0731
  4  2.00331e-06
  5  0.528858
  6  0.770837
  7  18.3733
  8  2.78988e-05
  9  6.47808
  10  4.18877e-06
  11  13.7265
  12  1.23576e-05
  13  0.000111511
  14  0.816739
  15  6.30315e-06
  16  0.000206162
  17  4.23875e-06
  18  9.26884e-05
  19  10.1312
  20  9.46069e-07
  21  0.238722
  22  0.143098
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  4.015e+00  1.373e+01  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.770e-01  1.431e-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.275e+00  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 21.704 24.210
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/578810/likelihoodResults_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.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) = 7421.67688455
delta logL = 0.342559579542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7421.59073007
delta logL = 0.428714060427

Fit tolerance = 1e-08

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

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

 FCN=   7421.591     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1365        43.444        .70291E-02    .91812E-03
   2  Index         4.7135        7.0757        .20172        .11168E-03
   3  Normalizat    1.1984        .54172E-01    .69448E-01    .18650E-04
   4  Prefactor     1.0059        .33278E-01    .44036E-01   -.12814E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13654
  Index      = 4.71346
  Normalizat = 1.19842
  Prefactor  = 1.00589
 **********
 **   18 **HESSE 
 **********

 FCN=   7421.591     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1365        104.02        .12261E-03   -1.5416    
   2  Index         4.7135        6.8106        .96101E-02   -.57339E-01
   3  Normalizat    1.1984        .22706        .30728E-03   -.86652    
   4  Prefactor     1.0059        .13938        .20555E-03   -.92533    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47875e-09
Minuit parameter uncertainties:
  1  29.8699
  2  10.9176
  3  0.227251
  4  0.139434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/578810': 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) = 7421.59072463
delta logL = 0.428719497812

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  2.137e+00  2.987e+01  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  4.713e+00  1.092e+01  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.006e+00  1.394e-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.198e+00  2.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 21.704 24.210
Photon Index (Free Index): 4.71 +/- 10.92
Photon Flux (Free Index): 8.78e-08 +/- 9.29e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.74e-05

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/578810/cmap_HighResolution_607651201_607910401_4FGL_J0126.8+2412_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='4.29e-01', photon_flux2='8.78e-08', job_status='DONE', time_completed='2021-08-14 01:10:53.626581', photon_index_error2='10.92', photon_index2='4.71', ts='0.10', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.74e-05', EG='1.28', time_epoch_completed='1628928653.63', return_code='0', job_id='578810', GAL2='1.01', EG2='1.20', return_code2='102', photon_flux_error2='9.29e-08', ts2='1.06', photon_index='2.76' WHERE bin_id='1421' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 578810: <4FGL_J0126.8+2412_daily_bin1421> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1421> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 00:55:27 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:57:42 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:57:42 2021
Terminated at Sat Aug 14 01:10:54 2021
Results reported at Sat Aug 14 01:10:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1421 21.7036 24.21 607651201 607910401 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 :                                   760.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            927 sec.

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

