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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin685
RA = 186.252, Dec = 3.5098
tmin = 416880001, tmax = 417139201
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='608226', job_status='RUN', time_executed='2021-09-05 13:52:47.946162', time_epoch_executed='1630875167.95' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608226

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608226/ft1_4FGL_J1225.0+0330_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608226/ft2_4FGL_J1225.0+0330_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608226/ft1_4FGL_J1225.0+0330_daily_bin685.fits outfile=/scratch/kocevski/608226/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin685.fits ra=186.252 dec=3.5098 rad=12.0 tmin=416880001.0 tmax=417139201.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.27
user 5.02
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608226/ft1_filtered_4FGL_J1225.0+0330_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/608226/ft2_4FGL_J1225.0+0330_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/608226/ltcube_416880001_417139201_4FGL_J1225.0+0330_daily_bin685.fits outfile=/scratch/kocevski/608226/expmap_416880001_417139201_4FGL_J1225.0+0330_daily_bin685.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/608226/ltcube_416880001_417139201_4FGL_J1225.0+0330_daily_bin685.fits
.....................!
real 190.88
user 185.30
sys 5.13

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/608226/ft1_filtered_4FGL_J1225.0+0330_daily_bin685.fits scfile=/scratch/kocevski/608226/ft2_4FGL_J1225.0+0330_daily_bin685.fits outfile=/scratch/kocevski/608226/cmap_416880001_417139201_4FGL_J1225.0+0330_daily_bin685.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/608226/ft1_filtered_4FGL_J1225.0+0330_daily_bin685.fits scfile=/scratch/kocevski/608226/ft2_4FGL_J1225.0+0330_daily_bin685.fits outfile=/scratch/kocevski/608226/cmap_HighResolution_416880001_417139201_4FGL_J1225.0+0330_daily_bin685.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    66.534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5043       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1683       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.759       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.498       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .97043       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1386       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.425       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11392E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0004       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2695       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.911       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
    22 'norm      '    .94455       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9878       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2962       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.8245       1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.080       1.0000         .10000E-03   10000.    
    27 'norm      '    43.968       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90335       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=   5284.875     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3893 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.089        .15510E-06** at limit **
   2  Prefactor     66.512        90.608       -.37205E-06   -.44193E-04
   3  Prefactor     .10000E-03    5.9944       -.10016E-05** at limit **
   4  Prefactor     8.5042        10.211        .26562E-06   -.71951E-05
   5  Prefactor     .10001E-03    47.522       -.11986E-04** at limit **
   6  Prefactor     .10000E-03    3.8201        .14613E-06** at limit **
   7  Prefactor     2.0438        530.18       -.24694E-04   -.54771E-04
   8  Prefactor     18.777        32.296        .69697E-06    .64327E-04
   9  Prefactor     .10000E-03    29.934       -.72474E-06** at limit **
  10  Prefactor     40.487        25.783       -.16727E-06   -.66067E-04
  11  Prefactor     .10000E-03    9.1088       -.82417E-08** at limit **
  12  Prefactor     .10000E-03    16.397       -.51251E-06** at limit **
  13  norm          .97040        2.5957        .98912E-06    .49462E-04
  14  norm          4.1392        4.0002       -.55066E-07   -.11112E-03
  15  Prefactor     22.420        36.357        .16274E-06   -.21600E-04
  16  norm          .10000E-03    16.805       -.25435E-07** at limit **
  17  Prefactor     .10000E-03    87.207        .16330E-06** at limit **
  18  norm          1.0004        .66258       -.14743E-06   -.98600E-03
  19  Prefactor     5.2672        11.177        .38822E-06   -.57209E-05
  20  Prefactor     17.922        31.129        .41110E-06    .36251E-04
  21  Prefactor     12.450        9.0542       -.61926E-06   -.81155E-04
  22  norm          .94397        2.1402        .94923E-06    .75010E-04
  23  Prefactor     3.9866        9.5827        .10584E-04   -.69731E-04
  24  Prefactor     8.2895        26.884       -.68435E-06   -.30366E-04
  25  Prefactor     9.8208        68.300       -.16286E-05   -.12977E-04
  26  Prefactor     25.075        51.705        .15230E-05   -.17359E-04
  27  norm          43.973        37.182       -.22368E-05   -.47537E-05
  28  Prefactor     .10000E-03    22.399        .12147E-05** at limit **
  29  Normalizat    1.2005        .23348        .66175E-06   -.12430E-03
  30  Prefactor     .90339        .18796       -.33183E-05    .12142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 66.512
  Prefactor  = 0.0001
  Prefactor  = 8.50421
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.04381
  Prefactor  = 18.7775
  Prefactor  = 0.000100001
  Prefactor  = 40.4865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.970396
  norm       = 4.13915
  Prefactor  = 22.4203
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00042
  Prefactor  = 5.26724
  Prefactor  = 17.9221
  Prefactor  = 12.4497
  norm       = 0.943975
  Prefactor  = 3.98657
  Prefactor  = 8.28953
  Prefactor  = 9.82076
  Prefactor  = 25.0748
  norm       = 43.9731
  Prefactor  = 0.000100001
  Normalizat = 1.20053
  Prefactor  = 0.903387
 **********
 **   18 **HESSE 
 **********

 FCN=   5284.875     FROM HESSE     STATUS=OK           590 CALLS     4483 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     66.512        90.704        .49204E-04   -1.4075    
   3  Prefactor     .10000E-03    6.0174        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5042        10.212        .13746E-03   -1.5125    
   5  Prefactor     .10001E-03    47.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8249        .13877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0438        559.94        .27967E-02   -1.5422    
   8  Prefactor     18.777        32.297        .92474E-04   -1.4841    
   9  Prefactor     .10000E-03    30.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.487        25.720        .62988E-04   -1.4435    
  11  Prefactor     .10000E-03    9.1100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97040        2.5625        .17851E-03   -1.5511    
  14  norm          4.1392        3.9710        .12848E-03   -1.5301    
  15  Prefactor     22.420        36.363        .84584E-04   -1.4761    
  16  norm          .10000E-03    16.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    87.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0004        .64160        .42302E-04   -1.5508    
  19  Prefactor     5.2672        11.129        .17510E-03   -1.5249    
  20  Prefactor     17.922        31.027        .94637E-04   -1.4861    
  21  Prefactor     12.450        9.0485        .11353E-03   -1.5002    
  22  norm          .94397        2.1027        .14348E-03   -1.5514    
  23  Prefactor     3.9866        9.6583        .10098E-02   -1.5309    
  24  Prefactor     8.2895        26.869        .13919E-03   -1.5132    
  25  Prefactor     9.8208        68.268        .12785E-03   -1.5081    
  26  Prefactor     25.075        51.707        .79989E-04   -1.4706    
  27  norm          43.973        37.191        .60461E-04   -1.4381    
  28  Prefactor     .10000E-03    22.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2005        .27095        .27934E-03   -.86587    
  30  Prefactor     .90339        .21582        .26056E-03   -.96023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07604e-09
Minuit parameter uncertainties:
  1  1.44181e-05
  2  90.8934
  3  2.27473e-05
  4  10.2143
  5  0.00111992
  6  2.37247e-06
  7  68.3119
  8  32.3267
  9  0.000381965
  10  25.7273
  11  2.5412e-06
  12  0.000113756
  13  2.56282
  14  3.97127
  15  36.3984
  16  1.79485e-05
  17  0.00012488
  18  0.6416
  19  11.1337
  20  31.0551
  21  9.04952
  22  2.10284
  23  9.66212
  24  26.9079
  25  51.8704
  26  51.7992
  27  37.2107
  28  0.000253733
  29  0.271264
  30  0.216026
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.795e-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.034e-01  2.160e-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.201e+00  2.713e-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: 5.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608226/likelihoodResults_416880001_417139201_4FGL_J1225.0+0330_daily_bin685.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) = 5284.87515071
delta logL = -0.000282599021375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5284.87486807
delta logL = 4.1097337089e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1175       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90335       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=   5284.875     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      261 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    28.771        .18142E-02** at limit **
   2  alpha         1.9563        3.4535        .16711        .11497E-07
   3  Normalizat    1.2005        .25333        .27934E-03    .48839E-06
   4  Prefactor     .90339        .20942        .26056E-03    .74175E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95633
  Normalizat = 1.20053
  Prefactor  = 0.903385
 **********
 **   18 **HESSE 
 **********

 FCN=   5284.875     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9563        3.6476        .66843E-02   -.21922    
   3  Normalizat    1.2005        .25356        .11173E-04   -.86587    
   4  Prefactor     .90339        .20961        .10422E-04   -.96023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36217e-11
Minuit parameter uncertainties:
  1  3.9582e-05
  2  994.152
  3  0.253818
  4  0.209797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608226': 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) = 5284.87486804
delta logL = 7.63420757721e-08

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  3.958e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.956e+00  9.942e+02  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.034e-01  2.098e-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.201e+00  2.538e-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/608226/cmap_HighResolution_416880001_417139201_4FGL_J1225.0+0330_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='5.86e-08', time_completed='2021-09-05 14:06:06.174697', job_id='608226', GAL2='0.90', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630875966.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='7.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='685' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 608226: <4FGL_J1225.0+0330_daily_bin685> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin685> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:37 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:38 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:50:38 2021
Terminated at Sun Sep  5 14:06:06 2021
Results reported at Sun Sep  5 14:06:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin685 186.252 3.5098 416880001 417139201 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 :                                   795.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

