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


Performing analysis on: 4FGL_J1229.0+0202_daily_bin505
RA = 187.268, Dec = 2.0454
tmin = 370224001, tmax = 370483201
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='706684', job_status='RUN', time_executed='2021-09-05 18:54:06.890259', time_epoch_executed='1630893246.89' WHERE source_name='4FGL J1229.0+0202' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/706684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/706684/ft1_4FGL_J1229.0+0202_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/706684/ft1_4FGL_J1229.0+0202_daily_bin505.fits outfile=/scratch/kocevski/706684/ft1_filteredMKT_4FGL_J1229.0+0202_daily_bin505.fits ra=187.268 dec=2.0454 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.53
user 16.05
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/706684/ft1_filtered_4FGL_J1229.0+0202_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/706684/ltcube_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.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/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits
.....................!
real 10.50
user 10.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/706684/ft1_filtered_4FGL_J1229.0+0202_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/706684/ltcube_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.fits outfile=/scratch/kocevski/706684/expmap_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.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/706684/ltcube_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.fits
.....................!
real 194.40
user 189.80
sys 4.17

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/706684/ft1_filtered_4FGL_J1229.0+0202_daily_bin505.fits scfile=/scratch/kocevski/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits outfile=/scratch/kocevski/706684/cmap_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/706684/ft1_filtered_4FGL_J1229.0+0202_daily_bin505.fits scfile=/scratch/kocevski/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits outfile=/scratch/kocevski/706684/cmap_HighResolution_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/706684/ft1_filtered_4FGL_J1229.0+0202_daily_bin505.fits', '/scratch/kocevski/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits', expMap='/scratch/kocevski/706684/expmap_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.fits', expCube='/scratch/kocevski/706684/ltcube_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/706684/Model_4FGL_J1229.0+0202_daily_bin505.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/706684/ft1_filtered_4FGL_J1229.0+0202_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/706684/ft2_4FGL_J1229.0+0202_daily_bin505.fits
Exposure map: /scratch/kocevski/706684/expmap_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.fits
Exposure cube: /scratch/kocevski/706684/ltcube_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/706684/Model_4FGL_J1229.0+0202_daily_bin505.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) = 2053.12045317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.061       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    105.97       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.304       1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.201       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1680       1.0000         .10000E-03   10000.    
    14 'norm      '    26.193       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    122.22       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37631E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.054       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    13.270       1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.176       1.0000         .10000E-03   10000.    
    24 'Prefactor '    221.06       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    78.648       1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    30.651       1.0000         .10000E-03   10000.    
    29 'norm      '    .83195       1.0000         .10000E-03   10000.    
    30 'Prefactor '    285.97       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93979       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4218       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=   2053.095     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4342 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.158        66.176        .12758E-03    .30642E-05
   2  Prefactor     .10000E-03    105.82        .65440E-05** at limit **
   3  Prefactor     .10000E-03    9.6426       -.14521E-06** at limit **
   4  Prefactor     .10000E-03    188.96        .51231E-04** at limit **
   5  Prefactor     .10000E-03    14.380       -.14233E-05** at limit **
   6  Prefactor     106.02        90.948        .31442E-04    .16939E-04
   7  Prefactor     .10000E-03    50.406        .17750E-04** at limit **
   8  Prefactor     .10001E-03    262.72       -.91513E-04** at limit **
   9  Prefactor     73.331        111.29        .26947E-04   -.21410E-04
  10  Prefactor     93.181        85.346       -.19344E-04   -.33187E-04
  11  Prefactor     .10000E-03    66.203       -.33045E-04** at limit **
  12  Prefactor     .10000E-03    27.170        .43795E-05** at limit **
  13  norm          8.1680        7.7448        .18258E-06   -.12903E-03
  14  norm          26.186        14.605        .79874E-06   -.12563E-03
  15  Prefactor     .10000E-03    35.589       -.15126E-04** at limit **
  16  norm          122.21        146.60       -.39746E-05   -.27973E-04
  17  Prefactor     .10000E-03    670.48       -.97552E-04** at limit **
  18  norm          .10000E-03    1.0824        .56922E-06** at limit **
  19  Prefactor     10.057        23.077        .46802E-05   -.24366E-03
  20  Prefactor     .10000E-03    152.16        .72520E-04** at limit **
  21  Prefactor     .10000E-03    19.636       -.10615E-05** at limit **
  22  norm          13.270        6.1341        .11688E-05   -.22089E-03
  23  Prefactor     21.175        28.751        .24298E-05   -.27178E-04
  24  Prefactor     221.03        169.31       -.16948E-04   -.24058E-04
  25  Prefactor     .10000E-03    90.948       -.26953E-04** at limit **
  26  Prefactor     78.628        88.837       -.15747E-04   -.22793E-04
  27  norm          .10000E-03    48.796        .21515E-04** at limit **
  28  Prefactor     30.653        46.034        .10665E-04   -.86268E-04
  29  norm          .83195        .85330        .90646E-07    .44617E-04
  30  Prefactor     286.06        347.70        .53732E-04   -.20253E-05
  31  Normalizat    .93992        .54497       -.28809E-04   -.91204E-04
  32  Prefactor     1.4215        .41137       -.18491E-05   -.18494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 106.016
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 73.3314
  Prefactor  = 93.1813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.16797
  norm       = 26.1861
  Prefactor  = 0.0001
  norm       = 122.211
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Prefactor  = 10.0574
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 13.2696
  Prefactor  = 21.1748
  Prefactor  = 221.028
  Prefactor  = 0.0001
  Prefactor  = 78.6276
  norm       = 0.0001
  Prefactor  = 30.6534
  norm       = 0.831947
  Prefactor  = 286.059
  Normalizat = 0.939916
  Prefactor  = 1.4215
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.095     FROM HESSE     STATUS=OK           643 CALLS     4985 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.158        65.928        .99938E-04   -1.4904    
   2  Prefactor     .10000E-03    105.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6768        .13743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    188.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.399        .16784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     106.02        90.969        .19532E-03   -1.3645    
   7  Prefactor     .10000E-03    50.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    263.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     73.331        111.71        .46893E-04   -1.3993    
  10  Prefactor     93.181        85.360        .41628E-04   -1.3774    
  11  Prefactor     .10000E-03    66.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1680        7.7464        .11780E-03   -1.5136    
  14  norm          26.186        14.591        .78274E-04   -1.4684    
  15  Prefactor     .10000E-03    35.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          122.21        146.54        .36406E-04   -1.3492    
  17  Prefactor     .10000E-03    671.05        .21291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6474        .88746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.057        23.081        .12637E-03   -1.5074    
  20  Prefactor     .10000E-03    152.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          13.270        6.1228        .71464E-04   -1.4979    
  23  Prefactor     21.175        28.737        .87041E-04   -1.4787    
  24  Prefactor     221.03        169.13        .13603E-03   -1.2724    
  25  Prefactor     .10000E-03    90.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     78.628        88.821        .22642E-03   -1.3932    
  27  norm          .10000E-03    48.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     30.653        46.468        .72371E-04   -1.4600    
  29  norm          .83195        .87164        .41350E-04   -1.5526    
  30  Prefactor     286.06        347.67        .12000E-03   -1.2309    
  31  Normalizat    .93992        .63236        .42965E-03   -.95071    
  32  Prefactor     1.4215        .48179        .29683E-03   -.79763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28612e-09
Minuit parameter uncertainties:
  1  65.4027
  2  3.55862e-05
  3  6.20954e-05
  4  0.000687517
  5  0.000429748
  6  91.0895
  7  6.21185e-05
  8  0.00263109
  9  112.034
  10  85.4724
  11  5.39147e-05
  12  6.26778e-05
  13  7.74737
  14  14.5933
  15  0.00010451
  16  146.983
  17  0.00245197
  18  7.7285e-05
  19  23.1016
  20  0.000854447
  21  5.22539e-05
  22  6.12305
  23  28.7553
  24  169.508
  25  3.9133e-06
  26  88.9718
  27  3.04761e-05
  28  46.5233
  29  0.87165
  30  350.245
  31  0.637475
  32  0.483328
Done.

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

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.000e-04  7.729e-05  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:  1.422e+00  4.833e-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.399e-01  6.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.268 2.045
Photon Flux Upper Limit: 3.95e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/706684/likelihoodResults_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.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) = 2053.09751806
delta logL = -0.00280075646879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2053.09469554
delta logL = 2.1765260044e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11954E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6434       1.0000          .0000       5.0000    
     3 'Normalizat'    .93930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4221       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2053.095     FROM MIGRAD    STATUS=FAILED       101 CALLS      312 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1412.1        .89918E-03** at limit **
   2  alpha         1.6429        2.9290        .50000        .43484E-06
   3  Normalizat    .93993        .28041        .42967E-03    .85225E-04
   4  Prefactor     1.4215        .24504        .29683E-03    .12600E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2053.095     FROM SIMPLEX   STATUS=UNCHANGED    176 CALLS      488 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1412.1        .53447E-03** at limit **
   2  alpha         1.6429        2.9290        .24009E-04    .43484E-06
   3  Normalizat    .93993        .28041        .22420E-06    .85225E-04
   4  Prefactor     1.4215        .24504        .44109E-07    .12600E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2053.095     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      522 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7074        .35967E-04** at limit **
   2  alpha         1.6406        3.2386        .50000       -.42555E-06
   3  Normalizat    .93993        .55957        .17187E-04    .75740E-04
   4  Prefactor     1.4215        .46764        .59366E-04    .11076E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6406
  Normalizat = 0.939925
  Prefactor  = 1.4215
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.095     FROM HESSE     STATUS=OK            29 CALLS      551 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6798        .71934E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6406        3.2544        .50000       -.35092    
   3  Normalizat    .93993        .55965        .34373E-05   -.95071    
   4  Prefactor     1.4215        .46769        .11873E-04   -.79763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37345e-10
Minuit parameter uncertainties:
  1  2.82295e-05
  2  47.8816
  3  0.563182
  4  0.469101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/706684': 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) = 2053.09469348
delta logL = 2.38241314037e-05

Extracting fit parameters...

4FGL J1229.0+0202
   Spectrum: LogParabola
335         norm:  1.000e-04  2.823e-05  1.000e-04  1.000e+04 ( 1.000e-10)
336        alpha:  1.641e+00  4.788e+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:  1.421e+00  4.691e-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.399e-01  5.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.268 2.045

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/706684/cmap_HighResolution_370224001_370483201_4FGL_J1229.0+0202_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.40e-05', job_status='DONE', photon_flux_upper_limit='3.95e-07', time_completed='2021-09-05 19:03:55.717207', job_id='706684', GAL2='1.42', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630893835.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='2.38e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='505' AND source_name='4FGL J1229.0+0202' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 19:03:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 706684: <4FGL_J1229.0+0202_daily_bin505> in cluster <slac> Done

Job <4FGL_J1229.0+0202_daily_bin505> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 18:50:36 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:50:39 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:50:39 2021
Terminated at Sun Sep  5 19:03:56 2021
Results reported at Sun Sep  5 19:03:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.0+0202_daily_bin505 187.268 2.0454 370224001 370483201 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            800 sec.

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

