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


Performing analysis on: 4FGL_J2250.0-1250_daily_bin1263
RA = 342.505, Dec = -12.8485
tmin = 566697601, tmax = 566956801
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='508971', job_status='RUN', time_executed='2021-09-28 22:25:32.200233', time_epoch_executed='1632893132.2' WHERE source_name='4FGL J2250.0-1250' and cadence='daily' and bin_id='1263'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508971/ft1_4FGL_J2250.0-1250_daily_bin1263.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508971/ft1_4FGL_J2250.0-1250_daily_bin1263.fits outfile=/scratch/kocevski/508971/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1263.fits ra=342.505 dec=-12.8485 rad=12.0 tmin=566697601.0 tmax=566956801.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 1.99
user 1.79
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.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/508971/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1263.fits evtable="EVENTS" outfile="/scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits" evtable="EVENTS" scfile=/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits sctable="SC_DATA" outfile=/scratch/kocevski/508971/ltcube_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.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/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits
.....................!
real 13.30
user 12.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits sctable="SC_DATA" expcube=/scratch/kocevski/508971/ltcube_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.fits outfile=/scratch/kocevski/508971/expmap_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.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/508971/ltcube_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.fits
.....................!
real 190.90
user 186.09
sys 4.33

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J2250.0-1250 @ 342.505 -12.8485

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits scfile=/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits outfile=/scratch/kocevski/508971/cmap_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.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=342.505 yref=-12.8485 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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits scfile=/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits outfile=/scratch/kocevski/508971/cmap_HighResolution_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.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=342.505 yref=-12.8485 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits evtable="EVENTS" scfile=/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508971/Model_4FGL_J2250.0-1250_daily_bin1263.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/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits.....................!
real 69.71
user 68.23
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits', '/scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits', expMap='/scratch/kocevski/508971/expmap_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.fits', expCube='/scratch/kocevski/508971/ltcube_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/508971/Model_4FGL_J2250.0-1250_daily_bin1263.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0-1250'

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  3.029e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/508971/ft1_filtered_4FGL_J2250.0-1250_daily_bin1263.fits
Spacecraft file(s): /scratch/kocevski/508971/ft2_4FGL_J2250.0-1250_daily_bin1263.fits
Exposure map: /scratch/kocevski/508971/expmap_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.fits
Exposure cube: /scratch/kocevski/508971/ltcube_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/508971/Model_4FGL_J2250.0-1250_daily_bin1263.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) = 8437.69015144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5259       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4904       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.324       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.973       1.0000         .10000E-03   10000.    
    11 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8899       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0559       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .60821       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0098       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8437.219     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2633 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5262        9.4620        .69805E-05   -.23618E-03
   2  Prefactor     2.1412        9.6911        .90567E-06   -.17513E-04
   3  Prefactor     .10000E-03    39.033       -.14244E-05** at limit **
   4  Prefactor     3.4903        3.4936        .18994E-06   -.63161E-04
   5  Prefactor     .10000E-03    21.252        .76160E-06** at limit **
   6  norm          4.2799        2.9397        .10699E-06   -.83955E-04
   7  Prefactor     .10000E-03    73.969        .27154E-05** at limit **
   8  Prefactor     13.325        11.231        .13055E-05   -.80734E-04
   9  norm          3.7476        .89919       -.12938E-08   -.33414E-03
  10  Prefactor     28.978        18.166        .68432E-06   -.27780E-03
  11  norm          .10000E-03    .66513        .13199E-06** at limit **
  12  Prefactor     45.832        31.629       -.12264E-05   -.24557E-03
  13  Prefactor     9.3217        6.8692        .14474E-06   -.32894E-04
  14  Prefactor     .10000E-03    5.4471        .65995E-07** at limit **
  15  norm          .10000E-03    5.2339        .61200E-07** at limit **
  16  Prefactor     .10000E-03    10.060        .39169E-07** at limit **
  17  Prefactor     .10000E-03    18.565       -.21658E-06** at limit **
  18  Prefactor     .10000E-03    1.4696        .18887E-07** at limit **
  19  norm          .10000E-03    1.5319        .15919E-06** at limit **
  20  Prefactor     8.9479        64.163        .18735E-04    .19234E-03
  21  Prefactor     3.0458        20.798       -.30808E-05   -.16740E-03
  22  Normalizat    .60806        .15612       -.50598E-05    .20844E-04
  23  Prefactor     1.0100        .11750        .13541E-05   -.45082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52617
  Prefactor  = 2.14116
  Prefactor  = 0.0001
  Prefactor  = 3.49033
  Prefactor  = 0.0001
  norm       = 4.27987
  Prefactor  = 0.000100001
  Prefactor  = 13.3249
  norm       = 3.74763
  Prefactor  = 28.9785
  norm       = 0.0001
  Prefactor  = 45.8319
  Prefactor  = 9.32175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.94793
  Prefactor  = 3.0458
  Normalizat = 0.608058
  Prefactor  = 1.00996
 **********
 **   18 **HESSE 
 **********

 FCN=   8437.219     FROM HESSE     STATUS=OK           368 CALLS     3001 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5262        9.7992        .94620E-03   -1.5282    
   2  Prefactor     2.1412        9.4076        .28162E-03   -1.5415    
   3  Prefactor     .10000E-03    39.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4903        3.4349        .15239E-03   -1.5334    
   5  Prefactor     .10000E-03    21.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2799        2.9304        .12251E-03   -1.5294    
   7  Prefactor     .10000E-03    74.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.325        11.251        .54867E-03   -1.4978    
   9  norm          3.7476        .89887        .40740E-04   -1.5321    
  10  Prefactor     28.978        15.799        .74432E-04   -1.4631    
  11  norm          .10000E-03    1.9595        .10943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.832        31.547        .59219E-04   -1.4353    
  13  Prefactor     9.3217        6.8687        .13126E-03   -1.5097    
  14  Prefactor     .10000E-03    5.5335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4753        .10872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.1602        .22112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.9479        73.152        .13443E-03   -1.5110    
  21  Prefactor     3.0458        21.937        .23207E-03   -1.5359    
  22  Normalizat    .60806        .17822        .29882E-03   -1.0764    
  23  Prefactor     1.0100        .13725        .19050E-03   -.92398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53435e-09
Minuit parameter uncertainties:
  1  9.80266
  2  8.9784
  3  0.000141133
  4  3.43507
  5  5.53069e-05
  6  2.93051
  7  0.000386615
  8  11.2527
  9  0.898878
  10  15.8016
  11  6.30323e-06
  12  31.5584
  13  6.86931
  14  1.98689e-05
  15  1.47905e-05
  16  1.64996e-05
  17  7.27759e-05
  18  3.59647e-06
  19  3.33771e-05
  20  51.254
  21  16.3563
  22  0.178384
  23  0.137297
Done.

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

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  1.000e-04  6.303e-06  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  1.010e+00  1.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  6.081e-01  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.505 -12.848
Photon Flux Upper Limit: 6.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508971/likelihoodResults_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8437.22126883
delta logL = -0.00247998779014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8437.21878031
delta logL = 8.53011624713e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8437.196     FROM MIGRAD    STATUS=FAILED       150 CALLS      317 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56372E-01    .53708        .64650E-03   -.14646E-01
   2  alpha         3.1997        1.8315        .31817E-01    .95961E-05
   3  Normalizat    .60210        .16787        .30001E-03   -.30088E-04
   4  Prefactor     1.0111        .13459        .19029E-03   -.17565E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8437.196     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      388 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56372E-01    .53708        .80937E-04   -1.5755    
   2  alpha         3.1997        1.8315        .43013E-02    .28368    
   3  Normalizat    .60210        .16787        .31180E-03   -1.0789    
   4  Prefactor     1.0111        .13459        .23418E-03   -.92359    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8437.196     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      418 TOTAL
                     EDM=   .10E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56373E-01    .50814        .12930E-03   -.24267E-04
   2  alpha         3.1997        1.7879        .12727E-02    .35732E-07
   3  Normalizat    .60210        .16796        .12000E-04    .26526E-05
   4  Prefactor     1.0111        .13463        .76116E-05    .35847E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0563726
  alpha      = 3.19973
  Normalizat = 0.602099
  Prefactor  = 1.01113
 **********
 **   18 **HESSE 
 **********

 FCN=   8437.196     FROM HESSE     STATUS=OK            25 CALLS      443 TOTAL
                     EDM=   .44E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56373E-01    .55200        .51720E-05   -1.5755    
   2  alpha         3.1997        1.8422        .50907E-04    .28368    
   3  Normalizat    .60210        .16811        .24001E-05   -1.0789    
   4  Prefactor     1.0111        .13471        .15223E-05   -.92359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42267e-15
Minuit parameter uncertainties:
  1  0.352496
  2  2.10011
  3  0.168257
  4  0.134758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508971': 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) = 8437.19554766
delta logL = 0.0232411864581

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  5.637e-02  3.525e-01  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  3.200e+00  2.100e+00  0.000e+00  5.000e+00 ( 1.000e+00)
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  1.011e+00  1.348e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  6.021e-01  1.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.505 -12.848

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/508971/cmap_HighResolution_566697601_566956801_4FGL_J2250.0-1250_daily_bin1263.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', job_status='DONE', photon_flux_upper_limit='6.93e-08', time_completed='2021-09-28 22:37:50.661279', job_id='508971', GAL2='1.01', fit_tolerance='1e-08', EG2='0.60', EG='0.61', time_epoch_completed='1632893870.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.32e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1263' AND source_name='4FGL J2250.0-1250' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:37:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 508971: <4FGL_J2250.0-1250_daily_bin1263> in cluster <slac> Done

Job <4FGL_J2250.0-1250_daily_bin1263> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:25:12 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:25:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 22:25:13 2021
Terminated at Tue Sep 28 22:37:51 2021
Results reported at Tue Sep 28 22:37:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0-1250_daily_bin1263 342.505 -12.8485 566697601 566956801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.0-1250 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

