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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin772
RA = 186.252, Dec = 3.5098
tmin = 439430401, tmax = 439689601
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='608377', job_status='RUN', time_executed='2021-09-05 13:54:15.055305', time_epoch_executed='1630875255.06' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608377/ft1_4FGL_J1225.0+0330_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608377/ft1_4FGL_J1225.0+0330_daily_bin772.fits outfile=/scratch/kocevski/608377/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin772.fits ra=186.252 dec=3.5098 rad=12.0 tmin=439430401.0 tmax=439689601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.75
user 3.54
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.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/608377/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin772.fits evtable="EVENTS" outfile="/scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.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.45
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits" evtable="EVENTS" scfile=/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits sctable="SC_DATA" outfile=/scratch/kocevski/608377/ltcube_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.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/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits
.....................!
real 9.52
user 9.21
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/608377/ltcube_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.fits outfile=/scratch/kocevski/608377/expmap_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.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/608377/ltcube_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.fits
.....................!
real 150.62
user 146.11
sys 4.21

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

Setting source of interest to:
4FGL J1225.0+0330 @ 186.252 3.5098

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits scfile=/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits outfile=/scratch/kocevski/608377/cmap_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.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=186.252 yref=3.5098 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.45
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits scfile=/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits outfile=/scratch/kocevski/608377/cmap_HighResolution_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.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=186.252 yref=3.5098 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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/608377/Model_4FGL_J1225.0+0330_daily_bin772.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/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits.....................!
real 47.49
user 46.28
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits', '/scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits', expMap='/scratch/kocevski/608377/expmap_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.fits', expCube='/scratch/kocevski/608377/ltcube_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/608377/Model_4FGL_J1225.0+0330_daily_bin772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.0+0330'

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/608377/ft1_filtered_4FGL_J1225.0+0330_daily_bin772.fits
Spacecraft file(s): /scratch/kocevski/608377/ft2_4FGL_J1225.0+0330_daily_bin772.fits
Exposure map: /scratch/kocevski/608377/expmap_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.fits
Exposure cube: /scratch/kocevski/608377/ltcube_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/608377/Model_4FGL_J1225.0+0330_daily_bin772.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) = 7073.0789638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1641       1.0000         .10000E-03   10000.    
     2 'Prefactor '    296.75       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2844       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.567       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.003       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.304       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44347       1.0000         .10000E-03   10000.    
    13 'norm      '    .80180       1.0000         .10000E-03   10000.    
    14 'norm      '    .10720E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    50.895       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.531       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8414       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.727       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.0706       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93781       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1808       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7073.076     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3966 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1647        19.119       -.39086E-06   -.14013E-05
   2  Prefactor     296.79        147.64       -.22722E-05   -.62794E-06
   3  Prefactor     .10000E-03    6.2363        .49049E-06** at limit **
   4  Prefactor     3.2845        6.4158        .34633E-05    .72938E-04
   5  Prefactor     16.566        24.962        .82865E-06    .28855E-05
   6  Prefactor     .10000E-03    6.1736       -.36026E-06** at limit **
   7  Prefactor     20.123        147.15       -.25302E-05   -.18869E-05
   8  Prefactor     32.001        33.814        .29085E-06    .22858E-05
   9  Prefactor     .10000E-03    55.850        .25782E-05** at limit **
  10  Prefactor     17.296        16.713       -.96517E-07   -.27525E-04
  11  Prefactor     .10000E-03    26.836       -.19021E-05** at limit **
  12  Prefactor     .50149        9.5211        .18329E-05   -.27881E-03
  13  norm          .80008        2.1791       -.12831E-06   -.50015E-03
  14  norm          .10000E-03    2.4396       -.58348E-06** at limit **
  15  Prefactor     .10000E-03    17.634        .71286E-06** at limit **
  16  norm          50.882        46.837        .13179E-05    .32511E-05
  17  Prefactor     35.538        83.866       -.99272E-06    .52742E-05
  18  norm          1.8415        .63779        .11659E-07    .65025E-03
  19  Prefactor     16.728        13.205        .28214E-06    .18235E-04
  20  Prefactor     11.444        32.801       -.90935E-06    .71993E-05
  21  Prefactor     .10000E-03    4.0359       -.26545E-07** at limit **
  22  norm          3.0708        1.8509        .28695E-07    .76335E-04
  23  Prefactor     .10000E-03    2.6808       -.27083E-07** at limit **
  24  Prefactor     .10000E-03    51.980       -.11733E-05** at limit **
  25  Prefactor     .10000E-03    20.100        .16883E-05** at limit **
  26  Prefactor     .10000E-03    15.852       -.13134E-05** at limit **
  27  norm          .10000E-03    9.7118        .75801E-07** at limit **
  28  Prefactor     .10000E-03    5.3568        .12107E-07** at limit **
  29  Normalizat    .93760        .21438       -.10570E-05   -.42173E-04
  30  Prefactor     1.1809        .16877        .49612E-06    .32942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16471
  Prefactor  = 296.787
  Prefactor  = 0.0001
  Prefactor  = 3.28447
  Prefactor  = 16.566
  Prefactor  = 0.0001
  Prefactor  = 20.1234
  Prefactor  = 32.0007
  Prefactor  = 0.0001
  Prefactor  = 17.2956
  Prefactor  = 0.0001
  Prefactor  = 0.50149
  norm       = 0.80008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 50.8821
  Prefactor  = 35.5377
  norm       = 1.84155
  Prefactor  = 16.7277
  Prefactor  = 11.4435
  Prefactor  = 0.0001
  norm       = 3.07084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.937596
  Prefactor  = 1.18093
 **********
 **   18 **HESSE 
 **********

 FCN=   7073.076     FROM HESSE     STATUS=OK           590 CALLS     4556 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1647        19.120        .14032E-03   -1.5136    
   2  Prefactor     296.79        148.50        .11786E-03   -1.2245    
   3  Prefactor     .10000E-03    6.2768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2845        6.4945        .11171E-02   -1.5345    
   5  Prefactor     16.566        24.846        .49201E-03   -1.4894    
   6  Prefactor     .10000E-03    6.2026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.123        145.88        .89303E-04   -1.4810    
   8  Prefactor     32.001        33.818        .70830E-04   -1.4576    
   9  Prefactor     .10000E-03    56.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.296        16.661        .96283E-04   -1.4876    
  11  Prefactor     .10000E-03    26.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .50149        33.990        .39883E-02   -1.5566    
  13  norm          .80008        1.9232        .16593E-02   -1.5529    
  14  norm          .10000E-03    2.5478        .25618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          50.882        47.036        .56215E-04   -1.4280    
  17  Prefactor     35.538        83.846        .67231E-04   -1.4515    
  18  norm          1.8415        .63810        .35233E-04   -1.5437    
  19  Prefactor     16.728        13.172        .97929E-04   -1.4890    
  20  Prefactor     11.444        32.728        .11846E-03   -1.5031    
  21  Prefactor     .10000E-03    4.0847        .16498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.0708        1.8428        .83125E-04   -1.5357    
  23  Prefactor     .10000E-03    2.6874        .13447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    52.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.7247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.3662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93760        .25210        .32526E-03   -.95151    
  30  Prefactor     1.1809        .20025        .24354E-03   -.86920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57088e-10
Minuit parameter uncertainties:
  1  19.134
  2  148.691
  3  1.99931e-05
  4  6.49586
  5  24.8618
  6  3.18193e-06
  7  108.739
  8  33.8384
  9  5.092e-05
  10  16.6655
  11  6.99728e-05
  12  8.26132
  13  1.92339
  14  4.32553e-05
  15  1.28352e-05
  16  47.0703
  17  84.126
  18  0.638106
  19  13.1739
  20  32.7798
  21  3.32502e-06
  22  1.84286
  23  2.3006e-06
  24  3.05747e-05
  25  5.15936e-05
  26  2.494e-05
  27  4.85701e-06
  28  1.53161e-06
  29  0.252415
  30  0.200377
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  5.088e+01  4.707e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.181e+00  2.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.376e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 186.252 3.510
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.52e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.36e-05

TS (Fixed Index): 1.89
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608377/likelihoodResults_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.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) = 7073.07615186
delta logL = 1.14140593723e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7073.07614908
delta logL = 1.41985201481e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.780       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4032       1.0000          .0000       5.0000    
     3 'Normalizat'    .93754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1809       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   7073.076     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      268 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.766        51.336        .56278E-04   -.12323E-04
   2  alpha         2.4028        1.0448        .23153E-01    .11988E-03
   3  Normalizat    .93741        .23830        .32529E-03    .28414E-04
   4  Prefactor     1.1810        .19784        .24353E-03   -.64982E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 50.766
  alpha      = 2.40284
  Normalizat = 0.937413
  Prefactor  = 1.18102
 **********
 **   18 **HESSE 
 **********

 FCN=   7073.076     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.766        49.851        .22511E-05   -1.4282    
   2  alpha         2.4028        1.0162        .46307E-02   -.38875E-01
   3  Normalizat    .93741        .23817        .13011E-04   -.95158    
   4  Prefactor     1.1810        .19784        .97413E-05   -.86917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78548e-11
Minuit parameter uncertainties:
  1  49.8921
  2  1.04655
  3  0.238436
  4  0.197969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608377': 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) = 7073.07614862
delta logL = 1.46559914356e-05

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  5.077e+01  4.989e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.403e+00  1.047e+00  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.181e+00  1.980e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.374e-01  2.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 186.252 3.510
Photon Index (Free Index): 2.40 +/- 1.05
Photon Flux (Free Index): 3.53e-08 +/- 4.27e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.29e-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/608377/cmap_HighResolution_439430401_439689601_4FGL_J1225.0+0330_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-05', comment='SUCCESS', photon_flux='3.52e-08', energy_flux2='1.47e-05', photon_flux_error='3.25e-08', dlogl='1.47e-05', energy_flux='1.47e-05', photon_flux2='3.53e-08', job_status='DONE', time_completed='2021-09-05 14:06:39.221817', photon_index_error2='1.05', photon_index2='2.40', ts='1.89', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.29e-05', EG='0.94', time_epoch_completed='1630875999.22', return_code='0', job_id='608377', GAL2='1.18', EG2='0.94', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.27e-08', ts2='1.89', photon_index='2.40' WHERE bin_id='772' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:06:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 608377: <4FGL_J1225.0+0330_daily_bin772> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin772> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:49 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:50:50 2021
Terminated at Sun Sep  5 14:06:39 2021
Results reported at Sun Sep  5 14:06:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin772 186.252 3.5098 439430401 439689601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.0+0330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

