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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin357
RA = 186.252, Dec = 3.5098
tmin = 331862401, tmax = 332121601
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='606496', job_status='RUN', time_executed='2021-09-05 13:47:29.719641', time_epoch_executed='1630874849.72' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606496/ft1_4FGL_J1225.0+0330_daily_bin357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606496/ft2_4FGL_J1225.0+0330_daily_bin357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606496/ft1_4FGL_J1225.0+0330_daily_bin357.fits outfile=/scratch/kocevski/606496/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin357.fits ra=186.252 dec=3.5098 rad=12.0 tmin=331862401.0 tmax=332121601.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 4.49
user 4.24
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606496/ft2_4FGL_J1225.0+0330_daily_bin357.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/606496/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin357.fits evtable="EVENTS" outfile="/scratch/kocevski/606496/ft1_filtered_4FGL_J1225.0+0330_daily_bin357.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.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606496/ft1_filtered_4FGL_J1225.0+0330_daily_bin357.fits" evtable="EVENTS" scfile=/scratch/kocevski/606496/ft2_4FGL_J1225.0+0330_daily_bin357.fits sctable="SC_DATA" outfile=/scratch/kocevski/606496/ltcube_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.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/606496/ft2_4FGL_J1225.0+0330_daily_bin357.fits
.....................!
real 12.22
user 11.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606496/ft1_filtered_4FGL_J1225.0+0330_daily_bin357.fits evtable="EVENTS" scfile=/scratch/kocevski/606496/ft2_4FGL_J1225.0+0330_daily_bin357.fits sctable="SC_DATA" expcube=/scratch/kocevski/606496/ltcube_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.fits outfile=/scratch/kocevski/606496/expmap_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.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/606496/ltcube_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.fits
.....................!
real 191.01
user 185.65
sys 4.97

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/606496/ft1_filtered_4FGL_J1225.0+0330_daily_bin357.fits scfile=/scratch/kocevski/606496/ft2_4FGL_J1225.0+0330_daily_bin357.fits outfile=/scratch/kocevski/606496/cmap_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.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/606496/ft1_filtered_4FGL_J1225.0+0330_daily_bin357.fits scfile=/scratch/kocevski/606496/ft2_4FGL_J1225.0+0330_daily_bin357.fits outfile=/scratch/kocevski/606496/cmap_HighResolution_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.383       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27700E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.315       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8812       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7219       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62230E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    3.0001       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9763       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.271       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8734       1.0000         .10000E-03   10000.    
    22 'norm      '    7.6625       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7871       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    17.511       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.073       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.6222       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .55440       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=   5852.146     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3929 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4565       -.75451E-07** at limit **
   2  Prefactor     25.894        65.877       -.27213E-06    .14329E-04
   3  Prefactor     .10000E-03    4.6737        .98802E-07** at limit **
   4  Prefactor     5.5310        7.0129       -.19074E-06    .52501E-04
   5  Prefactor     22.399        19.642       -.25897E-05    .33405E-03
   6  Prefactor     5.7611        18.271       -.40279E-07    .28258E-04
   7  Prefactor     .10000E-03    469.42       -.10034E-04** at limit **
   8  Prefactor     .10000E-03    26.093       -.29763E-06** at limit **
   9  Prefactor     22.330        33.170        .13825E-06    .31090E-04
  10  Prefactor     7.9196        30.506        .40066E-05    .86174E-04
  11  Prefactor     4.7616        35.366       -.56010E-06   -.97974E-05
  12  Prefactor     .10000E-03    80.771        .11575E-04** at limit **
  13  norm          3.0043        2.5069        .93820E-06    .88548E-03
  14  norm          4.0864        4.0765        .54344E-07    .18920E-03
  15  Prefactor     .10000E-03    9.2626        .29250E-07** at limit **
  16  norm          .10000E-03    29.395        .22122E-06** at limit **
  17  Prefactor     .10000E-03    57.116       -.79624E-06** at limit **
  18  norm          1.9768        .78920        .20427E-06    .13685E-02
  19  Prefactor     .10000E-03    5.4453        .18380E-06** at limit **
  20  Prefactor     19.272        28.240       -.80527E-07    .18942E-04
  21  Prefactor     1.8743        7.4297       -.27728E-05    .77401E-04
  22  norm          7.6623        2.3525       -.28030E-07    .98975E-04
  23  Prefactor     2.7875        7.5122        .22936E-06    .10747E-04
  24  Prefactor     .10000E-03    32.011       -.34541E-07** at limit **
  25  Prefactor     .10000E-03    10.505        .12295E-07** at limit **
  26  Prefactor     .10000E-03    57.953       -.23675E-06** at limit **
  27  norm          17.511        19.332        .12618E-08    .26599E-05
  28  Prefactor     10.072        12.249       -.55508E-06    .52084E-04
  29  Normalizat    1.6224        .23789        .45980E-07    .40095E-03
  30  Prefactor     .55434        .17777       -.17835E-06    .24559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.8943
  Prefactor  = 0.0001
  Prefactor  = 5.53099
  Prefactor  = 22.3993
  Prefactor  = 5.76106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3302
  Prefactor  = 7.9196
  Prefactor  = 4.76155
  Prefactor  = 0.000100002
  norm       = 3.00428
  norm       = 4.08637
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.97677
  Prefactor  = 0.0001
  Prefactor  = 19.2723
  Prefactor  = 1.87426
  norm       = 7.66229
  Prefactor  = 2.78754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.5106
  Prefactor  = 10.0725
  Normalizat = 1.62237
  Prefactor  = 0.554336
 **********
 **   18 **HESSE 
 **********

 FCN=   5852.146     FROM HESSE     STATUS=OK           588 CALLS     4517 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.894        65.982        .78729E-04   -1.4690    
   3  Prefactor     .10000E-03    4.6877        .16151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5310        7.0015        .85410E-03   -1.5238    
   5  Prefactor     22.399        19.367        .84663E-04   -1.4761    
   6  Prefactor     5.7611        18.243        .16732E-03   -1.5228    
   7  Prefactor     .10000E-03    468.81        .19913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.330        33.198        .84793E-04   -1.4763    
  10  Prefactor     7.9196        30.351        .14283E-03   -1.5145    
  11  Prefactor     4.7616        35.184        .18518E-03   -1.5272    
  12  Prefactor     .10000E-03    78.825        .45966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0043        2.4703        .10409E-03   -1.5361    
  14  norm          4.0864        4.0542        .13604E-03   -1.5304    
  15  Prefactor     .10000E-03    9.2652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    29.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9768        .78507        .37820E-04   -1.5427    
  19  Prefactor     .10000E-03    5.4570        .17424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.272        28.427        .91237E-04   -1.4830    
  21  Prefactor     1.8743        7.4315        .15213E-02   -1.5434    
  22  norm          7.6623        2.3530        .61236E-04   -1.5154    
  23  Prefactor     2.7875        7.4868        .24373E-03   -1.5374    
  24  Prefactor     .10000E-03    32.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    58.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          17.511        19.321        .95712E-04   -1.4871    
  28  Prefactor     10.072        12.273        .63125E-03   -1.5073    
  29  Normalizat    1.6224        .28152        .25265E-03   -.74396    
  30  Prefactor     .55434        .20554        .32365E-03   -1.0954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45028e-10
Minuit parameter uncertainties:
  1  8.17225e-06
  2  66.1687
  3  2.20659e-05
  4  7.00257
  5  19.3725
  6  18.2604
  7  0.000856405
  8  6.43471e-05
  9  33.2256
  10  30.4102
  11  25.908
  12  0.000814934
  13  2.47038
  14  4.05449
  15  8.89942e-06
  16  8.60204e-05
  17  0.000293768
  18  0.78507
  19  7.47545e-07
  20  28.4469
  21  7.43517
  22  2.35302
  23  7.48935
  24  4.11055e-06
  25  2.72723e-06
  26  0.000139172
  27  19.3282
  28  12.2761
  29  0.2818
  30  0.205819
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  8.602e-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:  5.543e-01  2.058e-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.622e+00  2.818e-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: 7.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606496/likelihoodResults_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.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) = 5852.14607111
delta logL = -0.00016184548258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5852.14590928
delta logL = -1.94859239855e-08

Fit tolerance = 1e-08

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

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

 FCN=   5852.146     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    29.235        .90712E-02** at limit **
   2  alpha         2.4038        3.5302        .41199       -.17393E-05
   3  Normalizat    1.6224        .21914        .57139E-01    .34379E-05
   4  Prefactor     .55434        .17465        .73102E-01    .31378E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.40378
  Normalizat = 1.62236
  Prefactor  = 0.554336
 **********
 **   18 **HESSE 
 **********

 FCN=   5852.146     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    29.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4038        3.5290        .50000       -.38498E-01
   3  Normalizat    1.6224        .25186        .25265E-03   -.74396    
   4  Prefactor     .55434        .20032        .32365E-03   -1.0954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04414e-12
Minuit parameter uncertainties:
  1  3.91816e-06
  2  2.49843
  3  0.252056
  4  0.200577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606496': 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) = 5852.14590926
delta logL = 4.6666173148e-09

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  3.918e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.404e+00  2.498e+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:  5.543e-01  2.006e-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.622e+00  2.521e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/606496/cmap_HighResolution_331862401_332121601_4FGL_J1225.0+0330_daily_bin357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-05 14:01:42.764472', job_id='606496', GAL2='0.55', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1630875702.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='4.67e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='357' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 606496: <4FGL_J1225.0+0330_daily_bin357> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin357> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:33 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:35 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:35 2021
Terminated at Sun Sep  5 14:01:43 2021
Results reported at Sun Sep  5 14:01:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin357 186.252 3.5098 331862401 332121601 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 :                                   850.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            970 sec.

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

