/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7673
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.0+0330_daily_bin362
RA = 186.252, Dec = 3.5098
tmin = 333158401, tmax = 333417601
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='606504', job_status='RUN', time_executed='2021-09-05 13:45:50.810847', time_epoch_executed='1630874750.81' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606504

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606504/ft1_4FGL_J1225.0+0330_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606504/ft2_4FGL_J1225.0+0330_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606504/ft1_4FGL_J1225.0+0330_daily_bin362.fits outfile=/scratch/kocevski/606504/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin362.fits ra=186.252 dec=3.5098 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.05
user 5.76
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606504/ft2_4FGL_J1225.0+0330_daily_bin362.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/606504/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin362.fits evtable="EVENTS" outfile="/scratch/kocevski/606504/ft1_filtered_4FGL_J1225.0+0330_daily_bin362.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606504/ft1_filtered_4FGL_J1225.0+0330_daily_bin362.fits" evtable="EVENTS" scfile=/scratch/kocevski/606504/ft2_4FGL_J1225.0+0330_daily_bin362.fits sctable="SC_DATA" outfile=/scratch/kocevski/606504/ltcube_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.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/606504/ft2_4FGL_J1225.0+0330_daily_bin362.fits
.....................!
real 11.82
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606504/ft1_filtered_4FGL_J1225.0+0330_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/606504/ft2_4FGL_J1225.0+0330_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/606504/ltcube_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.fits outfile=/scratch/kocevski/606504/expmap_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.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/606504/ltcube_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.fits
.....................!
real 190.44
user 185.47
sys 4.49

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/606504/ft1_filtered_4FGL_J1225.0+0330_daily_bin362.fits scfile=/scratch/kocevski/606504/ft2_4FGL_J1225.0+0330_daily_bin362.fits outfile=/scratch/kocevski/606504/cmap_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606504/ft1_filtered_4FGL_J1225.0+0330_daily_bin362.fits scfile=/scratch/kocevski/606504/ft2_4FGL_J1225.0+0330_daily_bin362.fits outfile=/scratch/kocevski/606504/cmap_HighResolution_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3281       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.957       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.562       1.0000         .10000E-03   10000.    
    13 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.190       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    131.65       1.0000         .10000E-03   10000.    
    18 'norm      '    .32832       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.2472       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.646       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.7840       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90414       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1171       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=   5603.061     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3868 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3184        19.767       -.17265E-05   -.13574E-04
   2  Prefactor     .10000E-03    33.499        .26713E-04** at limit **
   3  Prefactor     6.3247        10.216        .31378E-07   -.15277E-04
   4  Prefactor     .10000E-03    3.4714        .14473E-06** at limit **
   5  Prefactor     25.227        18.352       -.15132E-05    .66541E-04
   6  Prefactor     .10000E-03    12.721        .60441E-05** at limit **
   7  Prefactor     .10000E-03    52.636       -.22993E-04** at limit **
   8  Prefactor     .10000E-03    21.589       -.14325E-04** at limit **
   9  Prefactor     21.917        45.776       -.62104E-04    .15488E-04
  10  Prefactor     .10000E-03    24.564       -.63301E-05** at limit **
  11  Prefactor     .10000E-03    15.694        .12364E-05** at limit **
  12  Prefactor     29.567        16.758       -.12760E-07    .88499E-04
  13  norm          .10000E-03    2.2423        .53609E-07** at limit **
  14  norm          5.3393        4.2547        .31068E-05    .29433E-03
  15  Prefactor     35.184        36.274       -.51283E-05    .21156E-04
  16  norm          .10000E-03    23.599       -.10206E-04** at limit **
  17  Prefactor     131.61        157.74       -.32712E-04    .50340E-05
  18  norm          .32812        .47525       -.38241E-06   -.25920E-02
  19  Prefactor     .10000E-03    3.6923       -.24406E-06** at limit **
  20  Prefactor     .10000E-03    10.575       -.60533E-05** at limit **
  21  Prefactor     .10000E-03    8.9724        .54776E-05** at limit **
  22  norm          6.2469        2.2920       -.29309E-06    .19062E-03
  23  Prefactor     .10000E-03    6.4721       -.61713E-06** at limit **
  24  Prefactor     45.651        39.676        .43927E-05    .20571E-04
  25  Prefactor     .10000E-03    13.951        .69433E-05** at limit **
  26  Prefactor     .10000E-03    30.688        .18054E-04** at limit **
  27  norm          .10000E-03    9.8471       -.62865E-05** at limit **
  28  Prefactor     4.7771        16.751       -.55412E-05   -.97963E-04
  29  Normalizat    .90455        .23303        .10862E-04   -.19911E-03
  30  Prefactor     1.1168        .18048       -.16885E-05    .29158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.31843
  Prefactor  = 0.0001
  Prefactor  = 6.32467
  Prefactor  = 0.0001
  Prefactor  = 25.227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.5666
  norm       = 0.0001
  norm       = 5.33933
  Prefactor  = 35.1844
  norm       = 0.0001
  Prefactor  = 131.608
  norm       = 0.32812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24694
  Prefactor  = 0.0001
  Prefactor  = 45.6515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.77712
  Normalizat = 0.904548
  Prefactor  = 1.11679
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.061     FROM HESSE     STATUS=OK           582 CALLS     4450 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3184        19.762        .15966E-03   -1.5205    
   2  Prefactor     .10000E-03    33.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3247        10.209        .15956E-03   -1.5205    
   4  Prefactor     .10000E-03    3.4791        .13619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.227        18.350        .79745E-04   -1.4703    
   6  Prefactor     .10000E-03    12.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.917        45.871        .85480E-04   -1.4771    
  10  Prefactor     .10000E-03    24.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.567        16.603        .73689E-04   -1.4620    
  13  norm          .10000E-03    2.2557        .10875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3393        4.2203        .12560E-03   -1.5246    
  15  Prefactor     35.184        36.284        .67555E-04   -1.4521    
  16  norm          .10000E-03    23.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     131.61        157.75        .17547E-03   -1.3408    
  18  norm          .32812        .43105        .56811E-03   -1.5593    
  19  Prefactor     .10000E-03    3.6969        .14047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.2469        2.2864        .64593E-04   -1.5208    
  23  Prefactor     .10000E-03    6.5695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     45.651        39.666        .59344E-04   -1.4356    
  25  Prefactor     .10000E-03    13.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    30.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.8543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.7771        16.820        .18394E-03   -1.5271    
  29  Normalizat    .90455        .27245        .31870E-03   -.96301    
  30  Prefactor     1.1168        .21225        .24153E-03   -.88932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96332e-09
Minuit parameter uncertainties:
  1  19.7819
  2  0.000167193
  3  10.2113
  4  5.70804e-05
  5  18.3537
  6  6.16664e-05
  7  1.83178e-05
  8  1.57585e-05
  9  45.945
  10  2.53646e-05
  11  0.000119688
  12  16.6054
  13  1.30533e-05
  14  4.22049
  15  36.3064
  16  0.000120984
  17  158.258
  18  0.431057
  19  6.58122e-06
  20  2.20182e-05
  21  7.51478e-05
  22  2.28647
  23  6.71609e-05
  24  39.6886
  25  1.35237e-05
  26  1.05336e-05
  27  1.84833e-05
  28  16.8365
  29  0.27287
  30  0.212409
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.045e-01  2.729e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606504/likelihoodResults_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5603.06161623
delta logL = -0.000201488456696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5603.06141519
delta logL = -4.50308107247e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5603.061     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      282 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    182.34        .18142E-01** at limit **
   2  alpha         2.7516        3.7612        .50000       -.41973E-07
   3  Normalizat    .90456        .15411E-01    .31869E-03   -.10948E-03
   4  Prefactor     1.1168        .12913E-01    .24154E-03   -.14475E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.7516
  Normalizat = 0.904556
  Prefactor  = 1.11679
 **********
 **   18 **HESSE 
 **********

 FCN=   5603.061     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1035.1        .35908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7516        3.6235        .50000        .10081    
   3  Normalizat    .90456        .38679E-01    .12748E-04   -.96300    
   4  Prefactor     1.1168        .32409E-01    .48307E-04   -.88932    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.92587e-09
Minuit parameter uncertainties:
  1  0.000769457
  2  5091.06
  3  0.0386799
  4  0.0324091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606504': 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): 102
logL (Free Index) = 5603.06141468
delta logL = 6.3109837356e-08

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.046e-01  3.868e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/606504/cmap_HighResolution_333158401_333417601_4FGL_J1225.0+0330_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-05 13:59:21.651391', job_id='606504', GAL2='1.12', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630875561.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='362' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:59:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 606504: <4FGL_J1225.0+0330_daily_bin362> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin362> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:34 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:36 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:45:36 2021
Terminated at Sun Sep  5 13:59:22 2021
Results reported at Sun Sep  5 13:59:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin362 186.252 3.5098 333158401 333417601 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

