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


Performing analysis on: 4FGL_J2250.4-4206_daily_bin762
RA = 342.606, Dec = -42.1095
tmin = 436838401, tmax = 437097601
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='514015', job_status='RUN', time_executed='2021-09-28 22:41:40.611781', time_epoch_executed='1632894100.61' WHERE source_name='4FGL J2250.4-4206' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514015

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514015/ft1_4FGL_J2250.4-4206_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514015/ft1_4FGL_J2250.4-4206_daily_bin762.fits outfile=/scratch/kocevski/514015/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin762.fits ra=342.606 dec=-42.1095 rad=12.0 tmin=436838401.0 tmax=437097601.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.97
user 4.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.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/514015/ft1_filteredMKT_4FGL_J2250.4-4206_daily_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/514015/ltcube_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.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/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits
.....................!
real 12.19
user 11.85
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/514015/ltcube_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.fits outfile=/scratch/kocevski/514015/expmap_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.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/514015/ltcube_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.fits
.....................!
real 189.39
user 184.64
sys 4.44

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

Setting source of interest to:
4FGL J2250.4-4206 @ 342.606 -42.1095

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits scfile=/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits outfile=/scratch/kocevski/514015/cmap_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.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.606 yref=-42.1095 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits scfile=/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits outfile=/scratch/kocevski/514015/cmap_HighResolution_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.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.606 yref=-42.1095 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514015/Model_4FGL_J2250.4-4206_daily_bin762.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/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits.....................!
real 35.43
user 34.17
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits', '/scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits', expMap='/scratch/kocevski/514015/expmap_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.fits', expCube='/scratch/kocevski/514015/ltcube_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514015/Model_4FGL_J2250.4-4206_daily_bin762.xml', optimizer='MINUIT')

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

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.312e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514015/ft1_filtered_4FGL_J2250.4-4206_daily_bin762.fits
Spacecraft file(s): /scratch/kocevski/514015/ft2_4FGL_J2250.4-4206_daily_bin762.fits
Exposure map: /scratch/kocevski/514015/expmap_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.fits
Exposure cube: /scratch/kocevski/514015/ltcube_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514015/Model_4FGL_J2250.4-4206_daily_bin762.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) = 3746.91469849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.390       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17715E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.5210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0865       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11818E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0518       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82283E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5663       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1785       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6739       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11371E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    78.211       1.0000         .10000E-03   10000.    
    19 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.441       1.0000         .10000E-03   10000.    
    22 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4012       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    69.367       1.0000         .10000E-03   10000.    
    26 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.5143       1.0000         .10000E-03   10000.    
    29 'norm      '    5.6745       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .59132       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3746.858     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4205 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.358        45.821        .10533E-05   -.39201E-04
   2  Prefactor     .10000E-03    9.0841       -.31400E-06** at limit **
   3  Prefactor     .10000E-03    177.84        .12771E-05** at limit **
   4  norm          8.5212        7.9727        .21377E-06   -.44087E-04
   5  Prefactor     .10000E-03    9.7752        .10355E-05** at limit **
   6  Prefactor     2.0849        4.1962        .53818E-07   -.11997E-03
   7  Prefactor     .10000E-03    31.249        .59703E-06** at limit **
   8  Prefactor     1.0262        14.972        .73068E-05    .11314E-04
   9  Prefactor     .10169E-03    32.145       -.16099E-05** at limit **
  10  Prefactor     3.5777        62.078       -.57925E-06    .26878E-04
  11  Prefactor     29.686        44.677       -.37521E-05   -.10556E-03
  12  Prefactor     .10000E-03    16.448        .13946E-05** at limit **
  13  Prefactor     .10000E-03    42.420       -.10192E-06** at limit **
  14  Prefactor     8.1737        12.966        .11201E-05    .40204E-05
  15  Prefactor     .10000E-03    3.9823        .17850E-06** at limit **
  16  Prefactor     4.6962        34.554        .49427E-06   -.27365E-04
  17  Prefactor     .10000E-03    75.984        .57027E-06** at limit **
  18  Prefactor     78.187        38.089       -.17075E-05   -.10046E-03
  19  norm          .10000E-03    12.576       -.24116E-06** at limit **
  20  norm          .10000E-03    3.9922       -.16563E-06** at limit **
  21  norm          10.440        8.3140        .50120E-07    .54179E-05
  22  norm          .10000E-03    3.5357       -.67166E-06** at limit **
  23  Prefactor     3.3934        12.665        .15128E-04    .16582E-04
  24  Prefactor     .10000E-03    22.200       -.15602E-06** at limit **
  25  Prefactor     69.118        111.63       -.36791E-05   -.23211E-03
  26  norm          .10000E-03    3.0844        .58998E-07** at limit **
  27  Prefactor     .10006E-03    58.924       -.95223E-05** at limit **
  28  norm          4.5140        2.5821       -.59767E-06   -.97502E-04
  29  norm          5.6720        5.4901        .10549E-06    .44596E-04
  30  Normalizat    1.2162        .24378        .25856E-05   -.32916E-03
  31  Prefactor     .59005        .21666       -.82509E-05    .47444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3576
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 8.52115
  Prefactor  = 0.0001
  Prefactor  = 2.08492
  Prefactor  = 0.000100001
  Prefactor  = 1.02617
  Prefactor  = 0.000101692
  Prefactor  = 3.57768
  Prefactor  = 29.686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.17372
  Prefactor  = 0.0001
  Prefactor  = 4.69624
  Prefactor  = 0.000100001
  Prefactor  = 78.1873
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.4396
  norm       = 0.0001
  Prefactor  = 3.39343
  Prefactor  = 0.0001
  Prefactor  = 69.1177
  norm       = 0.0001
  Prefactor  = 0.000100056
  norm       = 4.51401
  norm       = 5.67204
  Normalizat = 1.21616
  Prefactor  = 0.59005
 **********
 **   18 **HESSE 
 **********

 FCN=   3746.858     FROM HESSE     STATUS=OK           620 CALLS     4825 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.358        45.800        .11380E-03   -1.5005    
   2  Prefactor     .10000E-03    9.1209        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    178.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.5212        7.9756        .13733E-03   -1.5124    
   5  Prefactor     .10000E-03    9.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0849        4.1681        .16637E-03   -1.5419    
   7  Prefactor     .10000E-03    31.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0262        15.007        .39892E-02   -1.5505    
   9  Prefactor     .10169E-03    211.73        .64757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5777        61.181        .21401E-03   -1.5330    
  11  Prefactor     29.686        43.846        .73559E-04   -1.4618    
  12  Prefactor     .10000E-03    16.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1737        12.968        .70095E-03   -1.5136    
  15  Prefactor     .10000E-03    3.9909        .11929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6962        34.567        .18615E-03   -1.5275    
  17  Prefactor     .10000E-03    76.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     78.187        38.074        .45409E-04   -1.3937    
  19  norm          .10000E-03    12.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9938        .11945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.440        8.3059        .12400E-03   -1.5062    
  22  norm          .10000E-03    3.5344        .11237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3934        12.796        .10969E-02   -1.5340    
  24  Prefactor     .10000E-03    22.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     69.118        112.50        .24098E-03   -1.4043    
  26  norm          .10000E-03    3.0955        .10488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10006E-03    62.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.5140        2.5771        .65343E-04   -1.5283    
  29  norm          5.6720        5.4874        .13663E-03   -1.5232    
  30  Normalizat    1.2162        .30082        .22380E-03   -.86105    
  31  Prefactor     .59005        .25940        .28743E-03   -1.0801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08439e-08
Minuit parameter uncertainties:
  1  45.9306
  2  7.61326e-06
  3  0.00125068
  4  7.9766
  5  6.62196e-05
  6  4.16869
  7  0.00025379
  8  7.85053
  9  0.0379915
  10  29.6248
  11  43.8938
  12  0.000146008
  13  0.000149587
  14  12.9727
  15  5.06761e-06
  16  25.5027
  17  0.000493605
  18  38.0854
  19  8.00512e-05
  20  1.28091e-05
  21  8.30677
  22  8.4513e-06
  23  12.8068
  24  0.00012106
  25  112.846
  26  3.18062e-06
  27  0.00373068
  28  2.57719
  29  5.48787
  30  0.301247
  31  0.259922
Done.

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

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.068e-06  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  5.901e-01  2.599e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.216e+00  3.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.606 -42.109
Photon Flux Upper Limit: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514015/likelihoodResults_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.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) = 3746.85964959
delta logL = -0.00117958679766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3746.85846997
delta logL = 3.16817931889e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0774       1.0000          .0000       10.000    
     3 'Normalizat'    1.2162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5810E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3746.858     FROM MIGRAD    STATUS=FAILED        89 CALLS      245 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    95.906        .11968E-02** at limit **
   2  Index         2.0260        5.3190        .50000        .15416E-04
   3  Normalizat    1.2162        .27119E-01    .22379E-03    .10414E-05
   4  Prefactor     .59004        .25177E-01    .28744E-03    .31839E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3746.858     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      378 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    95.906        .29313E-03** at limit **
   2  Index         2.0260        5.3190        .60477E-04    .15416E-04
   3  Normalizat    1.2162        .27119E-01    .89712E-06    .10414E-05
   4  Prefactor     .59004        .25177E-01    .11230E-05    .31839E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3746.858     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      419 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    681.25        .23936E-03** at limit **
   2  Index         1.7638        8.9964        .50000       -.44326E-07
   3  Normalizat    1.2162        .94667E-01    .89516E-05    .26416E-04
   4  Prefactor     .59004        .87683E-01    .11497E-04    .23039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76379
  Normalizat = 1.21617
  Prefactor  = 0.590042
 **********
 **   18 **HESSE 
 **********

 FCN=   3746.858     FROM HESSE     STATUS=OK            29 CALLS      448 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1093        .47872E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7638        6.5804        .50000       -.70396    
   3  Normalizat    1.2162        .27575        .17903E-05   -.86105    
   4  Prefactor     .59004        .25588        .22995E-05   -1.0801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10057e-12
Minuit parameter uncertainties:
  1  2.38402e-06
  2  152.921
  3  0.276084
  4  0.256389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514015': 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) = 3746.85846923
delta logL = 7.68598965806e-07

Extracting fit parameters...

4FGL J2250.4-4206
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.384e-06  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  1.764e+00  1.529e+02  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.783e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
578    Prefactor:  5.900e-01  2.564e-01  0.000e+00  1.000e+01 ( 1.000e+00)
579        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
580        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
577   Normalization:  1.216e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.606 -42.109

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/514015/cmap_HighResolution_436838401_437097601_4FGL_J2250.4-4206_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2021-09-28 22:52:31.517620', job_id='514015', GAL2='0.59', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632894751.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='7.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='762' AND source_name='4FGL J2250.4-4206' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:52:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 514015: <4FGL_J2250.4-4206_daily_bin762> in cluster <slac> Done

Job <4FGL_J2250.4-4206_daily_bin762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:40:16 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:40:17 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:40:17 2021
Terminated at Tue Sep 28 22:52:32 2021
Results reported at Tue Sep 28 22:52:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.4-4206_daily_bin762 342.606 -42.1095 436838401 437097601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.4-4206 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   648.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

