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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1186
RA = 36.4048, Dec = -45.0366
tmin = 546739201, tmax = 546998401
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='385404', job_status='RUN', time_executed='2021-08-15 21:37:21.109449', time_epoch_executed='1629088641.11' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385404/ft1_4FGL_J0225.6-4502_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385404/ft1_4FGL_J0225.6-4502_daily_bin1186.fits outfile=/scratch/kocevski/385404/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1186.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=546739201.0 tmax=546998401.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 9.37
user 3.39
sys 5.83

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.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/385404/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1186.fits evtable="EVENTS" outfile="/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.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 6.71
user 0.35
sys 6.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits" evtable="EVENTS" scfile=/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits sctable="SC_DATA" outfile=/scratch/kocevski/385404/ltcube_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.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/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits
.....................!
real 20.88
user 14.14
sys 6.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/385404/ltcube_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.fits outfile=/scratch/kocevski/385404/expmap_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.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/385404/ltcube_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.fits
.....................!
real 199.28
user 186.01
sys 12.66

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 180 point sources and 1 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 J0225.6-4502 @ 36.4048 -45.0366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits scfile=/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits outfile=/scratch/kocevski/385404/cmap_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.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=36.4048 yref=-45.0366 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 6.08
user 0.39
sys 5.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits scfile=/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits outfile=/scratch/kocevski/385404/cmap_HighResolution_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.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=36.4048 yref=-45.0366 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 6.10
user 0.37
sys 5.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385404/Model_4FGL_J0225.6-4502_daily_bin1186.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits.....................!
real 72.03
user 63.08
sys 8.67

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits', '/scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits', expMap='/scratch/kocevski/385404/expmap_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.fits', expCube='/scratch/kocevski/385404/ltcube_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385404/Model_4FGL_J0225.6-4502_daily_bin1186.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0225.6-4502'

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.072e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/385404/ft1_filtered_4FGL_J0225.6-4502_daily_bin1186.fits
Spacecraft file(s): /scratch/kocevski/385404/ft2_4FGL_J0225.6-4502_daily_bin1186.fits
Exposure map: /scratch/kocevski/385404/expmap_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.fits
Exposure cube: /scratch/kocevski/385404/ltcube_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385404/Model_4FGL_J0225.6-4502_daily_bin1186.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) = 2769.70564199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7289       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17343E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.244       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    80.254       1.0000         .10000E-03   10000.    
     7 'norm      '    4.8438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4806       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0349       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.736       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2105       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.921       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9508       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.142       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.481       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1383       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .59259       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   2769.696     FROM MIGRAD    STATUS=CONVERGED   1148 CALLS     3755 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.452        .18136E-02** at limit **
   2  norm          3.7265        12.109        .20911E-03    .10088E-03
   3  Prefactor     .10000E-03    64.630        .11570    ** at limit **
   4  Prefactor     15.243        11.022        .10259E-03    .78462E-04
   5  Prefactor     .10000E-03    5.2535        .11766E-02** at limit **
   6  norm          80.214        88.624        .22416E-03    .14049E-04
   7  norm          4.8422        5.9942        .13883E-03    .10752E-03
   8  Prefactor     .10000E-03    6.3218        .12920E-02** at limit **
   9  Prefactor     .10000E-03    28.452        .18142E-02** at limit **
  10  Prefactor     5.4807        5.6647        .12275E-03   -.22321E-04
  11  norm          7.0350        2.7933        .52522E-04    .69591E-04
  12  Prefactor     .10000E-03    4.6836        .11123E-02** at limit **
  13  Prefactor     .10000E-03    7.2854        .13875E-02** at limit **
  14  norm          17.735        5.3714        .64642E-04    .61555E-05
  15  norm          1.2094        3.1250        .14186E-03    .28129E-03
  16  Prefactor     10.915        16.413        .12123E-03    .46325E-04
  17  Prefactor     .10000E-03    11.545        .17466E-02** at limit **
  18  Prefactor     .10000E-03    159.13        .18142E-02** at limit **
  19  norm          2.4596        1.5313        .48354E-04   -.25392E-04
  20  Prefactor     .10000E-03    96.290        .18142E-02** at limit **
  21  Prefactor     6.9515        7.9685        .15148E-03    .61277E-04
  22  Prefactor     37.137        21.602        .65762E-04    .30513E-04
  23  Prefactor     .10000E-03    10.725        .16835E-02** at limit **
  24  Prefactor     .10000E-03    5.3297        .11831E-02** at limit **
  25  Prefactor     28.491        31.513        .75071E-04    .82535E-05
  26  Normalizat    1.1383        .29673        .21574E-03    .10386E-03
  27  Prefactor     .59269        .30094        .31116E-03    .93698E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.72645
  Prefactor  = 0.000100003
  Prefactor  = 15.2428
  Prefactor  = 0.0001
  norm       = 80.2141
  norm       = 4.84224
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.48067
  norm       = 7.03501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.7352
  norm       = 1.20943
  Prefactor  = 10.9155
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.45964
  Prefactor  = 0.0001
  Prefactor  = 6.95154
  Prefactor  = 37.137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4907
  Normalizat = 1.13831
  Prefactor  = 0.592694
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.696     FROM HESSE     STATUS=OK           470 CALLS     4225 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.452        .36272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7265        12.109        .83643E-05   -1.5322    
   3  Prefactor     .10000E-03    62.325        .11884       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.243        11.023        .41034E-05   -1.4927    
   5  Prefactor     .10000E-03    5.2537        .23532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          80.214        88.624        .89663E-05   -1.3914    
   7  norm          4.8422        5.9941        .55533E-05   -1.5268    
   8  Prefactor     .10000E-03    6.3218        .25840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.455        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4807        5.6647        .49100E-05   -1.5240    
  11  norm          7.0350        2.7933        .21009E-05   -1.5177    
  12  Prefactor     .10000E-03    4.6836        .22247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2854        .27749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.735        5.3713        .25857E-05   -1.4865    
  15  norm          1.2094        3.1247        .56744E-05   -1.5488    
  16  Prefactor     10.915        16.412        .48494E-05   -1.5047    
  17  Prefactor     .10000E-03    11.545        .34932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    159.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4596        1.5312        .19341E-05   -1.5394    
  20  Prefactor     .10000E-03    96.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.9515        7.9683        .60594E-05   -1.5181    
  22  Prefactor     37.137        21.602        .26305E-05   -1.4488    
  23  Prefactor     .10000E-03    10.725        .33669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.3302        .23662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.491        31.514        .30028E-05   -1.4640    
  26  Normalizat    1.1383        .29696        .43149E-04   -.88531    
  27  Prefactor     .59269        .30118        .12446E-04   -1.0789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46796e-10
Minuit parameter uncertainties:
  1  7.54707e-06
  2  12.1167
  3  0.000879411
  4  11.024
  5  4.36276e-07
  6  88.7705
  7  5.99487
  8  3.04862e-07
  9  1.66605e-05
  10  5.66523
  11  2.79337
  12  3.70275e-06
  13  2.6837e-06
  14  5.37145
  15  3.12513
  16  16.419
  17  3.94301e-05
  18  0.000602436
  19  1.53126
  20  2.14322e-06
  21  7.9695
  22  21.6066
  23  8.86453e-06
  24  5.65426e-07
  25  31.5327
  26  0.297403
  27  0.302003
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.703e-06  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  5.927e-01  3.020e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.138e+00  2.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/385404/likelihoodResults_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.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) = 2769.69665304
delta logL = -0.000924217877582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2769.69572894
delta logL = -1.17414856504e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4515       1.0000          .0000       10.000    
     3 'Normalizat'    1.1385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59242       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   2769.696     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      262 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.634        .11517E-01** at limit **
   2  Index         1.6078        5.2567        .50000       -.14052E-07
   3  Normalizat    1.1383        .12269E-01    .21574E-03    .23634E-04
   4  Prefactor     .59269        .13187E-01    .31116E-03    .17227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.60776
  Normalizat = 1.13831
  Prefactor  = 0.592693
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.696     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    268.22        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6078        7.9331        .50000       -.74565    
   3  Normalizat    1.1383        .33839E-01    .86297E-05   -.88531    
   4  Prefactor     .59269        .36371E-01    .12446E-04   -1.0789    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54389e-10
Minuit parameter uncertainties:
  1  0.000319673
  2  864.649
  3  0.0338397
  4  0.0363724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385404': 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) = 2769.69572378
delta logL = 5.04036916027e-06

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.197e-04  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.608e+00  8.646e+02  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  5.927e-01  3.637e-02  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.138e+00  3.384e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.405 -45.037

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/385404/cmap_HighResolution_546739201_546998401_4FGL_J0225.6-4502_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-08-15 21:48:33.544328', job_id='385404', GAL2='0.59', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1629089313.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='5.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1186' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:48:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 385404: <4FGL_J0225.6-4502_daily_bin1186> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1186> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 21:35:28 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:35:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 21:35:34 2021
Terminated at Sun Aug 15 21:48:35 2021
Results reported at Sun Aug 15 21:48:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1186 36.4048 -45.0366 546739201 546998401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0225.6-4502 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            787 sec.

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

