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


Performing analysis on: 4FGL_J0712.7+5033_monthly_bin118
RA = 108.188, Dec = 50.5506
tmin = 542851201, tmax = 545443201
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='624225', job_status='RUN', time_executed='2021-10-17 17:47:51.155943', time_epoch_executed='1634518071.16' WHERE source_name='4FGL J0712.7+5033' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624225

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624225/ft1_4FGL_J0712.7+5033_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624225/ft1_4FGL_J0712.7+5033_monthly_bin118.fits outfile=/scratch/kocevski/624225/ft1_filteredMKT_4FGL_J0712.7+5033_monthly_bin118.fits ra=108.188 dec=50.5506 rad=12.0 tmin=542851201.0 tmax=545443201.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 15.23
user 14.60
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.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/624225/ft1_filteredMKT_4FGL_J0712.7+5033_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/624225/ltcube_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.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/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits
.....................!
real 34.25
user 33.85
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/624225/ltcube_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.fits outfile=/scratch/kocevski/624225/expmap_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.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/624225/ltcube_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.fits
.....................!
real 155.93
user 151.76
sys 3.77

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

Setting source of interest to:
4FGL J0712.7+5033 @ 108.188 50.5506

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits scfile=/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits outfile=/scratch/kocevski/624225/cmap_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.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=108.188 yref=50.5506 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits scfile=/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits outfile=/scratch/kocevski/624225/cmap_HighResolution_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.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=108.188 yref=50.5506 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624225/Model_4FGL_J0712.7+5033_monthly_bin118.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/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits........................!
real 19.84
user 18.65
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits', '/scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits', expMap='/scratch/kocevski/624225/expmap_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.fits', expCube='/scratch/kocevski/624225/ltcube_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/624225/Model_4FGL_J0712.7+5033_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0712.7+5033'

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  9.082e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/624225/ft1_filtered_4FGL_J0712.7+5033_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/624225/ft2_4FGL_J0712.7+5033_monthly_bin118.fits
Exposure map: /scratch/kocevski/624225/expmap_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.fits
Exposure cube: /scratch/kocevski/624225/ltcube_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/624225/Model_4FGL_J0712.7+5033_monthly_bin118.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) = 1192.35191466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.112       1.0000         .10000E-03   10000.    
     2 'norm      '    20.300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8311       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7927       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.522       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.796       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    191.40       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    84.160       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9039       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.443       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.994       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.333       1.0000         .10000E-03   10000.    
    26 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10010E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3363       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1192.259     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     4489 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.114        99.485        .70308E-07   -.44189E-05
   2  norm          20.304        12.986       -.81361E-07   -.51589E-04
   3  Prefactor     .10000E-03    40.508       -.45475E-06** at limit **
   4  Prefactor     .10000E-03    8.2731        .51867E-07** at limit **
   5  Prefactor     .10000E-03    78.096        .23725E-05** at limit **
   6  Prefactor     7.9030        551.90        .16591E-04    .41272E-05
   7  norm          .10000E-03    5.3957       -.15241E-07** at limit **
   8  norm          3.7967        12.777        .57014E-06   -.13450E-03
   9  Prefactor     17.526        162.64        .55480E-05   -.17108E-04
  10  norm          .10000E-03    6.2609       -.37009E-07** at limit **
  11  Prefactor     .10000E-03    35.112       -.10489E-05** at limit **
  12  Prefactor     37.790        21.623        .94247E-06   -.87761E-04
  13  Prefactor     .10000E-03    32.647       -.94577E-06** at limit **
  14  Prefactor     191.35        105.03       -.89361E-07   -.74645E-05
  15  norm          .10000E-03    10.590        .32816E-06** at limit **
  16  Prefactor     .10000E-03    115.54       -.54631E-05** at limit **
  17  Prefactor     84.120        109.91       -.21139E-07   -.20005E-04
  18  norm          4.9029        3.8027        .49711E-06   -.20661E-04
  19  Prefactor     .10000E-03    16.951       -.62939E-06** at limit **
  20  Prefactor     36.417        81.844        .89594E-07   -.31577E-04
  21  norm          .10000E-03    4.5370       -.56722E-07** at limit **
  22  Prefactor     23.992        47.798        .17128E-05   -.36757E-04
  23  Prefactor     .10000E-03    93.958       -.19728E-06** at limit **
  24  Prefactor     .10000E-03    67.024        .27069E-05** at limit **
  25  norm          14.328        14.060        .50131E-06    .26084E-04
  26  norm          .10000E-03    9.4685       -.33660E-06** at limit **
  27  Prefactor     .10000E-03    25.861        .53068E-06** at limit **
  28  Prefactor     .10000E-03    23.051        .10162E-05** at limit **
  29  Normalizat    .10000E-01    .59617       -.58574E-04** at limit **
  30  Prefactor     1.3356        .19528        .74161E-05   -.17520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.1136
  norm       = 20.3045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.90301
  norm       = 0.0001
  norm       = 3.79673
  Prefactor  = 17.5256
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.7905
  Prefactor  = 0.0001
  Prefactor  = 191.351
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 84.1197
  norm       = 4.90294
  Prefactor  = 0.0001
  Prefactor  = 36.4173
  norm       = 0.0001
  Prefactor  = 23.9918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.3285
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.33565
 **********
 **   18 **HESSE 
 **********

 FCN=   1192.259     FROM HESSE     STATUS=OK           576 CALLS     5065 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.114        99.568        .52627E-04   -1.4182    
   2  norm          20.304        13.020        .88897E-04   -1.4806    
   3  Prefactor     .10000E-03    40.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2748        .97019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    78.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.9030        549.39        .14329E-03   -1.5146    
   7  norm          .10000E-03    5.3996        .78346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7967        12.685        .20149E-03   -1.5318    
   9  Prefactor     17.526        162.62        .95682E-04   -1.4870    
  10  norm          .10000E-03    6.2620        .84387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.790        21.622        .65193E-04   -1.4478    
  13  Prefactor     .10000E-03    32.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     191.35        104.97        .14597E-03   -1.2932    
  15  norm          .10000E-03    10.595        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    115.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     84.120        110.03        .21894E-03   -1.3871    
  18  norm          4.9029        3.8067        .56553E-04   -1.5265    
  19  Prefactor     .10000E-03    16.942        .13884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.417        81.881        .66388E-04   -1.4500    
  21  norm          .10000E-03    4.5398        .71839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.992        47.799        .81775E-04   -1.4728    
  23  Prefactor     .10000E-03    93.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    67.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.328        14.047        .10579E-03   -1.4951    
  26  norm          .10000E-03    9.6013        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    25.867        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    23.075        .16198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    8.2448        .13260E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.3356        .19988        .16491E-03   -.82253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6664e-09
Minuit parameter uncertainties:
  1  99.855
  2  13.0216
  3  0.000197637
  4  6.98628e-06
  5  9.0969e-05
  6  133.077
  7  1.40927e-06
  8  12.6943
  9  107.158
  10  1.80071e-06
  11  7.01692e-05
  12  21.6265
  13  7.84579e-05
  14  105.075
  15  7.2455e-06
  16  0.000580845
  17  110.295
  18  3.8069
  19  6.12794e-05
  20  82.1355
  21  1.96783e-05
  22  47.8752
  23  0.000146644
  24  0.000108372
  25  14.05
  26  5.61636e-06
  27  9.05037e-06
  28  1.50047e-05
  29  0.000915659
  30  0.199998
Done.

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

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  7.846e-05  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.336e+00  2.000e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  9.157e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 108.188 50.551
Photon Flux Upper Limit: 2.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624225/likelihoodResults_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.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) = 1192.25917763
delta logL = -0.000145758915323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1192.25903404
delta logL = -2.16626335714e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13695E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5444       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   1192.259     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10476E-03    18.796        .16030E-01** at limit **
   2  Index         2.4394        6.2018        .50000        .11997E-04
   3  Normalizat    .10000E-01    .12930E-01    .13260E-01** at limit **
   4  Prefactor     1.3356        .64806E-02    .16491E-03   -.79877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104765
  Index      = 2.43936
  Normalizat = 0.01
  Prefactor  = 1.33565
 **********
 **   18 **HESSE 
 **********

 FCN=   1192.259     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10476E-03    217.49        .16790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4394        7.8598        .50000       -.53766    
   3  Normalizat    .10000E-01    .15784        .53039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3356        .22250E-01    .32983E-04   -.82253    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.01898e-09
Minuit parameter uncertainties:
  1  0.0646204
  2  472.838
  3  4.76668e-05
  4  0.0222503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624225': 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) = 1192.25903244
delta logL = -5.74065552428e-07

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  1.048e-04  6.462e-02  1.000e-04  1.000e+04 ( 1.000e-13)
281        Index:  2.439e+00  4.728e+02  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.336e+00  2.225e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  1.000e-02  4.767e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 108.188 50.551

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/624225/cmap_HighResolution_542851201_545443201_4FGL_J0712.7+5033_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-02', job_status='DONE', photon_flux_upper_limit='2.46e-07', time_completed='2021-10-17 17:56:22.585771', job_id='624225', GAL2='1.34', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1634518582.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='-5.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='118' AND source_name='4FGL J0712.7+5033' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 17 17:56:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 624225: <4FGL_J0712.7+5033_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0712.7+5033_monthly_bin118> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 17 17:40:12 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 17 17:46:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 17 17:46:35 2021
Terminated at Sun Oct 17 17:56:23 2021
Results reported at Sun Oct 17 17:56:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0712.7+5033_monthly_bin118 108.188 50.5506 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0712.7+5033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   484.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   587 sec.
    Turnaround time :                            971 sec.

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

