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


Performing analysis on: 4FGL_J2250.0+3825_daily_bin707
RA = 342.514, Dec = 38.4247
tmin = 422582401, tmax = 422841601
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='494227', job_status='RUN', time_executed='2021-09-28 21:46:02.665307', time_epoch_executed='1632890762.67' WHERE source_name='4FGL J2250.0+3825' and cadence='daily' and bin_id='707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494227/ft1_4FGL_J2250.0+3825_daily_bin707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494227/ft1_4FGL_J2250.0+3825_daily_bin707.fits outfile=/scratch/kocevski/494227/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin707.fits ra=342.514 dec=38.4247 rad=12.0 tmin=422582401.0 tmax=422841601.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 3.52
user 3.27
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.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/494227/ft1_filteredMKT_4FGL_J2250.0+3825_daily_bin707.fits evtable="EVENTS" outfile="/scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits" evtable="EVENTS" scfile=/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits sctable="SC_DATA" outfile=/scratch/kocevski/494227/ltcube_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.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/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits
.....................!
real 12.06
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits sctable="SC_DATA" expcube=/scratch/kocevski/494227/ltcube_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.fits outfile=/scratch/kocevski/494227/expmap_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.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/494227/ltcube_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.fits
.....................!
real 190.41
user 184.80
sys 5.22

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 163 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2250.0+3825 @ 342.514 38.4247

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits scfile=/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits outfile=/scratch/kocevski/494227/cmap_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.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.514 yref=38.4247 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits scfile=/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits outfile=/scratch/kocevski/494227/cmap_HighResolution_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.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.514 yref=38.4247 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/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494227/Model_4FGL_J2250.0+3825_daily_bin707.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits.....................!
real 124.15
user 122.73
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits', '/scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits', expMap='/scratch/kocevski/494227/expmap_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.fits', expCube='/scratch/kocevski/494227/ltcube_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/494227/Model_4FGL_J2250.0+3825_daily_bin707.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0+3825'

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  3.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/494227/ft1_filtered_4FGL_J2250.0+3825_daily_bin707.fits
Spacecraft file(s): /scratch/kocevski/494227/ft2_4FGL_J2250.0+3825_daily_bin707.fits
Exposure map: /scratch/kocevski/494227/expmap_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.fits
Exposure cube: /scratch/kocevski/494227/ltcube_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/494227/Model_4FGL_J2250.0+3825_daily_bin707.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) = 10688.7974494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4391       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    140.19       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2782       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .46610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.974       1.0000         .10000E-03   10000.    
    18 'norm      '    .44110       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49227       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87341       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   10688.80     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3070 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4560        .77812        .61641E-04   -.53043E-03
   2  Prefactor     .10000E-03    33.043        .18142E-02** at limit **
   3  Prefactor     8.4613        13.846        .13800E-03   -.90788E-04
   4  norm          .10000E-03    .31130        .11097E-03** at limit **
   5  Prefactor     140.19        89.753        .34022E-04   -.70840E-05
   6  Prefactor     .10000E-03    4.2592        .18142E-02** at limit **
   7  Prefactor     .10000E-03    10.659        .18142E-02** at limit **
   8  norm          2.2756        2.0961        .13916E-03   -.98850E-04
   9  Prefactor     .10000E-03    4.3075        .18142E-02** at limit **
  10  Prefactor     .10000E-03    1.9515        .14076E-02** at limit **
  11  Prefactor     .10000E-03    7.1241        .18142E-02** at limit **
  12  norm          .46429        1.0453        .15341E-03    .10840E-03
  13  Prefactor     .10000E-03    7.7018        .18142E-02** at limit **
  14  Prefactor     .10000E-03    6.4359        .18142E-02** at limit **
  15  norm          .10000E-03    1.9591        .14090E-02** at limit **
  16  norm          .10000E-03    3.8231        .18142E-02** at limit **
  17  Prefactor     12.996        14.960        .11120E-03    .77696E-05
  18  norm          .44274        1.6054        .24503E-03    .94929E-04
  19  Prefactor     .45997        140.29        .60836E-02    .39468E-04
  20  Normalizat    .87358        .22496        .42981E-03   -.70465E-04
  21  Prefactor     1.0251        .81243E-01    .14558E-03   -.31124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45603
  Prefactor  = 0.0001
  Prefactor  = 8.46135
  norm       = 0.0001
  Prefactor  = 140.193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.27559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.46429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.996
  norm       = 0.442744
  Prefactor  = 0.459966
  Normalizat = 0.873583
  Prefactor  = 1.02507
 **********
 **   18 **HESSE 
 **********

 FCN=   10688.80     FROM HESSE     STATUS=OK           299 CALLS     3369 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4560        .77803        .24656E-05   -1.5467    
   2  Prefactor     .10000E-03    33.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4613        13.843        .55198E-05   -1.5126    
   4  norm          .10000E-03    .31130        .22194E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     140.19        89.743        .68045E-05   -1.3334    
   6  Prefactor     .10000E-03    4.2625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2756        2.0960        .55665E-05   -1.5406    
   9  Prefactor     .10000E-03    4.3075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9517        .28152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .46429        1.0451        .30683E-04   -1.5572    
  13  Prefactor     .10000E-03    7.7082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9592        .28180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.996        14.960        .44482E-05   -1.4987    
  18  norm          .44274        1.6052        .98012E-05   -1.5575    
  19  Prefactor     .45997        145.57        .24334E-03   -1.5572    
  20  Normalizat    .87358        .22497        .17192E-04   -.97395    
  21  Prefactor     1.0251        .81269E-01    .29116E-04   -.91898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96556e-11
Minuit parameter uncertainties:
  1  0.778039
  2  0.000234454
  3  13.8487
  4  1.43965e-06
  5  89.83
  6  8.72649e-06
  7  3.26268e-05
  8  2.09605
  9  2.62473e-06
  10  3.30188e-06
  11  8.95832e-07
  12  1.04513
  13  8.56675e-06
  14  4.10159e-07
  15  1.48079e-05
  16  5.16239e-06
  17  14.9646
  18  1.60539
  19  16.4041
  20  0.225211
  21  0.0812785
Done.

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

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.000e-04  2.625e-06  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.025e+00  8.128e-02  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.736e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 342.514 38.425
Photon Flux Upper Limit: 2.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494227/likelihoodResults_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.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) = 10688.7980849
delta logL = -0.00110175461487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10688.7969827
delta logL = 3.64268998965e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6970       1.0000          .0000       10.000    
     3 'Normalizat'    .87364       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+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=   10688.80     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10076E-03    20.151        .18142E-02** at limit **
   2  Index         1.6505        6.0627        .50000        .47352E-04
   3  Normalizat    .87358        .10966E-01    .42981E-03   -.23811E-03
   4  Prefactor     1.0251        .40253E-02    .14558E-03   -.81216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100756
  Index      = 1.65047
  Normalizat = 0.873579
  Prefactor  = 1.02508
 **********
 **   18 **HESSE 
 **********

 FCN=   10688.80     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10076E-03    95.093        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6505        6.2593        .50000       -.73408    
   3  Normalizat    .87358        .24253E-01    .17192E-04   -.97395    
   4  Prefactor     1.0251        .89020E-02    .58232E-05   -.91898    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11251e-08
Minuit parameter uncertainties:
  1  0.0169857
  2  148.265
  3  0.0242531
  4  0.00890205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494227': 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): 102
logL (Free Index) = 10688.796982
delta logL = 1.09283791971e-06

Extracting fit parameters...

4FGL J2250.0+3825
   Spectrum: PowerLaw
363    Prefactor:  1.008e-04  1.699e-02  1.000e-04  1.000e+04 ( 1.000e-14)
364        Index:  1.650e+00  1.483e+02  0.000e+00  1.000e+01 (-1.000e+00)
365        Scale:  5.055e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.025e+00  8.902e-03  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  8.736e-01  2.425e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 342.514 38.425

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/494227/cmap_HighResolution_422582401_422841601_4FGL_J2250.0+3825_daily_bin707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-03', job_status='DONE', photon_flux_upper_limit='2.99e-08', time_completed='2021-09-28 22:02:13.760068', job_id='494227', GAL2='1.03', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632891733.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.73' WHERE bin_id='707' AND source_name='4FGL J2250.0+3825' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:02:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 494227: <4FGL_J2250.0+3825_daily_bin707> in cluster <slac> Done

Job <4FGL_J2250.0+3825_daily_bin707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 21:45:49 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:45:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:45:51 2021
Terminated at Tue Sep 28 22:02:14 2021
Results reported at Tue Sep 28 22:02:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0+3825_daily_bin707 342.514 38.4247 422582401 422841601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.0+3825 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   968.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

