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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin291
RA = 187.268, Dec = 2.0454
tmin = 314755201, tmax = 315014401
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='705336', job_status='RUN', time_executed='2021-09-05 18:48:38.382190', time_epoch_executed='1630892918.38' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705336/ft1_4FGL_J1229.0+0202_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705336/ft1_4FGL_J1229.0+0202_daily_bin291.fits outfile=/scratch/kocevski/705336/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin291.fits ra=187.268 dec=2.0454 rad=12.0 tmin=314755201.0 tmax=315014401.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.63
user 3.21
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.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/705336/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin291.fits evtable="EVENTS" outfile="/scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/705336/ltcube_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.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/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits
.....................!
real 12.01
user 11.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/705336/ltcube_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.fits outfile=/scratch/kocevski/705336/expmap_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.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/705336/ltcube_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.fits
.....................!
real 189.85
user 184.84
sys 4.56

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

Setting source of interest to:
4FGL J1229.0+0202 @ 187.268 2.0454

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits scfile=/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits outfile=/scratch/kocevski/705336/cmap_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.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=187.268 yref=2.0454 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits scfile=/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits outfile=/scratch/kocevski/705336/cmap_HighResolution_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.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=187.268 yref=2.0454 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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705336/Model_4FGL_J1229.0+0202_daily_bin291.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/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits.....................!
real 53.90
user 52.57
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits', '/scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits', expMap='/scratch/kocevski/705336/expmap_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.fits', expCube='/scratch/kocevski/705336/ltcube_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/705336/Model_4FGL_J1229.0+0202_daily_bin291.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.0+0202'

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  2.732e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/705336/ft1_filtered_4FGL_J1229.0+0202_daily_bin291.fits
Spacecraft file(s): /scratch/kocevski/705336/ft2_4FGL_J1229.0+0202_daily_bin291.fits
Exposure map: /scratch/kocevski/705336/expmap_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.fits
Exposure cube: /scratch/kocevski/705336/ltcube_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/705336/Model_4FGL_J1229.0+0202_daily_bin291.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) = 6102.09804136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3292       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6104       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.382       1.0000         .10000E-03   10000.    
     8 'Prefactor '    89.103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.666       1.0000         .10000E-03   10000.    
    13 'norm      '    .12083E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.8340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.8287       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    22 'norm      '    4.4586       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    32.396       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    52.851       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.9816       1.0000         .10000E-03   10000.    
    30 'Prefactor '    58.350       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .96236       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .75346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6102.031     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     4371 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3297        12.999       -.64807E-06   -.79283E-04
   2  Prefactor     .10000E-03    37.664       -.66177E-05** at limit **
   3  Prefactor     .10000E-03    3.9000        .18158E-06** at limit **
   4  Prefactor     .10000E-03    65.850        .11405E-05** at limit **
   5  Prefactor     3.6850        4.1789        .82152E-06    .17382E-02
   6  Prefactor     9.6019        21.485       -.39953E-05   -.34932E-04
   7  Prefactor     27.356        77.372       -.38805E-04    .11706E-05
   8  Prefactor     89.112        63.134        .72832E-05    .75695E-05
   9  Prefactor     39.613        34.144       -.13720E-05    .33289E-05
  10  Prefactor     .10000E-03    4.7185        .58078E-08** at limit **
  11  Prefactor     .10000E-03    18.836        .30860E-07** at limit **
  12  Prefactor     10.650        15.326       -.71355E-07   -.69752E-06
  13  norm          .10000E-03    1.9065       -.82625E-07** at limit **
  14  norm          9.8338        6.0034       -.13617E-07   -.22367E-03
  15  Prefactor     .10000E-03    35.564        .57459E-05** at limit **
  16  norm          5.2695        142.02        .90276E-05   -.79549E-05
  17  Prefactor     .10000E-03    125.99        .18998E-07** at limit **
  18  norm          5.8285        1.1228       -.74536E-07    .93406E-04
  19  Prefactor     .10000E-03    3.9414        .20605E-08** at limit **
  20  Prefactor     .10000E-03    9.4293       -.32085E-08** at limit **
  21  Prefactor     13.876        14.051       -.10727E-06   -.16033E-04
  22  norm          4.4585        2.5478       -.20395E-06   -.35471E-03
  23  Prefactor     .10000E-03    4.3568       -.12023E-07** at limit **
  24  Prefactor     .10000E-03    12.596       -.17263E-05** at limit **
  25  Prefactor     32.393        66.413       -.45819E-05    .54846E-05
  26  Prefactor     .10000E-03    14.548       -.12212E-05** at limit **
  27  norm          52.854        30.481        .30624E-06    .52438E-05
  28  Prefactor     .10000E-03    13.038        .26256E-05** at limit **
  29  norm          1.9815        .42011        .42170E-07   -.47389E-03
  30  Prefactor     58.346        79.818       -.43389E-05    .33848E-05
  31  Normalizat    .96252        .23355        .24151E-05   -.74511E-04
  32  Prefactor     .75334        .17297        .65070E-07    .33200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.685
  Prefactor  = 9.60192
  Prefactor  = 27.3556
  Prefactor  = 89.1118
  Prefactor  = 39.6135
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.65
  norm       = 0.0001
  norm       = 9.83376
  Prefactor  = 0.0001
  norm       = 5.2695
  Prefactor  = 0.0001
  norm       = 5.82853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8756
  norm       = 4.45845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.3931
  Prefactor  = 0.0001
  norm       = 52.8536
  Prefactor  = 0.0001
  norm       = 1.98152
  Prefactor  = 58.3465
  Normalizat = 0.962522
  Prefactor  = 0.753337
 **********
 **   18 **HESSE 
 **********

 FCN=   6102.031     FROM HESSE     STATUS=OK           657 CALLS     5028 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3297        13.010        .19360E-03   -1.5292    
   2  Prefactor     .10000E-03    37.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9133        .15068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    65.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6850        4.2706        .84450E-03   -1.5324    
   6  Prefactor     9.6019        21.514        .12927E-03   -1.5088    
   7  Prefactor     27.356        76.577        .76559E-04   -1.4661    
   8  Prefactor     89.112        62.993        .42566E-04   -1.3817    
   9  Prefactor     39.613        34.217        .63682E-04   -1.4448    
  10  Prefactor     .10000E-03    4.7190        .16572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.650        13.410        .12268E-03   -1.5055    
  13  norm          .10000E-03    5.8144        .18133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.8338        5.9812        .11768E-03   -1.5081    
  15  Prefactor     .10000E-03    35.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2695        139.96        .17516E-03   -1.5249    
  17  Prefactor     .10000E-03    126.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.8285        1.1302        .30687E-04   -1.5225    
  19  Prefactor     .10000E-03    3.9517        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.876        14.058        .10753E-03   -1.4963    
  22  norm          4.4585        2.5460        .85853E-04   -1.5286    
  23  Prefactor     .10000E-03    4.3731        .15917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     32.393        67.402        .70399E-04   -1.4569    
  26  Prefactor     .10000E-03    14.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          52.854        30.481        .27585E-03   -1.4253    
  28  Prefactor     .10000E-03    13.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.9815        .42825        .20181E-04   -1.5426    
  30  Prefactor     58.346        79.972        .52520E-04   -1.4179    
  31  Normalizat    .96252        .27421        .31552E-03   -.94297    
  32  Prefactor     .75334        .20270        .27216E-03   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66173e-09
Minuit parameter uncertainties:
  1  13.0185
  2  6.22658e-06
  3  3.54346e-05
  4  0.000188558
  5  4.27091
  6  21.5312
  7  76.8537
  8  63.0406
  9  34.2343
  10  5.9643e-09
  11  1.11406e-05
  12  13.4136
  13  1.5434e-05
  14  5.98158
  15  3.83134e-05
  16  54.4566
  17  5.64362e-05
  18  1.13017
  19  3.0532e-06
  20  3.84988e-06
  21  14.0611
  22  2.54607
  23  2.01176e-06
  24  3.02568e-06
  25  67.5612
  26  8.27893e-06
  27  30.4904
  28  4.03193e-05
  29  0.42825
  30  80.1201
  31  0.274609
  32  0.202897
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  5.829e+00  1.130e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.615e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.533e-01  2.029e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  9.625e-01  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 77.16
Ra Dec: 187.268 2.045
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 6.40e-07 +/- 1.24e-07
Energy Flux (Fixed Index): 1.52e-04 +/- 2.95e-05

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) = 6101.49136862
delta logL = 0.54009905373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6101.46234421
delta logL = 0.569123467778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6306       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8762       1.0000          .0000       5.0000    
     3 'Normalizat'    .88489       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80236       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6101.462     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6306        1.3005        .42323E-02   -.46246E-02
   2  alpha         2.8763        .31669        .15766       -.26655E-05
   3  Normalizat    .88487        .22630        .73809E-01    .70935E-05
   4  Prefactor     .80237        .17315        .43748E-01    .24377E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.63064
  alpha      = 2.87625
  Normalizat = 0.884872
  Prefactor  = 0.802368
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.462     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6306        1.0199        .29265E-04   -1.5233    
   2  alpha         2.8763        .25329        .68958E-03    .15108    
   3  Normalizat    .88487        .26843        .32663E-03   -.96994    
   4  Prefactor     .80237        .20328        .26478E-03   -.99641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93837e-10
Minuit parameter uncertainties:
  1  1.01994
  2  0.253736
  3  0.268835
  4  0.203471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705336': 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) = 6101.4623442
delta logL = 0.569123477368

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  5.631e+00  1.020e+00  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  2.876e+00  2.537e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.652e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  3.071e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.024e-01  2.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.849e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 81.04
Ra Dec: 187.268 2.045
Photon Index (Free Index): 2.88 +/- 0.25
Photon Flux (Free Index): 7.14e-07 +/- 1.37e-07
Energy Flux (Free Index): 1.48e-04 +/- 2.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/705336/cmap_HighResolution_314755201_315014401_4FGL_J1229.0+0202_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.40e-07', energy_flux2='1.48e-04', photon_flux_error='1.24e-07', dlogl='5.69e-01', energy_flux='1.52e-04', photon_flux2='7.14e-07', job_status='DONE', time_completed='2021-09-05 19:02:06.817825', photon_index_error2='0.25', photon_index2='2.88', ts='77.16', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.55e-05', EG='0.96', time_epoch_completed='1630893726.82', return_code='0', job_id='705336', GAL2='0.80', EG2='0.88', return_code2='0', energy_flux_error='2.95e-05', photon_flux_error2='1.37e-07', ts2='81.04', photon_index='2.61' WHERE bin_id='291' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:02:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 705336: <4FGL_J1229.0+0202_daily_bin291> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin291> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:46:11 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:46:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:46:13 2021
Terminated at Sun Sep  5 19:02:07 2021
Results reported at Sun Sep  5 19:02:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin291 187.268 2.0454 314755201 315014401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.0+0202 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   793.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            956 sec.

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

