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


Performing analysis on: 4FGL_J0126.8+2412_daily_bin1195
RA = 21.7036, Dec = 24.21
tmin = 549072001, tmax = 549331201
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='577279', job_status='RUN', time_executed='2021-08-14 00:54:53.883508', time_epoch_executed='1628927693.88' WHERE source_name='4FGL J0126.8+2412' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577279

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577279/ft1_4FGL_J0126.8+2412_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577279/ft2_4FGL_J0126.8+2412_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577279/ft1_4FGL_J0126.8+2412_daily_bin1195.fits outfile=/scratch/kocevski/577279/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1195.fits ra=21.7036 dec=24.21 rad=12.0 tmin=549072001.0 tmax=549331201.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 2.91
user 2.72
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577279/ft2_4FGL_J0126.8+2412_daily_bin1195.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/577279/ft1_filteredMKT_4FGL_J0126.8+2412_daily_bin1195.fits evtable="EVENTS" outfile="/scratch/kocevski/577279/ft1_filtered_4FGL_J0126.8+2412_daily_bin1195.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577279/ft1_filtered_4FGL_J0126.8+2412_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/577279/ft2_4FGL_J0126.8+2412_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/577279/ltcube_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.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/577279/ft2_4FGL_J0126.8+2412_daily_bin1195.fits
.....................!
real 14.12
user 13.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577279/ft1_filtered_4FGL_J0126.8+2412_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/577279/ft2_4FGL_J0126.8+2412_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/577279/ltcube_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.fits outfile=/scratch/kocevski/577279/expmap_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.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/577279/ltcube_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.fits
.....................!
real 189.76
user 185.43
sys 3.93

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/577279/ft1_filtered_4FGL_J0126.8+2412_daily_bin1195.fits scfile=/scratch/kocevski/577279/ft2_4FGL_J0126.8+2412_daily_bin1195.fits outfile=/scratch/kocevski/577279/cmap_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577279/ft1_filtered_4FGL_J0126.8+2412_daily_bin1195.fits scfile=/scratch/kocevski/577279/ft2_4FGL_J0126.8+2412_daily_bin1195.fits outfile=/scratch/kocevski/577279/cmap_HighResolution_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.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 0.54
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.267       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1529       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0875       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3402       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16907E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.466       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1744       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95612       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=   7480.827     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2133 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5524        .90712E-02** at limit **
   2  Prefactor     .10000E-03    6.6054        .90712E-02** at limit **
   3  Prefactor     .10000E-03    11.394        .90712E-02** at limit **
   4  Prefactor     10.263        32.140        .31263E-02   -.14209E-03
   5  norm          1.1529        .60895        .10171E-01    .20861E-03
   6  norm          1.0874        .91172        .11492E-01    .23355E-03
   7  Prefactor     .10000E-03    4.1411        .90712E-02** at limit **
   8  Prefactor     .10000E-03    16.164        .90712E-02** at limit **
   9  Prefactor     3.3402        3.3341        .55365E-02    .19306E-04
  10  Prefactor     .10000E-03    8.8683        .90712E-02** at limit **
  11  Prefactor     .10000E-03    12.890        .90712E-02** at limit **
  12  Prefactor     12.853        43.647        .27925E-02   -.29658E-04
  13  Prefactor     .10000E-03    144.64        .90712E-02** at limit **
  14  norm          .10000E-03    .35429        .19068E-01** at limit **
  15  Prefactor     .10000E-03    4.8493        .70972E-01** at limit **
  16  Prefactor     .10000E-03    8.7171        .90712E-02** at limit **
  17  norm          .10000E-03    2.3916        .90712E-02** at limit **
  18  Prefactor     .10000E-03    411.14        .90712E-02** at limit **
  19  Prefactor     13.465        10.954        .27288E-02    .15614E-03
  20  Prefactor     6.1744        6.8051        .40390E-02    .48723E-03
  21  Normalizat    1.1787        .17953        .63505E-01    .35853E-04
  22  Prefactor     .95609        .11608        .45716E-01    .39083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.263
  norm       = 1.15291
  norm       = 1.08737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.34019
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8526
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.465
  Prefactor  = 6.17442
  Normalizat = 1.17873
  Prefactor  = 0.956087
 **********
 **   18 **HESSE 
 **********

 FCN=   7480.827     FROM HESSE     STATUS=OK           350 CALLS     2483 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5527        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.263        32.124        .12505E-03   -1.5067    
   5  norm          1.1529        .60644        .45071E-04   -1.5493    
   6  norm          1.0874        .90572        .72797E-04   -1.5499    
   7  Prefactor     .10000E-03    4.1509        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3402        3.3307        .15228E-03   -1.5342    
  10  Prefactor     .10000E-03    9.1877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.853        43.723        .11170E-03   -1.4991    
  13  Prefactor     .10000E-03    144.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .68547        .99317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.1780        .66434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.7190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4043        .13045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    412.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.465        10.946        .10915E-03   -1.4974    
  20  Prefactor     6.1744        6.8078        .16156E-03   -1.5211    
  21  Normalizat    1.1787        .20913        .28090E-03   -.87263    
  22  Prefactor     .95609        .13583        .19854E-03   -.94208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64873e-10
Minuit parameter uncertainties:
  1  5.26169e-07
  2  1.34229e-06
  3  7.73422e-06
  4  32.1784
  5  0.606447
  6  0.905733
  7  1.94857e-06
  8  8.47091e-06
  9  3.33092
  10  8.24473e-06
  11  2.30386e-06
  12  43.8324
  13  2.86978e-06
  14  1.04712e-08
  15  1.23444e-05
  16  2.46394e-06
  17  8.09594e-07
  18  0.000397278
  19  10.9481
  20  6.80867
  21  0.209278
  22  0.135874
Done.

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

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.304e-06  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.561e-01  1.359e-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.179e+00  2.093e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577279/likelihoodResults_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.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) = 7480.82727564
delta logL = -0.000364949602044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7480.8269107
delta logL = -1.36096787173e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7536       1.0000          .0000       10.000    
     3 'Normalizat'    1.1787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95610       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=   7480.827     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6211.2        .90712E-02** at limit **
   2  Index         2.7471        5.8164        .50000        .46354E-05
   3  Normalizat    1.1787        .11164        .63505E-01    .36196E-04
   4  Prefactor     .95609        .70347E-01    .45716E-01    .27543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.74712
  Normalizat = 1.17873
  Prefactor  = 0.956087
 **********
 **   18 **HESSE 
 **********

 FCN=   7480.827     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7471        6.3731        .50000       -.46741    
   3  Normalizat    1.1787        .20558        .28090E-03   -.87263    
   4  Prefactor     .95609        .13323        .19854E-03   -.94208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16425e-11
Minuit parameter uncertainties:
  1  0.000122704
  2  5.00687
  3  0.205723
  4  0.13328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577279': 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) = 7480.82691068
delta logL = 1.29075488076e-08

Extracting fit parameters...

4FGL J0126.8+2412
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.227e-04  1.000e-04  1.000e+04 ( 1.000e-12)
258        Index:  2.747e+00  5.007e+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:  9.561e-01  1.333e-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.179e+00  2.057e-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/577279/cmap_HighResolution_549072001_549331201_4FGL_J0126.8+2412_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-14 01:06:13.648410', job_id='577279', GAL2='0.96', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1628928373.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1195' AND source_name='4FGL J0126.8+2412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:06:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 577279: <4FGL_J0126.8+2412_daily_bin1195> in cluster <slac> Done

Job <4FGL_J0126.8+2412_daily_bin1195> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 14 00:50:34 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 00:54: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:54:42 2021
Terminated at Sat Aug 14 01:06:14 2021
Results reported at Sat Aug 14 01:06:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0126.8+2412_daily_bin1195 21.7036 24.21 549072001 549331201 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 :                                   675.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            940 sec.

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

