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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin945
RA = 186.252, Dec = 3.5098
tmin = 484272001, tmax = 484531201
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='609691', job_status='RUN', time_executed='2021-09-05 13:57:44.690770', time_epoch_executed='1630875464.69' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609691/ft1_4FGL_J1225.0+0330_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609691/ft2_4FGL_J1225.0+0330_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609691/ft1_4FGL_J1225.0+0330_daily_bin945.fits outfile=/scratch/kocevski/609691/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin945.fits ra=186.252 dec=3.5098 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.10
user 4.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/609691/ft1_filtered_4FGL_J1225.0+0330_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/609691/ft2_4FGL_J1225.0+0330_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/609691/ltcube_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.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/609691/ft2_4FGL_J1225.0+0330_daily_bin945.fits
.....................!
real 11.88
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609691/ft1_filtered_4FGL_J1225.0+0330_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/609691/ft2_4FGL_J1225.0+0330_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/609691/ltcube_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.fits outfile=/scratch/kocevski/609691/expmap_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.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/609691/ltcube_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.fits
.....................!
real 189.70
user 185.31
sys 4.01

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/609691/ft1_filtered_4FGL_J1225.0+0330_daily_bin945.fits scfile=/scratch/kocevski/609691/ft2_4FGL_J1225.0+0330_daily_bin945.fits outfile=/scratch/kocevski/609691/cmap_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609691/ft1_filtered_4FGL_J1225.0+0330_daily_bin945.fits scfile=/scratch/kocevski/609691/ft2_4FGL_J1225.0+0330_daily_bin945.fits outfile=/scratch/kocevski/609691/cmap_HighResolution_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.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/609691/ft1_filtered_4FGL_J1225.0+0330_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/609691/ft2_4FGL_J1225.0+0330_daily_bin945.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/609691/Model_4FGL_J1225.0+0330_daily_bin945.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/609691/ft1_filtered_4FGL_J1225.0+0330_daily_bin945.fits.....................!
real 41.98
user 40.70
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1511       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30125E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.157       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10795E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5438       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    52.299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0946       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48820E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.347       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.7148       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8857       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    50.129       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.015       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79613       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95238       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=   4493.454     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3926 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1197        37.319       -.43993E-04   -.15101E-04
   2  Prefactor     .10000E-03    59.578        .30902E-04** at limit **
   3  Prefactor     .10000E-03    3.8285       -.11420E-06** at limit **
   4  Prefactor     .10000E-03    3.0938        .67172E-07** at limit **
   5  Prefactor     .10000E-03    3.1023        .11763E-06** at limit **
   6  Prefactor     40.199        23.232       -.33828E-05    .93265E-04
   7  Prefactor     .10000E-03    49.643        .11008E-04** at limit **
   8  Prefactor     .10000E-03    25.480        .50180E-05** at limit **
   9  Prefactor     .10000E-03    97.229        .21894E-05** at limit **
  10  Prefactor     36.190        31.152        .17643E-04    .26592E-03
  11  Prefactor     7.5512        39.797        .39125E-05   -.34305E-04
  12  Prefactor     .10001E-03    37.653       -.24131E-04** at limit **
  13  norm          .10000E-03    1.8790       -.23818E-06** at limit **
  14  norm          1.5452        3.4292        .23746E-05   -.22074E-03
  15  Prefactor     .10000E-03    24.222        .81503E-05** at limit **
  16  norm          52.263        59.978       -.36572E-04    .16211E-04
  17  Prefactor     .10000E-03    40.163       -.19163E-04** at limit **
  18  norm          1.0948        .66142        .59817E-06    .94597E-03
  19  Prefactor     .10026E-03    8.0657        .49446E-05** at limit **
  20  Prefactor     40.292        29.153       -.20454E-04   -.53599E-03
  21  Prefactor     .10000E-03    22.122        .66695E-05** at limit **
  22  norm          1.7146        1.4444       -.12369E-06   -.24712E-03
  23  Prefactor     1.8767        15.342       -.52442E-05   -.36281E-03
  24  Prefactor     .10000E-03    19.962       -.11930E-04** at limit **
  25  Prefactor     .10000E-03    16.698        .19576E-05** at limit **
  26  Prefactor     50.142        62.354        .13643E-04   -.23381E-04
  27  norm          .10000E-03    48.860        .90907E-05** at limit **
  28  Prefactor     10.011        15.382       -.37785E-05   -.99558E-04
  29  Normalizat    .79564        .22056        .67061E-06   -.15562E-04
  30  Prefactor     .95281        .17886        .41491E-05   -.23762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.11975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 36.1901
  Prefactor  = 7.55121
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 1.54521
  Prefactor  = 0.0001
  norm       = 52.2634
  Prefactor  = 0.0001
  norm       = 1.09479
  Prefactor  = 0.000100258
  Prefactor  = 40.2924
  Prefactor  = 0.000100001
  norm       = 1.71462
  Prefactor  = 1.87674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.1416
  norm       = 0.0001
  Prefactor  = 10.0112
  Normalizat = 0.795642
  Prefactor  = 0.952807
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.454     FROM HESSE     STATUS=OK           578 CALLS     4504 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1197        37.298        .16187E-03   -1.5213    
   2  Prefactor     .10000E-03    59.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8385        .12809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1000        .11514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1025        .11531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.199        23.223        .63222E-04   -1.4439    
   7  Prefactor     .10000E-03    49.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    25.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    100.61        .42776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.190        31.198        .66649E-04   -1.4504    
  11  Prefactor     7.5512        38.787        .14599E-03   -1.5158    
  12  Prefactor     .10001E-03    38.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9088        .89618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5452        3.3100        .15418E-03   -1.5459    
  15  Prefactor     .10000E-03    24.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          52.263        59.410        .55459E-04   -1.4261    
  17  Prefactor     .10000E-03    40.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0948        .64884        .37150E-04   -1.5499    
  19  Prefactor     .10026E-03    47.017        .35922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.292        28.789        .63105E-04   -1.4438    
  21  Prefactor     .10000E-03    22.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.7146        1.4298        .70815E-04   -1.5446    
  23  Prefactor     1.8767        15.308        .30308E-03   -1.5434    
  24  Prefactor     .10000E-03    19.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    16.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     50.142        62.191        .56641E-04   -1.4291    
  27  norm          .10000E-03    49.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.011        15.357        .12662E-03   -1.5075    
  29  Normalizat    .79564        .25479        .28630E-03   -1.0023    
  30  Prefactor     .95281        .20757        .22410E-03   -.94320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92763e-09
Minuit parameter uncertainties:
  1  30.2438
  2  0.000115425
  3  1.04048e-05
  4  5.28463e-06
  5  1.06678e-06
  6  23.2284
  7  0.000104974
  8  4.89463e-06
  9  0.00125179
  10  31.2121
  11  34.2631
  12  0.00132265
  13  4.65351e-05
  14  3.31039
  15  4.61491e-05
  16  59.4777
  17  7.73596e-08
  18  0.648845
  19  0.00697782
  20  28.7992
  21  0.000252201
  22  1.42983
  23  10.7235
  24  2.04009e-05
  25  5.60217e-06
  26  62.2716
  27  4.46225e-05
  28  15.3625
  29  0.255172
  30  0.207743
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  5.226e+01  5.948e+01  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.528e-01  2.077e-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:  7.956e-01  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 186.252 3.510
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 4.11e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.72e-05

TS (Fixed Index): 1.30
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/609691/likelihoodResults_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.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) = 4493.43181534
delta logL = 0.0220595430592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4493.42570437
delta logL = 0.0281705078123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    58.811       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1959       1.0000          .0000       5.0000    
     3 'Normalizat'    .80110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94950       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=   4493.426     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          58.827        63.680        .52315E-04    .26512E-04
   2  alpha         2.1951        .82828        .17741E-01    .58459E-04
   3  Normalizat    .80114        .23853        .28542E-03   -.47558E-04
   4  Prefactor     .94946        .20480        .22443E-03    .81455E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 58.827
  alpha      = 2.19513
  Normalizat = 0.80114
  Prefactor  = 0.949457
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.426     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          58.827        62.895        .10463E-04   -1.4172    
   2  alpha         2.1951        .81827        .35482E-02   -.12225    
   3  Normalizat    .80114        .23864        .11417E-04   -1.0003    
   4  Prefactor     .94946        .20493        .89771E-05   -.94434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33549e-11
Minuit parameter uncertainties:
  1  62.9659
  2  0.833879
  3  0.238953
  4  0.205094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609691': 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) = 4493.42570397
delta logL = 0.0281709109349

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  5.883e+01  6.297e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.195e+00  8.339e-01  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.495e-01  2.051e-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:  8.011e-01  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 186.252 3.510
Photon Index (Free Index): 2.20 +/- 0.83
Photon Flux (Free Index): 3.22e-08 +/- 3.70e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/609691/cmap_HighResolution_484272001_484531201_4FGL_J1225.0+0330_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-05', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='1.61e-05', photon_flux_error='4.11e-08', dlogl='2.82e-02', energy_flux='1.51e-05', photon_flux2='3.22e-08', job_status='DONE', time_completed='2021-09-05 14:09:39.618813', photon_index_error2='0.83', photon_index2='2.20', ts='1.30', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.66e-05', EG='0.80', time_epoch_completed='1630876179.62', return_code='0', job_id='609691', GAL2='0.95', EG2='0.80', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='3.70e-08', ts2='1.36', photon_index='2.40' WHERE bin_id='945' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:09:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 609691: <4FGL_J1225.0+0330_daily_bin945> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin945 186.252 3.5098 484272001 484531201 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 :                                   710.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            847 sec.

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

