/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 198 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.0+0330_daily_bin401
RA = 186.252, Dec = 3.5098
tmin = 343267201, tmax = 343526401
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='606559', job_status='RUN', time_executed='2021-09-05 13:49:04.399155', time_epoch_executed='1630874944.4' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606559/ft1_4FGL_J1225.0+0330_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606559/ft1_4FGL_J1225.0+0330_daily_bin401.fits outfile=/scratch/kocevski/606559/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin401.fits ra=186.252 dec=3.5098 rad=12.0 tmin=343267201.0 tmax=343526401.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 2.59
user 2.38
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.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/606559/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/606559/ft1_filtered_4FGL_J1225.0+0330_daily_bin401.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.41
user 0.27
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606559/ft1_filtered_4FGL_J1225.0+0330_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/606559/ltcube_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.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/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits
.....................!
real 8.84
user 8.53
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606559/ft1_filtered_4FGL_J1225.0+0330_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/606559/ltcube_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits outfile=/scratch/kocevski/606559/expmap_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.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/606559/ltcube_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits
.....................!
real 142.69
user 139.06
sys 3.21

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1225.0+0330 @ 186.252 3.5098

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/606559/ft1_filtered_4FGL_J1225.0+0330_daily_bin401.fits scfile=/scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits outfile=/scratch/kocevski/606559/cmap_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=186.252 yref=3.5098 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.44
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606559/ft1_filtered_4FGL_J1225.0+0330_daily_bin401.fits scfile=/scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits outfile=/scratch/kocevski/606559/cmap_HighResolution_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=186.252 yref=3.5098 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.45
user 0.30
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606559/ft1_filtered_4FGL_J1225.0+0330_daily_bin401.fits', '/scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits', expMap='/scratch/kocevski/606559/expmap_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits', expCube='/scratch/kocevski/606559/ltcube_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606559/Model_4FGL_J1225.0+0330_daily_bin401.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.0+0330'

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/606559/ft1_filtered_4FGL_J1225.0+0330_daily_bin401.fits
Spacecraft file(s): /scratch/kocevski/606559/ft2_4FGL_J1225.0+0330_daily_bin401.fits
Exposure map: /scratch/kocevski/606559/expmap_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits
Exposure cube: /scratch/kocevski/606559/ltcube_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606559/Model_4FGL_J1225.0+0330_daily_bin401.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) = 7968.019503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.606       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6726       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .51115       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.995       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.336       1.0000         .10000E-03   10000.    
    22 'norm      '    4.3528       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11999E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.496       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4515       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67470       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7968.011     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3817 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5510       -.32486E-05** at limit **
   2  Prefactor     .10000E-03    46.614       -.14368E-04** at limit **
   3  Prefactor     .10000E-03    7.4821        .21029E-05** at limit **
   4  Prefactor     10.731        6.6948        .45356E-07   -.23736E-05
   5  Prefactor     .10000E-03    5.7932        .15056E-06** at limit **
   6  Prefactor     .10000E-03    6.7123       -.31085E-05** at limit **
   7  Prefactor     19.611        71.077        .97914E-05   -.32527E-04
   8  Prefactor     .10000E-03    24.323       -.14202E-05** at limit **
   9  Prefactor     .10000E-03    18.485       -.88780E-06** at limit **
  10  Prefactor     .10000E-03    17.149        .44191E-05** at limit **
  11  Prefactor     .10000E-03    10.038        .29542E-05** at limit **
  12  Prefactor     2.6701        8.0528       -.13857E-05   -.43666E-03
  13  norm          .10000E-03    .93864        .22236E-06** at limit **
  14  norm          4.5624        3.0897       -.22271E-07   -.30159E-03
  15  Prefactor     .10000E-03    7.3935        .25770E-05** at limit **
  16  norm          .10000E-03    22.229       -.48107E-05** at limit **
  17  Prefactor     .10000E-03    42.027        .38565E-05** at limit **
  18  norm          .51136        .47999       -.92215E-08   -.14077E-02
  19  Prefactor     8.4177        6.1633        .65093E-06    .14555E-02
  20  Prefactor     10.994        13.574       -.83560E-07   -.11673E-04
  21  Prefactor     12.334        8.3540       -.31854E-06   -.75221E-03
  22  norm          4.3526        1.6194        .40376E-08   -.13617E-03
  23  Prefactor     .10000E-03    2.8902       -.65011E-09** at limit **
  24  Prefactor     .10000E-03    20.439       -.48239E-05** at limit **
  25  Prefactor     .10000E-03    8.4391       -.28859E-05** at limit **
  26  Prefactor     .10000E-03    32.755        .15834E-04** at limit **
  27  norm          .10000E-03    7.0959        .17250E-05** at limit **
  28  Prefactor     19.488        13.730        .66541E-08   -.17426E-03
  29  Normalizat    1.4516        .18477       -.16178E-06   -.39566E-04
  30  Prefactor     .67460        .14252       -.53730E-07   -.67701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.7313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67013
  norm       = 0.0001
  norm       = 4.56237
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.511363
  Prefactor  = 8.41765
  Prefactor  = 10.9945
  Prefactor  = 12.3337
  norm       = 4.35256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 19.4879
  Normalizat = 1.45161
  Prefactor  = 0.674604
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.011     FROM HESSE     STATUS=OK           582 CALLS     4399 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.731        6.7023        .12230E-03   -1.5053    
   5  Prefactor     .10000E-03    5.7986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.611        70.898        .90455E-04   -1.4822    
   8  Prefactor     .10000E-03    24.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6701        7.6160        .24928E-03   -1.5381    
  13  norm          .10000E-03    1.3823        .15790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5624        3.0546        .11810E-03   -1.5281    
  15  Prefactor     .10000E-03    7.3795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    22.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .51136        .45101        .52827E-03   -1.5565    
  19  Prefactor     8.4177        6.3059        .69086E-03   -1.5128    
  20  Prefactor     10.994        13.577        .12082E-03   -1.5045    
  21  Prefactor     12.334        8.3758        .57025E-03   -1.5005    
  22  norm          4.3526        1.6139        .65616E-04   -1.5291    
  23  Prefactor     .10000E-03    2.9103        .14816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    32.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.0958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.488        13.791        .90710E-04   -1.4825    
  29  Normalizat    1.4516        .22024        .24896E-03   -.79147    
  30  Prefactor     .67460        .16864        .28162E-03   -1.0453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07395e-09
Minuit parameter uncertainties:
  1  5.32351e-05
  2  0.000508209
  3  7.35562e-05
  4  6.70274
  5  2.46472e-05
  6  5.43868e-05
  7  71.2055
  8  4.42944e-05
  9  2.42288e-05
  10  7.86066e-05
  11  4.9676e-05
  12  7.61879
  13  2.62026e-05
  14  3.05469
  15  3.78518e-05
  16  0.000134026
  17  0.000131686
  18  0.451018
  19  6.30645
  20  13.5812
  21  8.37661
  22  1.61388
  23  2.99472e-06
  24  0.00013234
  25  4.60394e-05
  26  0.000492658
  27  2.32696e-05
  28  13.7934
  29  0.220387
  30  0.168765
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.340e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  6.746e-01  1.688e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.452e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 4.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606559/likelihoodResults_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7968.01152047
delta logL = -0.000214573854464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7968.01130707
delta logL = -1.18030220619e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7968.011     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      281 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6278.2        .36285E-02** at limit **
   2  alpha         2.6379        3.6874        .19325        .31180E-08
   3  Normalizat    1.4516        .59989E-01    .24896E-03   -.20166E-03
   4  Prefactor     .67460        .48429E-01    .28162E-03   -.19228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.63789
  Normalizat = 1.45161
  Prefactor  = 0.674604
 **********
 **   18 **HESSE 
 **********

 FCN=   7968.011     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.688        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6379        3.6770        .77299E-02    .55183E-01
   3  Normalizat    1.4516        .20775        .49791E-04   -.79147    
   4  Prefactor     .67460        .16769        .11265E-04   -1.0453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07149e-11
Minuit parameter uncertainties:
  1  4.56e-05
  2  764.936
  3  0.207872
  4  0.167819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606559': 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) = 7968.01130584
delta logL = 4.7443791118e-08

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  4.560e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.638e+00  7.649e+02  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  6.746e-01  1.678e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.452e+00  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.252 3.510

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/606559/cmap_HighResolution_343267201_343526401_4FGL_J1225.0+0330_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-05 14:01:27.117084', job_id='606559', GAL2='0.67', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630875687.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='401' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 606559: <4FGL_J1225.0+0330_daily_bin401> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin401> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:37 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:45:39 2021
Terminated at Sun Sep  5 14:01:27 2021
Results reported at Sun Sep  5 14:01:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin401 186.252 3.5098 343267201 343526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.0+0330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   739.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

