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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin892
RA = 186.252, Dec = 3.5098
tmin = 470534401, tmax = 470793601
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='609605', job_status='RUN', time_executed='2021-09-05 13:55:43.067349', time_epoch_executed='1630875343.07' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='892'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609605/ft1_4FGL_J1225.0+0330_daily_bin892.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609605/ft1_4FGL_J1225.0+0330_daily_bin892.fits outfile=/scratch/kocevski/609605/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin892.fits ra=186.252 dec=3.5098 rad=12.0 tmin=470534401.0 tmax=470793601.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.48
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.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/609605/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin892.fits evtable="EVENTS" outfile="/scratch/kocevski/609605/ft1_filtered_4FGL_J1225.0+0330_daily_bin892.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/609605/ft1_filtered_4FGL_J1225.0+0330_daily_bin892.fits" evtable="EVENTS" scfile=/scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits sctable="SC_DATA" outfile=/scratch/kocevski/609605/ltcube_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.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/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits
.....................!
real 11.72
user 11.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609605/ft1_filtered_4FGL_J1225.0+0330_daily_bin892.fits evtable="EVENTS" scfile=/scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits sctable="SC_DATA" expcube=/scratch/kocevski/609605/ltcube_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.fits outfile=/scratch/kocevski/609605/expmap_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.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/609605/ltcube_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.fits
.....................!
real 189.94
user 184.82
sys 4.76

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/609605/ft1_filtered_4FGL_J1225.0+0330_daily_bin892.fits scfile=/scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits outfile=/scratch/kocevski/609605/cmap_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609605/ft1_filtered_4FGL_J1225.0+0330_daily_bin892.fits scfile=/scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits outfile=/scratch/kocevski/609605/cmap_HighResolution_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/609605/ft1_filtered_4FGL_J1225.0+0330_daily_bin892.fits', '/scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits', expMap='/scratch/kocevski/609605/expmap_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.fits', expCube='/scratch/kocevski/609605/ltcube_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/609605/Model_4FGL_J1225.0+0330_daily_bin892.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/609605/ft1_filtered_4FGL_J1225.0+0330_daily_bin892.fits
Spacecraft file(s): /scratch/kocevski/609605/ft2_4FGL_J1225.0+0330_daily_bin892.fits
Exposure map: /scratch/kocevski/609605/expmap_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.fits
Exposure cube: /scratch/kocevski/609605/ltcube_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/609605/Model_4FGL_J1225.0+0330_daily_bin892.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) = 6681.69196138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.654       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.431       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.515       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4419       1.0000         .10000E-03   10000.    
    13 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4118       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8471       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.177       1.0000         .10000E-03   10000.    
    22 'norm      '    4.4743       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13296E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    60.454       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.299       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96280       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=   6681.664     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3932 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.012        .38500E-05** at limit **
   2  Prefactor     16.781        152.92        .27036E-03    .26090E-04
   3  Prefactor     .10000E-03    4.8117       -.58478E-06** at limit **
   4  Prefactor     .61046        7.5511       -.23214E-05   -.12470E-03
   5  Prefactor     .10000E-03    12.356        .37662E-05** at limit **
   6  Prefactor     26.579        19.610        .21154E-05    .50651E-05
   7  Prefactor     .10000E-03    133.70       -.40509E-04** at limit **
   8  Prefactor     .10000E-03    35.022       -.12399E-04** at limit **
   9  Prefactor     13.431        36.209       -.12445E-04   -.16460E-04
  10  Prefactor     27.523        23.785        .12165E-05    .43740E-04
  11  Prefactor     .10000E-03    10.498       -.56352E-05** at limit **
  12  Prefactor     7.4417        12.525        .12552E-05   -.64341E-04
  13  norm          .10000E-03    1.7102        .98223E-07** at limit **
  14  norm          .10000E-03    1.1672        .20653E-07** at limit **
  15  Prefactor     .10000E-03    7.5094        .22043E-06** at limit **
  16  norm          .10000E-03    28.161        .17172E-04** at limit **
  17  Prefactor     .10000E-03    49.114       -.24161E-04** at limit **
  18  norm          4.4119        .78953        .10216E-06   -.16005E-02
  19  Prefactor     4.8385        9.7898        .16333E-05   -.70468E-04
  20  Prefactor     .10000E-03    19.985       -.62337E-05** at limit **
  21  Prefactor     10.176        9.0574        .74091E-06   -.12641E-03
  22  norm          4.4743        1.8213        .30016E-06   -.49739E-03
  23  Prefactor     .10000E-03    1.8512        .14126E-06** at limit **
  24  Prefactor     .10000E-03    76.304        .53181E-04** at limit **
  25  Prefactor     60.452        47.957       -.43797E-06   -.10575E-04
  26  Prefactor     38.299        43.563        .14886E-05   -.21613E-04
  27  norm          .10000E-03    9.7604        .34967E-05** at limit **
  28  Prefactor     .10000E-03    7.7284       -.35814E-06** at limit **
  29  Normalizat    1.0412        .21323       -.92528E-05    .29226E-03
  30  Prefactor     .96290        .17122       -.15029E-05   -.29875E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.7812
  Prefactor  = 0.000100001
  Prefactor  = 0.610459
  Prefactor  = 0.0001
  Prefactor  = 26.5787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4305
  Prefactor  = 27.5232
  Prefactor  = 0.0001
  Prefactor  = 7.44172
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.41186
  Prefactor  = 4.83847
  Prefactor  = 0.0001
  Prefactor  = 10.1762
  norm       = 4.47431
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 60.4523
  Prefactor  = 38.2987
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04124
  Prefactor  = 0.962903
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.664     FROM HESSE     STATUS=OK           576 CALLS     4508 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.781        152.60        .98144E-04   -1.4888    
   3  Prefactor     .10000E-03    4.8272        .17511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61046        27.269        .41061E-02   -1.5552    
   5  Prefactor     .10000E-03    12.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.579        19.629        .77708E-04   -1.4676    
   7  Prefactor     .10000E-03    134.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.431        36.010        .10930E-03   -1.4975    
  10  Prefactor     27.523        23.709        .76374E-04   -1.4658    
  11  Prefactor     .10000E-03    10.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4417        12.355        .14702E-03   -1.5162    
  13  norm          .10000E-03    1.7194        .20623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1758        .86160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4119        .79085        .28628E-04   -1.5288    
  19  Prefactor     4.8385        9.7725        .18272E-03   -1.5268    
  20  Prefactor     .10000E-03    20.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.176        9.0624        .12560E-03   -1.5070    
  22  norm          4.4743        1.8211        .66982E-04   -1.5285    
  23  Prefactor     .10000E-03    1.8533        .10861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    78.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     60.452        47.963        .51604E-04   -1.4151    
  26  Prefactor     38.299        43.589        .64764E-04   -1.4469    
  27  norm          .10000E-03    9.7708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.7778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0412        .25125        .29884E-03   -.91661    
  30  Prefactor     .96290        .20161        .25958E-03   -.93977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14767e-08
Minuit parameter uncertainties:
  1  0.000210217
  2  101.554
  3  0.000137821
  4  8.16337
  5  1.94284e-05
  6  19.634
  7  0.00021328
  8  1.84848e-05
  9  36.0687
  10  23.7167
  11  4.13051e-06
  12  12.3594
  13  3.80598e-06
  14  2.46055e-06
  15  5.41526e-06
  16  2.71063e-05
  17  3.36241e-05
  18  0.790855
  19  9.77569
  20  9.53645e-05
  21  9.06363
  22  1.8211
  23  5.59809e-06
  24  0.000854891
  25  47.9936
  26  43.6248
  27  2.10426e-05
  28  6.5743e-05
  29  0.251538
  30  0.201766
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  2.711e-05  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:  9.629e-01  2.018e-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:  1.041e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/609605/likelihoodResults_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.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) = 6681.66447433
delta logL = -0.000168852348907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6681.66447427
delta logL = -0.000168792316799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96300E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96291       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   6681.664     FROM MIGRAD    STATUS=FAILED        71 CALLS      211 TOTAL
                     EDM=   .73E+04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13915        9843.5         .0000       -.61287E-01
   2  alpha         1.1519        1.3661         .0000        .92791E-02
   3  Normalizat    1.0413        8.7558         .0000       -.63796E-02
   4  Prefactor     .96277        6.8975         .0000       -.99481E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6681.663     FROM SIMPLEX   STATUS=PROGRESS     133 CALLS      344 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1040        9843.5        .82772E-03   -.61287E-01
   2  alpha         1.1515        1.3661        .50490E-04    .92791E-02
   3  Normalizat    1.0418        8.7558        .17369E-03   -.63796E-02
   4  Prefactor     .96219        6.8975        .52675E-04   -.99481E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6681.586     FROM MIGRAD    STATUS=FAILED       153 CALLS      497 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0949        9.0872        .44855E-02    .23911E-02
   2  alpha         .19961        3.4747        .50000        .57558E-04
   3  Normalizat    1.0443        .23631        .11954E-04   -.15217E-05
   4  Prefactor     .95833        .19964        .10383E-04    .13139E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.09493
  alpha      = 0.199614
  Normalizat = 1.04433
  Prefactor  = 0.958333
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.586     FROM HESSE     STATUS=OK            31 CALLS      528 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0949        8.9489        .89709E-03   -1.5356    
   2  alpha         .19961        3.4436        .50000       -1.1685    
   3  Normalizat    1.0443        .23624        .23907E-05   -.91560    
   4  Prefactor     .95833        .19959        .20766E-05   -.94132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09061e-08
Minuit parameter uncertainties:
  1  8.95274
  2  1.76896
  3  0.236476
  4  0.199747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609605': 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): 1
logL (Free Index) = 6681.58559109
delta logL = 0.0787143846301

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  3.095e+00  8.953e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.996e-01  1.769e+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:  9.583e-01  1.997e-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:  1.044e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.252 3.510

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/609605/cmap_HighResolution_470534401_470793601_4FGL_J1225.0+0330_daily_bin892.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-09-05 14:11:16.394062', job_id='609605', GAL2='0.96', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630876276.39', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='7.87e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='892' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:11:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 609605: <4FGL_J1225.0+0330_daily_bin892> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin892> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:55:28 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:55:30 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:55:30 2021
Terminated at Sun Sep  5 14:11:17 2021
Results reported at Sun Sep  5 14:11:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin892 186.252 3.5098 470534401 470793601 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 :                                   927.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            949 sec.

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

